Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers
Date: Fri, 27 Aug 2010 08:51:07
Message-Id: i57u7j$tdq$1@dough.gmane.org
In Reply to: [gentoo-user] Old IDE drives and the "newer" PATA kernel drivers by Dale
1 On 08/27/2010 10:37 AM, Dale wrote:
2 > I been putting this off but it looks like the newer kernels are going to
3 > push me to changing this real soon. I have a older system, Abit NF7 2.0
4 > motherboard with the older IDE drives. I'm still using the older IDE
5 > drivers. This is what I have currently:
6 >
7 > hda Actual hard drive OS on this
8 > hdb Actual hard drive Not in use
9 > hdc Actual hard drive home partition
10 > hdd DVD burner Duh! It's a burner.
11 > sda Actual hard drive connected through a SATA PCI card. Misc stuff.
12
13 The advice by the other posters to label your disks is a good one. I'm
14 using labels too. Not sure why I didn't think to mention it :P
15
16 Applying labels to your filesystems is trivial. Simply use the e2label
17 utility (it's in the sys-fs/e2fsprogs package and installed by default,
18 so there's nothing new to emerge). For example, if your hda1 is your
19 root partition and your hda2 your swap, you can label them like this:
20
21 e2label /dev/hda1 GentooRoot
22 e2label /dev/hda2 GentooSwap
23
24 Note: hda1, not just hda. You are labeling the filesystem on a
25 partition, not the whole drive.
26
27 After you label all your filesystems, you simply modify your /etc/fstab
28 like this:
29
30 Before:
31 /dev/hda1 / ext4 noatime 0 1
32 /dev/hda2 none swap sw 0 0
33
34 After:
35 /dev/disk/by-label/GentooRoot / ext4 noatime 0 1
36 /dev/disk/by-label/GentooSwap none swap sw 0 0
37
38 That is, you simply change "/dev/blah" to
39 "/dev/disk/by-label/DriveLabel" and that's it.

Replies

Subject Author
Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers "Jesús J. Guerrero Botella" <jesus.guerrero.botella@×××××.com>
Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers "Stefan G. Weichinger" <lists@×××××.at>
Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers Bill Longman <bill.longman@×××××.com>