mount -t type device mount_point
mount writes what it has done to /etc/mtab
(unless using -n
), thus the contents
of this file are very similar to the output of mount
without options.
mount -t iso9660 -o ro /dev/cdrom /mnt
mount -t iso9660 -o loop,ro matlab.iso /media/cdrom0
A loop device in Linux is an abstraction that lets you treat a file (our iso image which is not an actual CD) like a block device
mount /mydata
looks in /etc/fstab
(first for mount points then for devices)
# 0 for swap/remote
# 1 for /
# 2 otherwise
# <device> <mount> <type> <options> <dump> <fsck>
# UUID=... /home ext4 rw... 0 2
mount -l -t ext4
mount -B /mydata /mnt # or --bind
mount -M /mydata /mnt/ # or --move
mount -o remount,rw /mydata
umount /mydata -l
findmnt
mount
mountpoint directory|file