1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 03:15:23 +02:00
tldr/pages/linux/genfstab.md

25 lines
742 B
Markdown
Raw Normal View History

2021-02-03 01:30:58 +01:00
# genfstab
2025-05-08 17:42:00 +00:00
> Generate output suitable for addition to the `/etc/fstab` file.
> More information: <https://manned.org/genfstab>.
2021-02-03 01:30:58 +01:00
2025-05-08 17:42:00 +00:00
- Generate the `/etc/fstab` file using volume UUIDs during an Arch Linux installation (requires root permissions):
`genfstab -U {{/mnt}} >> {{/mnt/etc/fstab}}`
- Display fstab-compatible output based on volume labels:
2021-02-03 01:30:58 +01:00
`genfstab -L {{path/to/mount_point}}`
2025-05-08 17:42:00 +00:00
- Display fstab-compatible output based on volume UUIDs:
2021-02-03 01:30:58 +01:00
`genfstab -U {{path/to/mount_point}}`
2025-05-08 17:42:00 +00:00
- Display fstab-compatible output based on the specified identifier:
2021-02-03 01:30:58 +01:00
2025-05-08 17:42:00 +00:00
`genfstab -t {{LABEL|UUID|PARTLABEL|PARTUUID}}`
2021-02-03 01:30:58 +01:00
2025-05-08 17:42:00 +00:00
- Append a volume into the `/etc/fstab` file to mount it automatically:
2021-02-03 01:30:58 +01:00
`genfstab -U {{path/to/mount_point}} | sudo tee -a /etc/fstab`