Skip to content

Instantly share code, notes, and snippets.

@Brainiarc7
Last active June 6, 2023 19:24
  • Star 22 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Generate fstab in Arch Linux

First, install arch-install-scripts:

sudo pacman -S --needed arch-install-scripts

Secondly, mount your partitions in all the internal hard drives.

Thirdly, generate and validate your config by piping it out to stdout:

genfstab -U -p / | less

If all looks green, proceed to overwrite your current fstab with the new entries:

genfstab -U -p / >> /etc/fstab

Run that command as ROOT.

Tip: It may be wise to add the nofail option for some partitions, namely NFS and the likes, so your system can boot even if shit hits the fan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment