Gentoo Archives: gentoo-user

From: Heinz Sporn <heinz.sporn@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub on a SATA drive
Date: Tue, 29 Nov 2005 06:50:43
Message-Id: 1133246753.9739.7.camel@spok.local.sporn-it.com
In Reply to: Re: [gentoo-user] grub on a SATA drive by maxim wexler
1 Am Montag, den 28.11.2005, 22:34 -0800 schrieb maxim wexler:
2 >
3 > --- Petr Kocmid <Petr.Kocmid@××××××××××××××××.org>
4 > wrote:
5 >
6 > > On Thursday 24 of November 2005 17:31, maxim wexler
7 > > wrote:
8 > >
9 > > > But what do I call it? hd0 and hd1 are taken.
10 > >
11 > > It may well depend on your chipset configuration,
12 > > number of actually connected
13 > > drives and bios boot settings. On my board, there
14 > > are 2 PATA and 1 SATA
15 > > channels on the same controller. In linux kernel,
16 > > PATA is hda and hdb, SATA
17 > > is hdc, no matter what drives are actually
18 > > connected. When i migrated my
19 > > installation from PATA hda to SATA hdc, grub
20 > > detected hda as hd0 and hdc as
21 > > hd1 before, but once I removed parallel drive, SATA
22 > > become hd0 in grub (but
23 > > still hdc in linux), since it is first (boot) bios
24 > > drive. So I needed to fix
25 > > grub config to hd0 and change a root= kernel
26 > > parameter to hdc, since grub
27 > > insists hd0 should be hda even if there is no drive
28 > > connected on PATA:
29 > >
30 > > root (hd0,0)
31 > > kernel /boot/bzImage-2.6.10 root=/dev/hdc1
32 >
33 > is this a gentoo box?
34 >
35 > >
36 > > Also, I did grub setup on SATA MBS
37 >
38 > what's "MBS"?
39 >
40 > > from booted grub shell, not in linux,
41 > > because what it sees is what it gets then.
42 > >
43 > > Hope this may help you.
44 >
45 > Thanks for your suggestions. Here's where things
46 > stand:
47 >
48 > I did a fresh 2005.1 stage3 install onto the SATA
49 > drive without a hitch. I removed the ide drive, so
50 > there's only one hd.
51 >
52 > In dmesg the drive comes up as /dev/sda
53 > sda1(Macro$haft) sda2(/boot) < sda5(swap) sda6(/)
54 > sda7(home)>
55 >
56 > When I boot w/ the grub floppy I do:
57 >
58 > grub> root (hd0,1)
59 > Fs is ext2, part type 0x83
60 > grub> kernel /vmlinuz root=/dev/sda6
61 > [Linux-bzImage, setup=0x120, size 0x1463b31]
62
63 Shouldn't that read root=/dev/sda2 since your kernel obviously sits
64 in /boot == /dev/sda2 ? The root paramter should define the place where
65 your kernel / grub stage files reside IIRC and not where your root
66 filesystem is located. Naming the parameter root is quite misleading
67 though.
68
69 >
70 > ...so far, so good...
71 >
72 > grub> boot
73 >
74 > and get:
75 >
76 > ...VFS: Cannot open root device "sda6" or unknown
77 > block (0,0)
78 > Please append correct "root" boot option
79 > Kernel Panic-not syncing: VFS: Unable to mount root fs
80 > on unknown block (0,0)
81 >
82 > So I'm at a loss. The grub commands went alright.
83 > Wouldn't I get an error if one of the commands was
84 > wrong? Don't know what's meant by "unknown block
85 > (0,0)". Is it saying it's trying to mount / on
86 > /dev/sda1? Doesn't make sense.
87 >
88 > WinXP occupies 20G at /dev/sda1 and it boots OK. LBA
89 > is activated and this is a brand new, modern drive on
90 > a fairly up-to-date Asus, K8N, skt 754 mobo, so it
91 > can't be that old BIOS drive limit from the 90s.
92 >
93 > -mw
94 >
95 > >
96 > > --
97 > > Petr
98 > > --
99 > > gentoo-user@g.o mailing list
100 > >
101 > >
102 >
103 >
104 >
105 >
106 > __________________________________
107 > Yahoo! Music Unlimited
108 > Access over 1 million songs. Try it free.
109 > http://music.yahoo.com/unlimited/
110 --
111 Mit freundlichen Grüßen
112
113 Heinz Sporn
114
115 SPORN it-freelancing
116
117 Mobile: ++43 (0)699 / 127 827 07
118 Email: heinz.sporn@××××××××.com
119 heinz.sporn@××××××.at
120 Website: http://www.sporn-it.com
121 Snail: Steyrer Str. 20
122 A-4540 Bad Hall
123 Austria / Europe
124
125 --
126 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] grub on a SATA drive Glenn Enright <elinar@×××××××.nz>
Re: [gentoo-user] grub on a SATA drive Neil Bothwick <neil@××××××××××.uk>