On Fri, Oct 28, 2011 at 11:32 AM, Clive Cooper <[email protected]> wrote:
>
> Hi Andrew, Matthew and Kevin,
>
> Thanks for the replies, it is really appreciated.
> I have solved the problem and my LFS boots fine.... there is no one
> more surprised than I.
> I feel I have really achieved something.
>
> I did not manage to get it to boot on the USB stick, I believe the
> problem is more to do with this laptop than anything else. I
> recompiled the kernel 4 times and included every module I could think
> may even have the slightest to do with it.
> I did read all the help info and after getting no further forward this
> is what I did.
>
> My laptop HDD was already partitioned into 4 primary partitions...
> sda1 boot 60MB
> sda2 swap 500MB
> sda3 /        15GB
> sda4 /home 280GB
>
> I cleared some space on sda4 and shrunk it. I deleted sda2 and called
> it a loss. I created 2 extended partitions in the 20GB I recovered
> from sda4, sda5 became a new 500MB swap and sda6 an empty ext3 drive.
> I copied everything from the USB stick to sda6 changed the LFS entry
> in my existing old grub menu.lst and rebooted.
> Selected LFS and it booted perfectly.
>
> Thanks to everyone for their help.
> As soon as I have finished having a play with it I intend to delete it
> all and do the LFS install all over again (doing all the tests fully
> this time).
>
> Thanks again
>
> Clive.
>
> On 28 October 2011 15:53, Andrew Benton <[email protected]> wrote:
> > 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
> >
>

Try adding rootwait to the kernel commandline.

USB devices tend to appear "after" it tries to mount the / partition.
rootwait tells the kernel to wait indefinately until the root
partition appears (if it appears).  Also a handy trick to keep the
kernel from panicking if you want to review the logs.

--
Nathan Coulson (conathan)
------
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to