-   Linux From Scratch (
-   -   Booting from usb drive (

spiky0011 11-12-2011 12:18 PM

Booting from usb drive
Hi I would like to link to this thread as an on going problem that I,m trying resolve. I have tried every combination with fstab & grub.cfg and installing grub. I can boot lfs if I put it as the only drive in laptop, But if i connect it as usb even as the only drive usb and set fstab grub.cfg as sda it will not load. I,m now thinking that I have missed something which lets it find usb drives. The laptop will boot from usb as there is another drive which boots. Need some help here plz

ButterflyMelissa 11-12-2011 12:44 PM


What's the partitioning scheme like? Is the first partition bootable? Are the partitions set up right in fstab?

Some loose thoughts...


spiky0011 11-12-2011 12:52 PM

It will boot if it,s fitted in laptop, everything setup for sda works fine, if i fit it as the only drive but usb same setup it wont boot fdisk -l shows it as sda. I have selected make partition bootable with disk utility in Ubuntu but still no joy.

druuna 11-13-2011 03:18 AM


You don't mention this, but have you already tried Larry Webb's advice from the other thread?

Using UUID's instead of /dev/sdxy makes things more flexible.

Hope this helps.

spiky0011 11-13-2011 05:09 AM

Hi drunna I did try all suggestions that I,m given. at the moment after going through I dont know how many web sites. Any way I have now tried booting from grub prompt, which dose find the vmlinux- file but get an error on "filesystem could not mount and kernel panic VFS fs on unkown block". This is the same errors I get when trying to boot it normally.
Bearing in mind it will boot when set on IDE of laptop.
I did recompile the kernel again checking for any sata drive stuff and usb stuff and ext4 fs stuff. So is this looking like a Grub problem or Kernel???
I have posted to lfs-support as well

spiky0011 11-13-2011 12:51 PM

Ok I seemed to have solved the problem I added rootdelay to grub.cfg. The reason behind it is so grub can wait for the usb to load

ButterflyMelissa 11-13-2011 11:42 PM

Thanks spiky0011!!! I learned something here, you brightened up my day (and week) :D


spiky0011 11-14-2011 02:37 AM

i,m glad i helped

All times are GMT -5. The time now is 09:39 PM.