Gentoo Archives: gentoo-user

From: John Campbell <jdc.rpv@×××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Find root partition
Date: Thu, 20 Jan 2011 03:37:23
Message-Id: 4D37AD6D.1030304@cox.net
In Reply to: [gentoo-user] Find root partition by Matthias Fechner
1 On 01/20/2011 08:02 AM, Matthias Fechner wrote:
2 > Dear list,
3 >
4 > I switched now to a new mainboard and it seems that the drive numbering
5 > changed or my kernel does not detect any hard disks...
6 > If I try to boot my gentoo the kernel panic because it cannot find the
7 > root partition.
8 >
9 > After the panic I cannot scroll up to check what drives are detected and
10 > which numbering is used. What must I do to be able to scroll up to see
11 > what is logged to the screen?
12 > (is there maybe a special key available, the shift+page-up and scroll is
13 > not working)
14
15 You didn't mention whether you were using lilo or grub to boot.
16
17 If you're using grub you can use the grub shell to figure that out. At
18 least to the which are detected and numbering phase.
19
20 I had that problem or something similar some time ago when updating to
21 the new, at the time, pata drivers. I ended up using a brute force
22 technique... I booted grub to it's built in shell and used it's limited
23 tools to figure out which partition/drive was which and editing the
24 kernel/initrd lines to get the system to boot to init level 1 and then
25 make the changes permanent in grub and fstab.
26
27 Probably an easier method would be to use a livecd. Just edit the grub
28 menu.lst file and fstab to match your new layout. Or change the
29 device.map to match the old layout.

Replies

Subject Author
Re: [gentoo-user] Find root partition Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] Find root partition Matthias Fechner <idefix@×××××××.net>