2010/8/27 Nikos Chantziaras <rea...@arcor.de>: > On 08/27/2010 10:37 AM, Dale wrote: >> >> I been putting this off but it looks like the newer kernels are going to >> push me to changing this real soon. I have a older system, Abit NF7 2.0 >> motherboard with the older IDE drives. I'm still using the older IDE >> drivers. This is what I have currently: >> >> hda Actual hard drive OS on this >> hdb Actual hard drive Not in use >> hdc Actual hard drive home partition >> hdd DVD burner Duh! It's a burner. >> sda Actual hard drive connected through a SATA PCI card. Misc stuff. > > The advice by the other posters to label your disks is a good one. I'm > using labels too. Not sure why I didn't think to mention it :P > > Applying labels to your filesystems is trivial. Simply use the e2label > utility (it's in the sys-fs/e2fsprogs package and installed by default, so > there's nothing new to emerge). For example, if your hda1 is your root > partition and your hda2 your swap, you can label them like this: > > e2label /dev/hda1 GentooRoot > e2label /dev/hda2 GentooSwap > > Note: hda1, not just hda. You are labeling the filesystem on a partition, > not the whole drive. > > After you label all your filesystems, you simply modify your /etc/fstab like > this: > > Before: > /dev/hda1 / ext4 noatime 0 1 > /dev/hda2 none swap sw 0 0 > > After: > /dev/disk/by-label/GentooRoot / ext4 noatime 0 1 > /dev/disk/by-label/GentooSwap none swap sw 0 0 > > That is, you simply change "/dev/blah" to "/dev/disk/by-label/DriveLabel" > and that's it. > > > Or you can do it by uuid, all the info you need can be picked from this output:
$ ls /dev/disk/by-uuid/ -l Then just add lines to fstab like this: UUID="6ea2b219-0bcc-4c90-9960-82a9659e6d0e" / ext4 noatime 0 1 -- Jesús Guerrero Botella