104.3 Mounting and Unmounting of Filesystems Flashcards
Mounting/Unmounting
general purpose parent directory that is often used for removeable filesystems
CDs
DVDs
/media
Mounting/Unmounting
general purpose parent directory that is often used for mounting disk partitions that are NOT part of filesystem install or within root structure
backup
purely data drive
/mnt
Mounting/Unmounting
used to obtain UUID for local disk partitions on the system and will display disk labels if available
blkid
matches UUIDs obtained from
/dev/disk/by-uuid
Mounting/Unmounting
executed alone and will display mounted filesystems and used to manually mount a device with an existing filesystem on a mount point directory
read /etc/mtab
available in /proc/mounts
mount
mount
mount all filesystems in/etc/fstab - if not mounted will NOT unmount/remount those that are
mount -a
mount
fake mount on all filesystems in /etc/fstab
mount -f
mount
mount the indicated filesystem in read only mode
mount -r
mount
filesystem type to mount the indicated device as can be read by the values in the superblock automatically if the kernel supports that filesystem
mount -t [fstype]
mount
specify one or more options that are outside the dtfaults
/etc/fstab
mount -o [options(s)]
mount
mounts in writeable mode - default
mount -w
Mount/Unmount
unmounts indicated filesystem
umount
umount
attempt to forcibly unmount the filesystem even if its in use or files are open
umount -f
Mount/Unmount
if umount indicates a filesystem in use this tells you which user is using it
fuser
fuser
determine who is using the indicated mount
fuser -m [mount]
fuser
would display the mount and any PIDs usting in along with a letter c if being used as a current directory - user just in directory
fuser -m /mnt/data