From 81c139c072b554df335ab4f98653d9d31459affd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Babi=C4=8D?= Date: Wed, 3 Feb 2021 01:30:58 +0100 Subject: [PATCH] genfstab: add page (#5215) --- pages/linux/genfstab.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/genfstab.md diff --git a/pages/linux/genfstab.md b/pages/linux/genfstab.md new file mode 100644 index 0000000000..6e81b28d3c --- /dev/null +++ b/pages/linux/genfstab.md @@ -0,0 +1,20 @@ +# genfstab + +> Generate output suitable for addition to an fstab file. +> More information: . + +- Display an fstab compatible output based on a volume label: + +`genfstab -L {{path/to/mount_point}}` + +- Display an fstab compatible output based on a volume UUID: + +`genfstab -U {{path/to/mount_point}}` + +- A usual way to generate an fstab file, requires root permissions: + +`genfstab -U {{/mnt}} >> {{/mnt/etc/fstab}}` + +- Append a volume into an fstab file to mount it automatically: + +`genfstab -U {{path/to/mount_point}} | sudo tee -a /etc/fstab`