genfstab

Generate output suitable for addition to an fstab file.

TLDR

Display an fstab compatible output based on a volume label

$ genfstab -L [path/to/mount_point]
copy

Display an fstab compatible output based on a volume UUID

$ genfstab -U [path/to/mount_point]
copy

A usual way to generate an fstab file, requires root permissions

$ genfstab -U [/mnt] >> [/mnt/etc/fstab]
copy

Append a volume into an fstab file to mount it automatically

$ genfstab -U [path/to/mount_point] | sudo tee -a /etc/fstab
copy

Copied to clipboard
Dodo Farming