Code: Select all
/dev/sda1 /efi vfat defaults 0 2
/dev/sda2 none swap sw 0 0
/dev/vg0/lv0 / ext4 defaults,noatimeHelp and thanks!
Will[/code]
Code: Select all
/dev/sda1 /efi vfat defaults 0 2
/dev/sda2 none swap sw 0 0
/dev/vg0/lv0 / ext4 defaults,noatime
Code: Select all
UUID=9e14507f-8e1a-4938-8b8b-3d5afc23c9b3 / ext4 noatime 0 1
UUID=b79fc1ee-8329-42d2-9f7d-74909685619f /usr ext4 noatime 0 0
UUID=8d8c0306-07d1-442e-93f4-64eef426b8aa /home ext4 noatime 0 0
UUID=630e1ef3-8a9b-4fa1-80b2-b1622f314b76 /var ext4 noatime 0 0
UUID=9a6e39d1-5f83-4c56-9389-717912c8e264 /opt ext4 noatime 0 0
UUID=9C91-DBF7 /boot vfat noauto,noatime 0 0
UUID=a8afebbf-7551-4c0f-b862-f670bb05a011 /var/cache/binpkgs ext4 noatime 0 0
UUID=abcbe072-5ab6-4314-846e-cad2f0f5e26e /var/cache/distfiles ext4 noatime 0 0
UUID=6ec5dd99-ab11-4a2a-8ad4-0b79a986b5a7 /var/tmp/portage ext4 noatime 0 0
UUID=bdd5a502-534d-4f50-81dd-5a8960f98254 /var/db/repos ext4 noatime 0 0
UUID=00b96473-0f60-47c8-972d-3d2d8627ca18 /usr/src ext4 noatime 0 0
UUID=54ee040b-9e5a-4ae8-a4f9-6dc3669e7e8d none swap sw 0 0Code: Select all
PARTUUID=95907e97-9f28-4a48-b21a-8e67ec3b2929 /efi vfat defaults 0 2
PARTUUID=c2a6217c-f15d-c84c-8ff1-7fcb80e0728f none swap sw 0 0
/dev/vg0/lv0 / ext4 defaults,noatimeI'm using LVM until I feel like I'm not gonna hose the system with stoopid changes, so I have to have initrd for that. Once I get the hang of gentoo and settle down, I'll prolly switch back to basic partitions and this info'll come in handy. Thanks!NeddySeagoon wrote:decuser,
Use PARTUUID or UUID. Both will be unique unless you use dd, then you get to keep the pieces.
A LVM snapshot preserves the filesystem UUID so that can bite you in the bum too.
PARTUUID has one advantage for some users.
The kernel understands root=PARTUUID= without an initrd.
Filesystem UUID, requires the userspace mount command, which compels the use of an initrd.
Once root is mounted, both work equally well.
blkid is the ticket. Thanks for that. Saved me having to google it. Is it weird that it prints with quotes, but fstab doesn't do quotes, or am I nit picking?Hu wrote:As an alternative to PARTUUID, you may be able to use PARTLABEL, if you labeled your partitions properly. These are human-chosen and generally short, unlike UUIDs.
There is also LABEL (for a filesystem label), but not all filesystems can be labeled. Swap can be labeled at creation time with --label. I don't know about vfat.
The output of blkid should give you UUIDs and, if present, LABELs, so you can determine what options are available without the need to make further changes.

Gentoo has a tool that is borrowed from archlinux. its called genfstab it basically puts all the mount points in fstab for you without you doing it by hand.decuser wrote:blkid is the ticket. Thanks for that. Saved me having to google it. Is it weird that it prints with quotes, but fstab doesn't do quotes, or am I nit picking?Hu wrote:As an alternative to PARTUUID, you may be able to use PARTLABEL, if you labeled your partitions properly. These are human-chosen and generally short, unlike UUIDs.
There is also LABEL (for a filesystem label), but not all filesystems can be labeled. Swap can be labeled at creation time with --label. I don't know about vfat.
The output of blkid should give you UUIDs and, if present, LABELs, so you can determine what options are available without the need to make further changes.
Code: Select all
genfstab -U / >> /etc/fstabI've added it to the handful of packages I install in my chroot. With LVM hosting root and EFI, it doesn't seem to matter much about the /EFI and swap partitions when things go wrong, but using a sys-gen'd fstab seems like a good idea to me.jb1277976_ wrote:Gentoo has a tool that is borrowed from archlinux. its called genfstab it basically puts all the mount points in fstab for you without you doing it by hand.Look at fstab after that and you see everything is perfect.Code: Select all
genfstab -U / >> /etc/fstab
~ Joe B