From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QuPLM-0000pp-Mr for garchives@archives.gentoo.org; Fri, 19 Aug 2011 13:42:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73A2621C2E3; Fri, 19 Aug 2011 13:42:30 +0000 (UTC) Received: from mail-iy0-f175.google.com (mail-iy0-f175.google.com [209.85.210.175]) by pigeon.gentoo.org (Postfix) with ESMTP id 6726521C029 for ; Fri, 19 Aug 2011 13:41:24 +0000 (UTC) Received: by iyn15 with SMTP id 15so5520844iyn.20 for ; Fri, 19 Aug 2011 06:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/WH2c0P69uONCpsR1kBMixDvOTmLBy9oCB/nAmVVBf0=; b=dcIpJmVDW6jxIw+Q0i/X8uuluDj5JqhOD0n6fGeKsrfcK2/CXtkf6wC77EQPRO9kjV w0raXrZRVPX58sFl0kufeWMJMAKZscAf3b+4aqtZ/goec4rBcLTTJKK+RSRCI0RRejHj JPRA/aFKSfvi2zy52AXi2huvZlJWwW28yNVp8= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.143.79.17 with SMTP id g17mr1033971wfl.22.1313761284535; Fri, 19 Aug 2011 06:41:24 -0700 (PDT) Received: by 10.143.1.13 with HTTP; Fri, 19 Aug 2011 06:41:24 -0700 (PDT) In-Reply-To: <20cf30563e9305fe3504aadb7be7@google.com> References: <201108191109.34984.michaelkintzios@gmail.com> <20cf30563e9305fe3504aadb7be7@google.com> Date: Fri, 19 Aug 2011 09:41:24 -0400 Message-ID: Subject: Re: Re: [gentoo-user] /dev/sda* missing at boot From: Gregory Woodbury To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=001517401870af371304aadbe227 X-Archives-Salt: X-Archives-Hash: c3dbd8ffdcb2e97dff26e035767a6811 --001517401870af371304aadbe227 Content-Type: text/plain; charset=UTF-8 On Fri, Aug 19, 2011 at 9:12 AM, wrote: > Em 19/08/2011 07:09, Mick escreveu: > > On Friday 19 Aug 2011 03:27:23 Mark Knecht wrote: > > > > On Thu, Aug 18, 2011 at 11:59 AM, frares@gmail.com> wrote: > > > > Hi, guys > > > > > > > > It is a shame, I know, but after several years using Gentoo, it is > the > > > > first time I try to build a kernel without "genkernel". > > > > > > > > And now I can't boot to that new kernel, it does not find (and really > do > > > > not have a) /dev/sda* root partition ("real-root"); during the boot > it > > > > stops, complaining about that, gives me the option to get a shell, > from > > > > which I am able to see that there is no /dev/sda* . > > > > > > > > I have included everything SATA, so it looks like that is not a > kernel > > > > problem, but a initramfs issue, I guess. > > > > > > > > What am I missing? > > > > > > > > Thanks a lot > > > > Francisco > > > > > > > > P.S.: my boot partition is sda2, sda3 is a swap partition, and > everything > > > > else is in sda4. sda1 is not used (up to now) and this is my > grub.conf : > > > > > > > > title Gentoo Linux 2.6.39-gentoo-r3 > > > > root (hd0,1) > > > > kernel /boot/kernel-genkernel-x86_64-2.6.39-gentoo-r3 ro > root=/dev/ram0 > > > > init=/linuxrc real_root=/dev/sda4 vga=0x318 video=uvesafb:1024x768-32 > > > > nodevfs udev devfs=nomount quiet CONSOLE=/dev/tty1 > > > > initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3 > > > > > > Maybe I'm missing the obvious here but have you taken a copy of > > > whatever config file was used/generated by genkernel and used that as > > > a jumping off point for building your own kernel. kernel's a kernel's > > > a kernel. What it is capable of doing is in the .config file. If > > > genkernel doesn't give you a .config file - I've never used genkernel > > > so I don't know what it does - then assuming you have the feature > > > turned on you can get the running config using zcat /proc/config.gz. > > > Save that to a new .config file, put it in the kernel source directory > > > and you should be good to go. > > > > > > You can also use zcat /proc/config.gz on the install CD kernel if yuo > > > boot from that. Save it to a disk and use it as the basis for creating > > > your own config. > > > > If you no longer use genkernel it is likely that you do not need an > initram. > > Build chipset and fs modules into the kernel. Other drivers you can > choose if > > you want to build as modules. > > I the case I don't need a initram, I guess that the grub line for parameter > passing to the kernel would be empty. Am I wrong? > > I was just looking on how to build my own initram. What is it supposed to > do anyway? > The initramfs is a container for modules and stuff need to bring up the system before the mounts of / and /boot. If all the drivers are built-in to the kernel (or at least the minimum required drivers are built-in) then the initramfs isn't necessary. Passing parameters to the kernel is a different issue entirely. My grub.conf line is: kernel /vmlinuz-3.0.3-gentoo root=/dev/sda2 pata_it821x.noraid=1 with the pata_it821x driver built-in for the kenel to find a set of older IDE drives on the IT8212 card I have installed. IIRC the initramfs is built with the mkinitrd command. I haven't had to use it so I could be wrong. --001517401870af371304aadbe227 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Fri, Aug 19, 2011 at 9:12 AM, <frares@gmail.com>= ; wrote:
Em 19/08/2011 07:09, Mick <michaelkintzios@gmail.com> escreveu:
> On Fr= iday 19 Aug 2011 03:27:23 Mark Knecht wrote:

> >= On Thu, Aug 18, 2011 at 11:59 AM, =C2=A0frares@gmail.com> wrote:
> > > Hi, guys
> > >
> > > It is a shame, = I know, but after several years using Gentoo, it is the
> > > f= irst time I try to build a kernel without "genkernel".
> &g= t; >
> > > And now I can't boot to that new kernel, it does not fin= d (and really do
> > > not have a) /dev/sda* root partition (&q= uot;real-root"); during the boot it
> > > stops, complaini= ng about that, gives me the option to get a shell, from
> > > which I am able to see that there is no /dev/sda* .
> = > >
> > > I have included everything SATA, so it looks li= ke that is not a kernel
> > > problem, but a initramfs issue, I= guess.
> > >
> > > What am I missing?
> > >
> > > Thanks a lot
> > > Francisco
> > &g= t;
> > > P.S.: my boot partition is sda2, sda3 is a swap partit= ion, and everything
> > > else is in sda4. sda1 is not used (up to now) and this is my= grub.conf :
> > >
> > > title Gentoo Linux 2.6.39-= gentoo-r3
> > > root (hd0,1)
> > > kernel /boot/ker= nel-genkernel-x86_64-2.6.39-gentoo-r3 ro root=3D/dev/ram0
> > > init=3D/linuxrc real_root=3D/dev/sda4 vga=3D0x318 video=3Duv= esafb:1024x768-32
> > > nodevfs udev devfs=3Dnomount quiet CONS= OLE=3D/dev/tty1
> > > initrd /boot/initramfs-genkernel-x86_64-2= .6.39-gentoo-r3
> >
> > Maybe I'm missing the obvious here but have you = taken a copy of
> > whatever config file was used/generated by gen= kernel and used that as
> > a jumping off point for building your = own kernel. kernel's a kernel's
> > a kernel. What it is capable of doing is in the .config file. If<= br>> > genkernel doesn't give you a .config file - I've never= used genkernel
> > so I don't know what it does - then assumi= ng you have the feature
> > turned on you can get the running config using zcat /proc/config.= gz.
> > Save that to a new .config file, put it in the kernel sour= ce directory
> > and you should be good to go.
> >
> > You can also use zcat /proc/config.gz on the install CD kernel if= yuo
> > boot from that. Save it to a disk and use it as the basis= for creating
> > your own config.
>
> If you no long= er use genkernel it is likely that you do not need an initram.
> Build chipset and fs modules into the kernel. =C2=A0Other drivers you = can choose if
> you want to build as modules.

I the case I don= 't need a initram, I guess that the grub line for parameter passing to = the kernel would be empty. Am I wrong?

I was just looking on how to build my own initram. What is it supposed = to do anyway?

The initramfs is a container for mod= ules and stuff need to bring up the system before the mounts of
/ and /= boot. =C2=A0=C2=A0 If all the drivers are built-in to the kernel (or at lea= st the minimum required drivers are built-in)
then the initramfs isn't necessary.

Passing parameters to the ke= rnel is a different issue entirely.

My grub.conf line is:

=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 kernel /vmlinuz-3.0.3-gentoo root=3D/dev/sda2 pata_it821x.nora= id=3D1

with the pata_it821x driver built-in for the kenel to find a set of old= er IDE drives on the IT8212 card I have installed.

IIRC the initramf= s is built with the mkinitrd command.=C2=A0 I haven't had to use it so = I could be wrong.
--001517401870af371304aadbe227--