diff --git a/common/mount.md b/common/mount.md new file mode 100644 index 000000000..9ae5b14aa --- /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 (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}}` diff --git a/common/umount.md b/common/umount.md new file mode 100644 index 000000000..abe4ad71d --- /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 mounted filesystems (dangerous!) + +`umount -a`