Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
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:57:20
Message-Id: 201008271156.40997.joost@antarean.org
In Reply to: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers by Dale
1 On Friday 27 August 2010 11:49:00 Dale wrote:
2 > J. Roeleveld wrote:
3 > > On Friday 27 August 2010 11:00:58 Jesús J. Guerrero Botella wrote:
4 > >> 2010/8/27 Nikos Chantziaras<realnc@×××××.de>:
5 > >>> On 08/27/2010 10:37 AM, Dale wrote:
6 > >>>> I been putting this off but it looks like the newer kernels are going
7 > >>>> to push me to changing this real soon. I have a older system, Abit
8 > >>>> NF7 2.0 motherboard with the older IDE drives. I'm still using the
9 > >>>> older IDE drivers. This is what I have currently:
10 > >>>>
11 > >>>> hda Actual hard drive OS on this
12 > >>>> hdb Actual hard drive Not in use
13 > >>>> hdc Actual hard drive home partition
14 > >>>> hdd DVD burner Duh! It's a burner.
15 > >>>> sda Actual hard drive connected through a SATA PCI card. Misc stuff.
16 > >>>
17 > >>> The advice by the other posters to label your disks is a good one. I'm
18 > >>> using labels too. Not sure why I didn't think to mention it :P
19 > >>>
20 > >>> Applying labels to your filesystems is trivial. Simply use the e2label
21 > >>> utility (it's in the sys-fs/e2fsprogs package and installed by default,
22 > >>> so there's nothing new to emerge). For example, if your hda1 is your
23 > >>>
24 > >>> root partition and your hda2 your swap, you can label them like this:
25 > >>> e2label /dev/hda1 GentooRoot
26 > >>> e2label /dev/hda2 GentooSwap
27 > >>>
28 > >>> Note: hda1, not just hda. You are labeling the filesystem on a
29 > >>> partition, not the whole drive.
30 > >>>
31 > >>> After you label all your filesystems, you simply modify your /etc/fstab
32 > >>> like this:
33 > >>>
34 > >>> Before:
35 > >>> /dev/hda1 / ext4 noatime 0 1
36 > >>> /dev/hda2 none swap sw 0 0
37 > >>>
38 > >>> After:
39 > >>> /dev/disk/by-label/GentooRoot / ext4 noatime 0 1
40 > >>> /dev/disk/by-label/GentooSwap none swap sw 0 0
41 > >>>
42 > >>> That is, you simply change "/dev/blah" to
43 > >>> "/dev/disk/by-label/DriveLabel" and that's it.
44 > >>
45 > >> Or you can do it by uuid, all the info you need can be picked from this
46 > >> output:
47 > >>
48 > >> $ ls /dev/disk/by-uuid/ -l
49 > >>
50 > >> Then just add lines to fstab like this:
51 > >>
52 > >> UUID="6ea2b219-0bcc-4c90-9960-82a9659e6d0e" / ext4 noatime 0 1
53 > >
54 > > True, except that for mere mortals, Labels are slightly easier to read
55 > > and understand :)
56 > >
57 > > And that, I find, is less prone to mistakes.
58 > >
59 > > --
60 > > Joost
61 >
62 > Hmmm, I use resierfs for my file systems, most of them anyway. I still
63 > use e2fsprogs to change those?
64
65 Nope:
66 eve ~ # reiserfstune --help
67 reiserfstune: unrecognized option '--help'
68 reiserfstune: Usage: reiserfstune [options] device [block-count]
69
70 Options:
71
72 -j | --journal-device file current journal device
73 --journal-new-device file new journal device
74 -o | --journal-new-offset N new journal offset in blocks
75 -s | --journal-new-size N new journal size in blocks
76 -t | --trans-max-size N new journal max transaction size in blocks
77 --no-journal-available current journal is not available
78 --make-journal-standard new journal to be standard
79 -b | --add-badblocks file add to bad block list
80 -B | --badblocks file set the bad block list
81 -u | --uuid UUID|random set new UUID
82 -l | --label LABEL set new label
83 -f | --force force tuning, less confirmations
84 -V print version and exit
85
86 IOW (as example):
87 reiserfstune -l ROOTDISK /dev/hda1
88
89 > Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
90 > drivers? That way I can boot it and see exactly how it will name them
91 > and what drive is what without actually changing anything at all. Is
92 > there a boot option "noide" or some other switch I can use?
93
94 Afraid not.
95 The naming scheme is, officially, not constant and can change with reboots.
96
97 On my server, with hotswap, I get different device-names when I remove a disk
98 and plug it back in.
99 Eg. /dev/sdb -> /dev/sdj
100 (as example)
101 Don't think you'll have that particular issue, but having these names change
102 between reboots is possible. Especially if a drive fails and is not found
103 during boot or a new drive is added.
104
105 Not tested, but I believe USB-drives might also get pushed into the mix?
106
107 --
108 Joost

Replies

Subject Author
Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers Dale <rdalek1967@×××××.com>