On Fri, 28 Oct 2011 15:22:01 +0100
Clive Cooper <[email protected]> wrote:

> Still not solved the Kernel panic here so anyone wants to help be my guest.
> Output is...
> Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(2,0)
> 
This looks like a problem with your kernel config. I would suggest a
good place to start is Bruce's hint about kernels:
http://www.linuxfromscratch.org/hints/downloads/files/kernel-configuration.txt

Start with a monolithic kernel (no modules). Compile into it drivers
for your hardware and the filesystems you'll be using. A useful tool is
lspci from pciutisl, it will tell you what hardware your kernel can
see. Also, boot into another distro and run lsmod. It will show you
what modules they've loaded. Compile them into your kernel. As you're
boot a usb stick don't forget to enable all the usb and sata options
you need.

It's quite hard doing your first kernel compile. There's a lot of help
text to wade through and some options only appear in make menuconfig
when you enable other options. If you enable more options it takes
longer to compile and makes the kernel slightly larger. If you enable
too few options you may have missed the one crucial bit of code that
would have avoided a kernel panic. So start by erring on the side of
caution and once you've got a bootable kernel you can recompile and
turn things off. If that one doesn't work, go back to your last good
option which should be on your grub.cfg. grub.cfg is used by grub2
which we install in LFS. menu.lst was used by the older version of grub
which we used to use.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to