Gentoo Archives: gentoo-user

From: frares@×××××.com
To: gentoo-user@l.g.o
Subject: Re: Re: [gentoo-user] /dev/sda* missing at boot
Date: Fri, 19 Aug 2011 13:10:11
Message-Id: 20cf30563e93985a3b04aadb6e8f@google.com
1 Em 18/08/2011 23:27, Mark Knecht <markknecht@×××××.com> escreveu:
2 > On Thu, Aug 18, 2011 at 11:59 AM, frares@×××××.com> wrote:
3 > > Hi, guys
4 > >
5 > > It is a shame, I know, but after several years using Gentoo, it is the
6 > first
7 > > time I try to build a kernel without "genkernel".
8 > >
9 > > And now I can't boot to that new kernel, it does not find (and really
10 > do not
11 > > have a) /dev/sda* root partition ("real-root"); during the boot it
12 > stops,
13 > > complaining about that, gives me the option to get a shell, from which
14 > I am
15 > > able to see that there is no /dev/sda* .
16 > >
17 > > I have included everything SATA, so it looks like that is not a kernel
18 > > problem, but a initramfs issue, I guess.
19 > >
20 > > What am I missing?
21 > >
22 > > Thanks a lot
23 > > Francisco
24 > >
25 > > PS: my boot partition is sda2, sda3 is a swap partition, and everything
26 > > else is in sda4. sda1 is not used (up to now) and this is my grub.conf :
27 > >
28 > > title Gentoo Linux 2.6.39-gentoo-r3
29 > > root (hd0,1)
30 > > kernel /boot/kernel-genkernel-x86_64-2.6.39-gentoo-r3 ro root=/dev/ram0
31 > > init=/linuxrc real_root=/dev/sda4 vga=0x318 video=uvesafb:1024x768-32
32 > > nodevfs udev devfs=nomount quiet CONSOLE=/dev/tty1
33 > > initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3
34
35 > Maybe I'm missing the obvious here but have you taken a copy of
36 > whatever config file was used/generated by genkernel and used that as
37 > a jumping off point for building your own kernel. kernel's a kernel's
38 > a kernel. What it is capable of doing is in the .config file. If
39 > genkernel doesn't give you a .config file - I've never used genkernel
40 > so I don't know what it does - then assuming you have the feature
41 > turned on you can get the running config using zcat /proc/config.gz.
42 > Save that to a new .config file, put it in the kernel source directory
43 > and you should be good to go.
44
45 > You can also use zcat /proc/config.gz on the install CD kernel if yuo
46 > boot from that. Save it to a disk and use it as the basis for creating
47 > your own config.
48
49 > HTH,
50 > Mark
51
52
53
54 That's what I am doing right now. I am using genkernel to have something to
55 boot on. Then I will try to find a way to optimize another one.
56
57 Thanks
58 Francisco