mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 01:35:25 +02:00
genfstab: add page (#5215)
This commit is contained in:
parent
9920c058ca
commit
81c139c072
1 changed files with 20 additions and 0 deletions
20
pages/linux/genfstab.md
Normal file
20
pages/linux/genfstab.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# genfstab
|
||||
|
||||
> Generate output suitable for addition to an fstab file.
|
||||
> More information: <https://man.archlinux.org/man/extra/arch-install-scripts/genfstab.8>.
|
||||
|
||||
- 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`
|
Loading…
Add table
Reference in a new issue