Linux CLI 27 ๐ง mount and umount commands
a - mount options
mount allows you to control how filesystems are mounted/remounted on the system
mount โ lists the file systems
mount -t ext โ lists the ext4 file systems
mount -t btrfs โ lists the btrfs file systems
-a โ mounts all currently configured file systems (/etc/fstab)
-h โ shows the help
-l โ lists all the mounted file systems with detailed information
sudo mount -l โ lists all the mounted file systems with detailed information
sudo fdisk -l โ better way to see the devices
b - mount a device
To mount a device/drive:
Create a mount point, where do you want to be mounted
mkdir /media/usbA โ creates a mount point
sudo fdisk -l โ find the device the device
sudo mount /dev/sdc1 /media/usbA โ mounts the sdc1 device to the mount point /media/usbA
Mount an ISO file:
mdkir /media/testISO
sudo mount /testFile.iso /media/testISO -o loop โ -o loop mounts iso's date into a loop device
c - move a mount and unmount
mount --move /media/usbA /media/usbB โ move the mount point /media/usbA to /media/usbB
umount is used to umount a previously mounted file system/device
-a โ unmounts all filesystems/devices
-f โ forces the unmount
To unmount a device:
sudo umount /media/usbA โ unmounts what is mounted at /media/usbA
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!