0
0
Linux CLIscripting~5 mins

mount and umount in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the mount command do in Linux?
The mount command attaches a storage device or filesystem to a specific directory so you can access its files.
Click to reveal answer
beginner
What is the purpose of the umount command?
The umount command safely detaches a mounted filesystem or device from the directory, making it inaccessible until mounted again.
Click to reveal answer
beginner
Why should you always use umount before unplugging a USB drive?
Unmounting ensures all data is written and prevents data loss or corruption by safely disconnecting the device.
Click to reveal answer
beginner
How do you mount a USB drive located at /dev/sdb1 to the directory /mnt/usb?
Use the command: mount /dev/sdb1 /mnt/usb to attach the USB drive to that directory.
Click to reveal answer
intermediate
What happens if you try to mount a device to a directory that is not empty?
The contents of the directory become hidden while the device is mounted there. When unmounted, the original directory contents reappear.
Click to reveal answer
What command do you use to detach a mounted filesystem?
Aunmount
Bmount
Cumount
Ddetach
Which directory is commonly used as a mount point for temporary devices?
A/home
B/mnt
C/etc
D/var
What will happen if you unplug a USB drive without unmounting it first?
AData loss or corruption may occur
BNothing, it is safe
CThe system will automatically unmount it
DThe USB drive will format itself
Which command shows all currently mounted filesystems?
Aumount
Blsusb
Cdf
Dmount
To mount a device with read-only access, which option do you add?
A-o ro
B-r
C-w
D-o rw
Explain in your own words what mounting and unmounting a device means and why it is important.
Think about plugging in and safely removing a USB drive.
You got /4 concepts.
    Describe the steps and commands you would use to safely use a USB drive on a Linux system.
    Consider what you do from plugging in to unplugging.
    You got /4 concepts.