From 50edd68b0fff756b77110d282a63b5bb5931c42f Mon Sep 17 00:00:00 2001 From: Marty Penner Date: Thu, 27 Feb 2014 12:05:07 -0500 Subject: [PATCH] Add pages for the `mount` and `umount` commands --- common/mount.md | 23 +++++++++++++++++++++++ common/umount.md | 16 ++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 common/mount.md create mode 100644 common/umount.md diff --git a/common/mount.md b/common/mount.md new file mode 100644 index 0000000000..d26d3743ba --- /dev/null +++ b/common/mount.md @@ -0,0 +1,23 @@ +# 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 + +`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` diff --git a/common/umount.md b/common/umount.md new file mode 100644 index 0000000000..fff1f46aac --- /dev/null +++ b/common/umount.md @@ -0,0 +1,16 @@ +# umount + +> Revokes access to an entire filesystem mounted to a directory. +> A filesystem cannot be unmounted when it is busy. + +- Unmount a filesystem + +`umount path_to_device_file` + +- OR + +`umount path_to_mounted_directory` + +- Unmount all filesystems described in /etc/mtab (dangerous!) + +`umount -a`