Booting linux from usb using grub

  • Thread starter Thread starter daniel_i_l
  • Start date Start date
  • Tags Tags
    Linux Usb
AI Thread Summary
Booting multiple Linux distributions from a USB using GRUB can lead to "Error 15: file not found," indicating that GRUB cannot locate necessary files like the kernel and initrd. This issue may arise from incorrect device naming or configuration. Unlike LILO, which automatically recognizes USB devices without needing specific device names, GRUB requires precise root specifications. To troubleshoot, users should ensure the USB is bootable and try using GRUB commands like "root (hd1,0)" and "chainloader +1" to redirect to the USB's bootloader. Additionally, it's essential to verify that the correct device map is used when installing GRUB, as it may refer to the USB differently during installation compared to booting.
daniel_i_l
Gold Member
Messages
864
Reaction score
0
I've tried booting multiple distros from a usb (slux, puppy, ubuntu) using grub. When I turn on the computer with the usb, grub loads. But when I select any of the distros I get:
Error 15: file not found.
I tried changing the root from root=(hd0,0) to all the possible combinations and nothing worked. Lilo on the other hand worked on two different usb's with all of the above distros. Does anyone have any ideas as to why lilo can boot from a usb and not grub? Is there anything special that has to be done to grub to make it boot from a usb?
One thing that seemed strange was that lilo doesn't make you specify a device name (just the fact that it's a usb) and grub does. Is grub having trouble with device names when trying to boot things from a usb?
Thanks,
Daniel
 
Computer science news on Phys.org
I can't answer your question (so maybe I shouldn't be replying?), but I'm curious:

Do you have multiple OSs on the USB drive? What is it that you're trying to accomplish?

I boot Fedora from USB on occasion, and depending on what computer I'm using, I need to either change the bios to modify the boot order, or the computer recognizes the bootable USB and asks if I want to boot from it - no grub needed...

-Kerry
 
First you need to make sure that usb is bootable

then press C in grub, ( I assume hd0 is your harddisk, so hd1 will be usb)

enter these commands :
root (hd1,0)
chainloader +1
boot

it should give the control to usb's bootloader now.
 
Hi, the usb's bootloader starts, the problem is that it can't find the files (kernel + initrd) on the usb.
Thanks
 
I have had nothing but pain trying to boot from USB. My advice: stick with a regular live CD.
 
daniel_i_l said:
Hi, the usb's bootloader starts, the problem is that it can't find the files (kernel + initrd) on the usb.
Thanks

What distribution is this ? If you succesfully copied the contents, it shouldn't give such an error.
 
I've solved the problem:
While I was installing grub to the usb, grub called my usb device (hda1,0). But when grub boots from a usb it always calls it (hd0,0). So the device map I used to install grub was wrong.
Thanks for all the help.
 

Similar threads

Replies
5
Views
2K
Replies
11
Views
3K
Replies
1
Views
2K
Replies
6
Views
2K
Replies
2
Views
1K
Replies
21
Views
3K
Replies
15
Views
3K
Replies
5
Views
4K
Back
Top