From 4ffd2fe4876e94a4e2f963ceafc7fc533fd574f0 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 20 Apr 2022 20:53:11 +0200 Subject: [PATCH] Added fstab notes to the knowledge base --- knowledge base/fstab.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 knowledge base/fstab.md diff --git a/knowledge base/fstab.md b/knowledge base/fstab.md new file mode 100644 index 0000000..c46951a --- /dev/null +++ b/knowledge base/fstab.md @@ -0,0 +1,23 @@ +# fstab + +## TL;DR + +```plaintext +# by label +# e2label /dev/sdc1 +# mount -L seagate_2tb_usb /media/usb +LABEL=seagate_2tb_usb /media/usb ext3 defaults 0 0 + +# by uuid +# vol_id --uuid /dev/sdb2 +# mount -U 41c22818-fbad-4da6-8196-c816df0b7aa8 /disk2p2 +UUID=41c22818-fbad-4da6-8196-c816df0b7aa8 /disk2p2 ext3 defaults,errors=remount-ro 0 1 +``` + +## Further readings + +- [Mount a disk partition using LABEL] +- [Mount a disk partition using UUID] + +[mount a disk partition using label]: https://www.cyberciti.biz/faq/rhel-centos-debian-fedora-mount-partition-label/ +[mount a disk partition using uuid]: https://www.cyberciti.biz/faq/linux-finding-using-uuids-to-update-fstab/