public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mark Knecht <markknecht@gmail.com>
To: gentoo-amd64@lists.gentoo.org
Subject: [gentoo-amd64] If CD boots then why won't the hard drive?
Date: Fri, 22 Jan 2010 08:04:57 -0800	[thread overview]
Message-ID: <5bdc1c8b1001220804x1a6e5fe8n23e6654f70189a16@mail.gmail.com> (raw)

Hi again,
   Same new machine - new thread so as to not confuse the other thread
about flags.

   I made enough headway with grub to get it to find a kernel and try
to boot, but fails with the message:

VFS: Cannot open root device "sda2" or unknown-block(2,0)
Please append a correct "root=" boot option; Here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

Note that is lists nothing when it says 'Here are the available partitions:'

   My strategy for building this kernel - since the machine is very
new hardware - was to steal the .config file from the Install CD, so
while in the boot environment I did

zcat /proc/config.gz >/mnt/gentoo/config_CD

and then after the chroot did

emerge =gentoo-sources-2.6.29-r5
cd /usr/src
ln -s linux-2.6.29-gentoo-r5 linux
cd linux
mv /config_CD ./.config
make menuconfig

I checked that ext2 and ext3 were buit-in and not modules, built the
kernel and modules, installed the kernel in /boot, edited grub, exited
the install and tried booting. Clearly the kernel is found but then
the kernel cannot, I guess, find my hard drive /root partition?

   I used that specific kernel because that's what my install CD used
and that kernel had no problems mounting the drive after it booted.

   What am I doing wrong? Is it incorrect to use a .config file from a
CD and hope to get the same results? I do not use initrd which I think
is different than the CD so if I need to turn something off please let
me know.

Thanks,
Mark



             reply	other threads:[~2010-01-22 16:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22 16:04 Mark Knecht [this message]
2010-01-22 16:23 ` [gentoo-amd64] Re: If CD boots then why won't the hard drive? Mark Knecht
2010-01-22 16:26 ` [gentoo-amd64] " Paul Hartman
2010-01-22 16:57   ` Mark Knecht
2010-01-22 17:07     ` Paul Hartman
2010-01-22 17:40       ` Mark Knecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5bdc1c8b1001220804x1a6e5fe8n23e6654f70189a16@mail.gmail.com \
    --to=markknecht@gmail.com \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox