1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 23:17:56 +01:00
tldr/pages/common/mount.md
2016-01-08 09:38:59 +01:00

532 B

mount

Provides access to an entire filesystem in one directory.

  • Show all mounted filesystems:

mount

  • Mount a device:

mount -t {{filesystem_type}} {{path_to_device_file}} {{directory_to_mount_to}}

  • Mount a CD-ROM device (with the filetype ISO9660) to /cdrom (readonly):

mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}

  • Mount all the filesystem defined in /etc/fstab:

mount -a

  • Mount a specific filesystem described in /etc/fstab (e.g. "/dev/sda1 /my_drive ext2 defaults 0 2"):

mount {{/my_drive}}