1 |
Hi, Nikos! |
2 |
|
3 |
On Sun, Jul 20, 2008 at 12:29:19AM +0300, Nikos Chantziaras wrote: |
4 |
> Alan Mackenzie wrote: |
5 |
> >>The default in new kernels is to only use /dev/sd*. |
6 |
|
7 |
> >I'm totally confused. Doesn't "sd*" mean "SCSI disk drive"? When I was |
8 |
> >installing Gentoo from the CD, I had to mount my main hard drive as |
9 |
> >/dev/sdb5. When I built my own kernel, it needed /dev/hdh5. |
10 |
|
11 |
> >This seems crazy. Is it documented anywhere in Gentoo? |
12 |
|
13 |
> Not sure. But if you have /dev/hd* instead of /dev/sd*, it means you |
14 |
> configured your kernel with the legacy IDE drivers instead of the new |
15 |
> (P)ATA drivers. The new drivers use /dev/sd* (for IDE/PATA/SATA and |
16 |
> SCSI alike; there's no difference anymore.) |
17 |
|
18 |
This was indeed the case. |
19 |
|
20 |
> The CD/DVD-ROM can show up as /dev/sd* even with the old legacy drivers |
21 |
> if you have enable "SCSI Emulation" for it. |
22 |
|
23 |
> In any event, try to build a new kernel using the new drivers. The old |
24 |
> legacy driver you're using will probably get declared "deprecated" at |
25 |
> some point (if it didn't happen already). |
26 |
|
27 |
[ Detailed instructions snipped - but they were appreciated and followed |
28 |
:-] |
29 |
|
30 |
Did this. It mapped my two hard drives (previously /dev/hd[gh]) to |
31 |
/dev/sd[ab], and created /dev/sda, dev/sda1, ..... So far, so good. |
32 |
|
33 |
However, it hadn't created /dev/sda16 or /dev/sda17 for some reason. A |
34 |
quick # ls -l /dev/sd{a15,b} gives: |
35 |
|
36 |
... 8, 15 /dev/sda15 |
37 |
... 8, 16 /dev/sdb |
38 |
|
39 |
In a philosophical mood, one might say that the new "unified", |
40 |
"enhanced", "better" IDE support is inadequate for my setup. What I |
41 |
actually said, I'm not going to repeat in a public mailing list. |
42 |
|
43 |
So the kernel guys have decided that nobody would ever want more than 15 |
44 |
partitions on a drive. It's a bit like the old MS-DOS restriction to 512 |
45 |
MB all over again. Hey, guys, hard drives nowadays are like 200 gig, not |
46 |
512meg. What's so wrong about having partitions with sizes 1Gb, 2Gb, 4Gb, |
47 |
with maybe 100Mb for a boot partition? |
48 |
|
49 |
> < > Generic ATA support |
50 |
|
51 |
> unless you can't find a native driver for your chipset (I doubt you have |
52 |
> some extremely rare/exotic mainboard ;) |
53 |
|
54 |
The HPT370A UDMA100 chip (with my two hard drives) was no problem. For |
55 |
the VIA VT82C586A/B/VT82C686/A/B/VT823x/A/C "ordinary" IDE chip (the one |
56 |
with my two DVD drives attached), I tried configuring "VIA", which |
57 |
didn't work. Then I rebuilt the kernel again with "Generic ATA |
58 |
support", which didn't work either. |
59 |
|
60 |
Both of these created /dev/sdc and /dev/sdc1, but no /dev/sdd. When I |
61 |
tried # mount -t iso9660 /dev/sdc /cdrom, I got the "something's gone |
62 |
wrong, but we're not telling you what" error message. Trying to mount |
63 |
/dev/sdc1 gave exactly the same result. Actually, thinking about it, |
64 |
this was probably my USB stick it was trying to access. |
65 |
|
66 |
Nikos, do you happen to know the appropriate kernel mailing list where I |
67 |
could express the opinion that restricting the number of partitions on a |
68 |
drive to 15 isn't a good tradeoff? |
69 |
|
70 |
All in all, I really amn't impressed with this "modern" drive support. |
71 |
Besides quartering the max number of partitions on a drive, it confuses |
72 |
IDE and SCSI drives, thus confusing me, too. Previously, when I |
73 |
attached devices to the IDE1 socket, I knew they would appear at |
74 |
/dev/hd[cd]. Now, it would seem, the kernel assigns drives at random to |
75 |
/dev/sd[abcd...], so you can only determine by experiment which devices |
76 |
are at which "device". Nothing personal, Nikos. ;-) |
77 |
|
78 |
I think I need to go back to the traditional IDE handling. |
79 |
|
80 |
None of the Gentoo kernels I've built have even seen my two DVD drives, |
81 |
yet. I'll get there, somehow. |
82 |
|
83 |
Thanks! |
84 |
|
85 |
-- |
86 |
Alan Mackenzie (Nuremberg, Germany). |