A technician attempts to mount an XFS filesystem from /dev/sdc1 to /mnt/backup but receives: 'mount: /mnt/backup: mount point does not exist.' The directory /mnt/backup does exist. What is the most likely cause?
Trap 1: The directory /mnt/backup is not empty.
A non-empty directory never blocks a mount operation; the Linux kernel will happily mount a filesystem over existing contents, hiding them until the filesystem is unmounted. The mount(8) utility does not check whether the mountpoint contains files, so the technician would see no error at all if this were the only issue. Therefore, a non-empty /mnt/backup would not explain a mount failure.
Trap 2: The device /dev/sdc1 does not exist.
If /dev/sdc1 were missing, the mount command would fail with an explicit error like 'mount: /dev/sdc1: can't read superblock' or 'no such device' because the device node or underlying device does not exist. This type of error points directly to the device, not to the mountpoint's security context. Since the error is device-specific, it would not be confused with a SELinux or directory-related denial.
Trap 3: The filesystem on /dev/sdc1 is not XFS.
If the filesystem on /dev/sdc1 were not XFS, mount would identify the mismatch after reading the superblock and return an error such as 'mount: /dev/sdc1: wrong fs type, bad option, bad superblock'. That message is recognizably about the filesystem type, not about the mountpoint's context or the device node's existence. Because the operation would fail before any SELinux mountpoint check, this cause is distinct from the correct answer.
- A
SELinux context of /mnt/backup prevents mounting.
When SELinux is enforcing, the kernel checks the mountpoint directory's type against the current domain's mount permissions. If /mnt/backup has a file context that is not permitted for mounting (for example, a normal file type instead of mountpoint_t), the kernel denies the mount with a generic 'Operation not permitted' error, even though the device and filesystem are perfectly valid.
- B
The directory /mnt/backup is not empty.
Why it fails: A non-empty directory never blocks a mount operation; the Linux kernel will happily mount a filesystem over existing contents, hiding them until the filesystem is unmounted. The mount(8) utility does not check whether the mountpoint contains files, so the technician would see no error at all if this were the only issue. Therefore, a non-empty /mnt/backup would not explain a mount failure.
- C
The device /dev/sdc1 does not exist.
Why it fails: If /dev/sdc1 were missing, the mount command would fail with an explicit error like 'mount: /dev/sdc1: can't read superblock' or 'no such device' because the device node or underlying device does not exist. This type of error points directly to the device, not to the mountpoint's security context. Since the error is device-specific, it would not be confused with a SELinux or directory-related denial.
- D
The filesystem on /dev/sdc1 is not XFS.
Why it fails: If the filesystem on /dev/sdc1 were not XFS, mount would identify the mismatch after reading the superblock and return an error such as 'mount: /dev/sdc1: wrong fs type, bad option, bad superblock'. That message is recognizably about the filesystem type, not about the mountpoint's context or the device node's existence. Because the operation would fail before any SELinux mountpoint check, this cause is distinct from the correct answer.