2014-02-27 17:05:07 +00:00
|
|
|
# mount
|
|
|
|
|
|
|
|
> Provides access to an entire filesystem in one directory.
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Show all mounted filesystems:
|
2014-02-27 17:05:07 +00:00
|
|
|
|
|
|
|
`mount`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Mount a device:
|
2014-02-27 17:05:07 +00:00
|
|
|
|
2014-02-27 21:02:50 +00:00
|
|
|
`mount -t {{filesystem_type}} {{path_to_device_file}} {{directory_to_mount_to}}`
|
2014-02-27 17:05:07 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Mount a CD-ROM device (with the filetype ISO9660) to /cdrom (readonly):
|
2014-02-27 17:05:07 +00:00
|
|
|
|
2014-02-27 21:02:50 +00:00
|
|
|
`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}`
|
2014-02-27 17:05:07 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Mount all the filesystem defined in /etc/fstab:
|
2014-02-27 17:05:07 +00:00
|
|
|
|
|
|
|
`mount -a`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Mount a specific filesystem described in /etc/fstab (e.g. "/dev/sda1 /my_drive ext2 defaults 0 2"):
|
2014-02-27 17:05:07 +00:00
|
|
|
|
2014-02-27 21:02:50 +00:00
|
|
|
`mount {{/my_drive}}`
|