Skip to content

Instantly share code, notes, and snippets.

@0xcrypto
Forked from Brainiarc7/fstab-generate-arch.md
Last active April 30, 2017 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xcrypto/58a642c41dba1fe7daffbd9ccfa09c8a to your computer and use it in GitHub Desktop.
Save 0xcrypto/58a642c41dba1fe7daffbd9ccfa09c8a to your computer and use it in GitHub Desktop.
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:
su -c "genfstab -U -p / >> /etc/fstab"
# 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.
@0xcrypto
Copy link
Author

curl https://rawgit.com/0xcrypto/58a642c41dba1fe7daffbd9ccfa09c8a/raw/2f027f44fae6140019ccc2f407029680db4af9b8/fstab-generate-arch.sh | bash

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