A systems administrator is troubleshooting a Linux server where a web application is failing to access its data directory, /var/www/data. Application logs indicate read/write errors. The administrator runs the df -h command, and the output does not list the /var/www/data mount point, which should be an XFS filesystem on a dedicated logical volume. Which of the following commands should the administrator run FIRST to investigate the problem?
The correct answer is mount. The scenario indicates that the df -h command, which lists disk space usage for mounted filesystems, does not show the expected mount point. The most logical first step is to use the mount command without any arguments to list all currently mounted filesystems. This will confirm whether the volume is unmounted or if there is another issue. xfs_repair is used to fix a corrupted XFS filesystem, but it should only be run on an unmounted filesystem and is not the first diagnostic step. net use is a Windows command for managing network shares and is not applicable to a local Linux filesystem. fdisk -l is used to list partition tables on physical disks and is less relevant for checking the mount status of a specific logical volume's filesystem.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the `mount` command do in Linux?
Open an interactive chat with Bash
What is an XFS filesystem, and why is it used?
Open an interactive chat with Bash
What is a logical volume, and how does it differ from a physical partition?