Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] grub on a SATA drive Heinz Sporn <heinz.sporn@××××××××.com>
Re: [gentoo-user] grub on a SATA drive Chris Boot <bootc@×××××.net>
Re: [gentoo-user] grub on a SATA drive Neil Bothwick <neil@××××××××××.uk>