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 <gentoo-user+bounces-127103-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QuOtP-0004ZI-Qj
	for garchives@archives.gentoo.org; Fri, 19 Aug 2011 13:13:48 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 426D821C2F2;
	Fri, 19 Aug 2011 13:13:29 +0000 (UTC)
Received: from mail-yw0-f71.google.com (mail-yw0-f71.google.com [209.85.213.71])
	by pigeon.gentoo.org (Postfix) with ESMTP id 4FEEA21C2E3
	for <gentoo-user@lists.gentoo.org>; Fri, 19 Aug 2011 13:12:25 +0000 (UTC)
Received: by ywf9 with SMTP id 9so4182573ywf.10
        for <gentoo-user@lists.gentoo.org>; Fri, 19 Aug 2011 06:12:25 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.236.191.136 with SMTP id g8mr5383210yhn.4.1313759545390; Fri,
 19 Aug 2011 06:12:25 -0700 (PDT)
In-Reply-To: <201108191109.34984.michaelkintzios@gmail.com>
Message-ID: <20cf30563e9305fe3504aadb7be7@google.com>
Date: Fri, 19 Aug 2011 13:12:25 +0000
Subject: Re: Re: [gentoo-user] /dev/sda* missing at boot
From: frares@gmail.com
To: gentoo-user@lists.gentoo.org
Content-Type: multipart/alternative; boundary=20cf30563e9305fe1e04aadb7be4
X-Archives-Salt: 
X-Archives-Hash: 9586488f43fb49cea8c54b2edd4edd92

--20cf30563e9305fe1e04aadb7be4
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Em 19/08/2011 07:09, Mick <michaelkintzios@gmail.com> 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
> > >
> > > PS: 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.

> --
> Regards,
> Mick


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?

Thanks
Francisco

--20cf30563e9305fe1e04aadb7be4
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Em 19/08/2011 07:09, Mick &lt;michaelkintzios@gmail.com&gt; escreveu:<br />=
&gt; On Friday 19 Aug 2011 03:27:23 Mark Knecht wrote:<br />&gt; &gt; On Th=
u, Aug 18, 2011 at 11:59 AM, =A0frares@gmail.com&gt; wrote:<br />&gt; &gt; =
&gt; Hi, guys<br />&gt; &gt; &gt;<br />&gt; &gt; &gt; It is a shame, I know=
, but after several years using Gentoo, it is the<br />&gt; &gt; &gt; first=
 time I try to build a kernel without &quot;genkernel&quot;.<br />&gt; &gt;=
 &gt;<br />&gt; &gt; &gt; And now I can&#39;t boot to that new kernel, it d=
oes not find (and really do<br />&gt; &gt; &gt; not have a) /dev/sda* root =
partition (&quot;real-root&quot;); during the boot it<br />&gt; &gt; &gt; s=
tops, complaining about that, gives me the option to get a shell, from<br /=
>&gt; &gt; &gt; which I am able to see that there is no /dev/sda* .<br />&g=
t; &gt; &gt;<br />&gt; &gt; &gt; I have included everything SATA, so it loo=
ks like that is not a kernel<br />&gt; &gt; &gt; problem, but a initramfs i=
ssue, I guess.<br />&gt; &gt; &gt;<br />&gt; &gt; &gt; What am I missing?<b=
r />&gt; &gt; &gt;<br />&gt; &gt; &gt; Thanks a lot<br />&gt; &gt; &gt; Fra=
ncisco<br />&gt; &gt; &gt;<br />&gt; &gt; &gt; P.S.: my boot partition is s=
da2, sda3 is a swap partition, and everything<br />&gt; &gt; &gt; else is i=
n sda4. sda1 is not used (up to now) and this is my grub.conf :<br />&gt; &=
gt; &gt;<br />&gt; &gt; &gt; title Gentoo Linux 2.6.39-gentoo-r3<br />&gt; =
&gt; &gt; root (hd0,1)<br />&gt; &gt; &gt; kernel /boot/kernel-genkernel-x8=
6_64-2.6.39-gentoo-r3 ro root=3D/dev/ram0<br />&gt; &gt; &gt; init=3D/linux=
rc real_root=3D/dev/sda4 vga=3D0x318 video=3Duvesafb:1024x768-32<br />&gt; =
&gt; &gt; nodevfs udev devfs=3Dnomount quiet CONSOLE=3D/dev/tty1<br />&gt; =
&gt; &gt; initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3<br />&gt=
; &gt;<br />&gt; &gt; Maybe I&#39;m missing the obvious here but have you t=
aken a copy of<br />&gt; &gt; whatever config file was used/generated by ge=
nkernel and used that as<br />&gt; &gt; a jumping off point for building yo=
ur own kernel. kernel&#39;s a kernel&#39;s<br />&gt; &gt; a kernel. What it=
 is capable of doing is in the .config file. If<br />&gt; &gt; genkernel do=
esn&#39;t give you a .config file - I&#39;ve never used genkernel<br />&gt;=
 &gt; so I don&#39;t know what it does - then assuming you have the feature=
<br />&gt; &gt; turned on you can get the running config using zcat /proc/c=
onfig.gz.<br />&gt; &gt; Save that to a new .config file, put it in the ker=
nel source directory<br />&gt; &gt; and you should be good to go.<br />&gt;=
 &gt;<br />&gt; &gt; You can also use zcat /proc/config.gz on the install C=
D kernel if yuo<br />&gt; &gt; boot from that. Save it to a disk and use it=
 as the basis for creating<br />&gt; &gt; your own config.<br />&gt; <br />=
&gt; If you no longer use genkernel it is likely that you do not need an in=
itram.<br />&gt; Build chipset and fs modules into the kernel. =A0Other dri=
vers you can choose if<br />&gt; you want to build as modules.<br />&gt; <b=
r />&gt; --<br />&gt; Regards,<br />&gt; Mick<br />&gt; <br /><br />I the c=
ase I don&#39;t need a initram, I guess that the grub line for parameter pa=
ssing to the kernel would be empty.  Am I wrong?<br /><br />I was just look=
ing on how to build my own initram. What is it supposed to do anyway?<br />=
<br />Thanks<br />Francisco
--20cf30563e9305fe1e04aadb7be4--