LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Booting from usb drive (http://www.linuxquestions.org/questions/linux-from-scratch-13/booting-from-usb-drive-913194/)

spiky0011 11-12-2011 01: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

Thor_2.0 11-12-2011 01:44 PM

Hi,

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

Some loose thoughts...

Thor

spiky0011 11-12-2011 01: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 04:18 AM

Hi,

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 06: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 01: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

Thor_2.0 11-14-2011 12:42 AM

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

Thor

spiky0011 11-14-2011 03:37 AM

i,m glad i helped


All times are GMT -5. The time now is 05:55 AM.