Gentoo Archives: gentoo-user

From: "Jesús J. Guerrero Botella" <jesus.guerrero.botella@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers
Date: Fri, 27 Aug 2010 09:01:25
Message-Id: AANLkTikE-nvp+zSC-KGbRC-s_PfXy1U=u8mS6e8zeO1p@mail.gmail.com
In Reply to: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers by Nikos Chantziaras
1 2010/8/27 Nikos Chantziaras <realnc@×××××.de>:
2 > On 08/27/2010 10:37 AM, Dale wrote:
3 >>
4 >> I been putting this off but it looks like the newer kernels are going to
5 >> push me to changing this real soon. I have a older system, Abit NF7 2.0
6 >> motherboard with the older IDE drives. I'm still using the older IDE
7 >> drivers. This is what I have currently:
8 >>
9 >> hda Actual hard drive OS on this
10 >> hdb Actual hard drive Not in use
11 >> hdc Actual hard drive home partition
12 >> hdd DVD burner Duh! It's a burner.
13 >> sda Actual hard drive connected through a SATA PCI card. Misc stuff.
14 >
15 > The advice by the other posters to label your disks is a good one.  I'm
16 > using labels too.  Not sure why I didn't think to mention it :P
17 >
18 > Applying labels to your filesystems is trivial.  Simply use the e2label
19 > utility (it's in the sys-fs/e2fsprogs package and installed by default, so
20 > there's nothing new to emerge).  For example, if your hda1 is your root
21 > partition and your hda2 your swap, you can label them like this:
22 >
23 >  e2label /dev/hda1 GentooRoot
24 >  e2label /dev/hda2 GentooSwap
25 >
26 > Note: hda1, not just hda.  You are labeling the filesystem on a partition,
27 > not the whole drive.
28 >
29 > After you label all your filesystems, you simply modify your /etc/fstab like
30 > this:
31 >
32 > Before:
33 > /dev/hda1  /  ext4  noatime  0 1
34 > /dev/hda2  none  swap  sw  0 0
35 >
36 > After:
37 > /dev/disk/by-label/GentooRoot  /  ext4  noatime  0 1
38 > /dev/disk/by-label/GentooSwap  none  swap  sw 0 0
39 >
40 > That is, you simply change "/dev/blah" to "/dev/disk/by-label/DriveLabel"
41 > and that's it.
42 >
43 >
44 >
45 Or you can do it by uuid, all the info you need can be picked from this output:
46
47 $ ls /dev/disk/by-uuid/ -l
48
49 Then just add lines to fstab like this:
50
51 UUID="6ea2b219-0bcc-4c90-9960-82a9659e6d0e" / ext4 noatime 0 1
52 --
53 Jesús Guerrero Botella

Replies

Subject Author
Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers "J. Roeleveld" <joost@××××××××.org>