genfstab

Arch Linux install script to generate output suitable for addition to an fstab file. More information: https://man.archlinux.org/man/extra/arch-install-scripts/genfstab.8.

genfstab -L path/to/mount_point

genfstab -U path/to/mount_point

genfstab -U /mnt >> /mnt/etc/fstab

genfstab -U path/to/mount_point | sudo tee -a /etc/fstab