Gentoo Archives: gentoo-user

From: Gregory Woodbury <redwolfe@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: Re: [gentoo-user] /dev/sda* missing at boot
Date: Fri, 19 Aug 2011 13:42:41
Message-Id: CAJoOjx9VEczcmi0zoYxh8rQz4JNJEVnwbomnMSkOmSwKY+Ot2A@mail.gmail.com
In Reply to: Re: Re: [gentoo-user] /dev/sda* missing at boot by frares@gmail.com
1 On Fri, Aug 19, 2011 at 9:12 AM, <frares@×××××.com> wrote:
2
3 > Em 19/08/2011 07:09, Mick <michaelkintzios@×××××.com> escreveu:
4 > > On Friday 19 Aug 2011 03:27:23 Mark Knecht wrote:
5 >
6 > > > On Thu, Aug 18, 2011 at 11:59 AM, frares@×××××.com> wrote:
7 > > > > Hi, guys
8 > > > >
9 > > > > It is a shame, I know, but after several years using Gentoo, it is
10 > the
11 > > > > first time I try to build a kernel without "genkernel".
12 > > > >
13 > > > > And now I can't boot to that new kernel, it does not find (and really
14 > do
15 > > > > not have a) /dev/sda* root partition ("real-root"); during the boot
16 > it
17 > > > > stops, complaining about that, gives me the option to get a shell,
18 > from
19 > > > > which I am able to see that there is no /dev/sda* .
20 > > > >
21 > > > > I have included everything SATA, so it looks like that is not a
22 > kernel
23 > > > > problem, but a initramfs issue, I guess.
24 > > > >
25 > > > > What am I missing?
26 > > > >
27 > > > > Thanks a lot
28 > > > > Francisco
29 > > > >
30 > > > > P.S.: my boot partition is sda2, sda3 is a swap partition, and
31 > everything
32 > > > > else is in sda4. sda1 is not used (up to now) and this is my
33 > grub.conf :
34 > > > >
35 > > > > title Gentoo Linux 2.6.39-gentoo-r3
36 > > > > root (hd0,1)
37 > > > > kernel /boot/kernel-genkernel-x86_64-2.6.39-gentoo-r3 ro
38 > root=/dev/ram0
39 > > > > init=/linuxrc real_root=/dev/sda4 vga=0x318 video=uvesafb:1024x768-32
40 > > > > nodevfs udev devfs=nomount quiet CONSOLE=/dev/tty1
41 > > > > initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3
42 > > >
43 > > > Maybe I'm missing the obvious here but have you taken a copy of
44 > > > whatever config file was used/generated by genkernel and used that as
45 > > > a jumping off point for building your own kernel. kernel's a kernel's
46 > > > a kernel. What it is capable of doing is in the .config file. If
47 > > > genkernel doesn't give you a .config file - I've never used genkernel
48 > > > so I don't know what it does - then assuming you have the feature
49 > > > turned on you can get the running config using zcat /proc/config.gz.
50 > > > Save that to a new .config file, put it in the kernel source directory
51 > > > and you should be good to go.
52 > > >
53 > > > You can also use zcat /proc/config.gz on the install CD kernel if yuo
54 > > > boot from that. Save it to a disk and use it as the basis for creating
55 > > > your own config.
56 > >
57 > > If you no longer use genkernel it is likely that you do not need an
58 > initram.
59 > > Build chipset and fs modules into the kernel. Other drivers you can
60 > choose if
61 > > you want to build as modules.
62 >
63 > I the case I don't need a initram, I guess that the grub line for parameter
64 > passing to the kernel would be empty. Am I wrong?
65 >
66 > I was just looking on how to build my own initram. What is it supposed to
67 > do anyway?
68 >
69
70 The initramfs is a container for modules and stuff need to bring up the
71 system before the mounts of
72 / and /boot. If all the drivers are built-in to the kernel (or at least
73 the minimum required drivers are built-in)
74 then the initramfs isn't necessary.
75
76 Passing parameters to the kernel is a different issue entirely.
77
78 My grub.conf line is:
79
80 kernel /vmlinuz-3.0.3-gentoo root=/dev/sda2
81 pata_it821x.noraid=1
82
83 with the pata_it821x driver built-in for the kenel to find a set of older
84 IDE drives on the IT8212 card I have installed.
85
86 IIRC the initramfs is built with the mkinitrd command. I haven't had to use
87 it so I could be wrong.

Replies

Subject Author
Re: [gentoo-user] /dev/sda* missing at boot Dale <rdalek1967@×××××.com>