A system administrator has added an entry for a new XFS filesystem on a logical volume to the /etc/fstab file. The entry specifies /dev/mapper/vg_data-lv_apps as the device and /mnt/apps as the mount point.
To apply this new fstab entry and mount the filesystem without rebooting the system, which of the following commands should be executed?
The correct command is mount /mnt/apps. When the mount command is given a single argument that is a directory listed in /etc/fstab, it will look up the entry in /etc/fstab to find the device and options, and then perform the mount.
The mount -o remount /mnt/apps command is incorrect because the remount option is used to change the mount options of a filesystem that is already mounted, not to mount a new one. The command echo "..." >> /etc/mtab is incorrect; while /etc/mtab lists currently mounted filesystems, it is typically updated automatically by the mount command and should not be edited manually to perform a mount. On many modern systems, it is a symbolic link to /proc/mounts. The systemctl daemon-reload command is incorrect because, while it reloads systemd unit files (which can be generated from /etc/fstab), it does not execute the mount itself.
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 is the function of the `/etc/fstab` file?
Open an interactive chat with Bash
Why is `mount -o remount` not suitable for this scenario?
Open an interactive chat with Bash
What is the purpose of `/etc/mtab`, and why should it not be manually edited?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access