From 82bdc964ca2d71a0cdb82b70ac3efea81469bc73 Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Thu, 8 May 2025 17:42:00 +0000 Subject: [PATCH] genfstab: update page (#16407) --- pages/linux/genfstab.md | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/pages/linux/genfstab.md b/pages/linux/genfstab.md index 971e9746d3..a570b69996 100644 --- a/pages/linux/genfstab.md +++ b/pages/linux/genfstab.md @@ -1,20 +1,24 @@ # genfstab -> Arch Linux install script to generate output suitable for addition to an fstab file. -> More information: . +> Generate output suitable for addition to the `/etc/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: +- Generate the `/etc/fstab` file using volume UUIDs during an Arch Linux installation (requires root permissions): `genfstab -U {{/mnt}} >> {{/mnt/etc/fstab}}` -- Append a volume into an fstab file to mount it automatically: +- Display fstab-compatible output based on volume labels: + +`genfstab -L {{path/to/mount_point}}` + +- Display fstab-compatible output based on volume UUIDs: + +`genfstab -U {{path/to/mount_point}}` + +- Display fstab-compatible output based on the specified identifier: + +`genfstab -t {{LABEL|UUID|PARTLABEL|PARTUUID}}` + +- Append a volume into the `/etc/fstab` file to mount it automatically: `genfstab -U {{path/to/mount_point}} | sudo tee -a /etc/fstab`