To display all mounted partitions: $ mount proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/nvme0n1p1 on /efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remo unt-ro) /tmp on /var/tmp type none (rw,noexec,nosuid,bind) 10.4.0.4:/srv/export/setup_server on /nfs/setup_server type nfs (ro,addr=10.4.0.4) To mount the second partition of a
hard disk drive to the existing directory
/media/PHOTOS (mount point): $ mount /dev/nvme0n1p5 /media/PHOTOS To unmount by referring to the physical disk partition: $ umount /dev/nvme0n1p5 To unmount by referring to the mount point: $ umount /media/PHOTOS To remount a partition with specific
options: $ mount -o remount,rw /dev/nvme0n1p5
Bind mounting Bind mounting allows a
filesystem hierarchy or a file to be mounted at a different mount point. Unlike a
symbolic link, a bind mount does not exist on the filesystem itself. In the following example, the path /olddir will be mounted in /newdir $ mount --bind /olddir /newdir
Mounting loop devices A
loop device is a device that corresponds to a file, usually a
disk image. Mounting a loop device allows the file to be accessed as a filesystem. This allows it to be used as a
virtual drive. For example, a virtual disk image can be mounted as a regular filesystem. $ mount -o loop my_virtual_disk.img /mnt ==Derivatives and wrappers==