Note
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Talk:Install/Configuration Files
Jump to navigation
Jump to search
Discussion
Suggestion: Validate fstab step
In the section about editing /etc/fstab, it would be nice to direct users to run something like `findmnt --verbose --verify` in order to validate the correctness of their fstab entries, saving some pain later.
Doing a fresh install from the gentoo live CD, here's some output of a mistake it caught in my fstab:
chroot ~ $ findmnt --verbose --verify /boot [ ] target exists [ ] VFS options: noatime [ ] userspace options: noauto [ ] UUID=ADCD-9B0E translated to /dev/nvme0n1p1 [ ] source /dev/nvme0n1p1 exists [W] fat seems unsupported by the current kernel [E] fat does not match with on-disk vfat none [ ] UUID=45970879-625b-4638-bae6-82515ebc4687 translated to /dev/nvme0n1p2 [ ] source /dev/nvme0n1p2 exists [ ] FS type is swap / [ ] target exists [ ] VFS options: rw,noatime [ ] FS options: commit=90 [ ] UUID=78cad2f9-f305-4b68-b090-edf5511078d0 translated to /dev/nvme0n1p3 [ ] source /dev/nvme0n1p3 exists [ ] FS type is ext4 0 parse errors, 1 error, 1 warning
Which alerted me to fix the FS type on the boot line. Rerunning, here's what stdout looked like with the valid fstab:
chroot ~ $ findmnt --verbose --verify /boot [ ] target exists [ ] VFS options: noatime [ ] userspace options: noauto [ ] UUID=ADCD-9B0E translated to /dev/nvme0n1p1 [ ] source /dev/nvme0n1p1 exists [ ] FS type is vfat none [ ] UUID=45970879-625b-4638-bae6-82515ebc4687 translated to /dev/nvme0n1p2 [ ] source /dev/nvme0n1p2 exists [ ] FS type is swap / [ ] target exists [ ] VFS options: rw,noatime [ ] FS options: commit=90 [ ] UUID=78cad2f9-f305-4b68-b090-edf5511078d0 translated to /dev/nvme0n1p3 [ ] source /dev/nvme0n1p3 exists [ ] FS type is ext4 Success, no errors or warnings detected