mount

Table of Contents

1. Mount a filesystem

Use mount(8) to manually mount a filesystem under, e.g. /dev/sda1, to a directory

mount /dev/sda1 /mnt

2. Unmount a filesystem

Use umount(8) to unmount a filesystem by targeting either the device or the mount point

umount /dev/sda1
# or
umount /mnt

3. Power off a device

See udisksctl

4. Mount options

Filesystems-independent mount options (like defaults, relatime etc) are explained in mount(8)

4.1. List mounted filesystems and their mount options

 ~$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8105335k,nr_inodes=2026334,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1628971k,mode=755,inode64)
/dev/nvme0n1p2 on / type ext4 (rw,relatime,errors=remount-ro)
...

5. List mounted filesystems

Use findmnt(8) to list all mounted filesystems or lsblk(8) to list block devices

findmnt
lsblk

6. Related nodes

7. References