A server's /proc/mounts file currently lists the entry:
/dev/sdb1 /mnt/reports ext4 ro,relatime 0 0
You have been asked to allow a script to modify files in /mnt/reports without interrupting any running processes, changing the mount point, or unmounting the filesystem. Only the read/write status should change. Which command will meet these requirements?
umount /mnt/reports && mount -o rw /dev/sdb1 /mnt/reports
The mount option remount tells the kernel to apply new flags to an already-mounted filesystem, so nothing is detached and no processes lose access. Combining remount with rw changes the read-only setting to read-write while leaving every other option (relatime, etc.) intact. The syntax mount -o remount,rw /mnt/reports therefore converts the existing mount to read-write in place. Using mount -o rw /mnt/reports omits the remount flag, so the command attempts a new mount and fails because the target is busy. Unmounting and mounting again would break the requirement to avoid disrupting active processes, and ro,remount would keep the filesystem read-only, not writable.
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 'remount' option do in the mount command?
Open an interactive chat with Bash
What are 'ro' and 'rw' options in filesystem mounting?
Open an interactive chat with Bash
What does the 'relatime' option do in a mount entry?
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