booting linux from usb using grub


by daniel_i_l
Tags: booting, grub, linux
daniel_i_l
daniel_i_l is offline
#1
Jul8-09, 12:37 AM
PF Gold
daniel_i_l's Avatar
P: 867
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
Phys.Org News Partner Science news on Phys.org
Cougars' diverse diet helped them survive the Pleistocene mass extinction
Cyber risks can cause disruption on scale of 2008 crisis, study says
Mantis shrimp stronger than airplanes
KLoux
KLoux is offline
#2
Jul8-09, 09:31 AM
P: 175
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
CylonMath
CylonMath is offline
#3
Jul11-09, 06:30 AM
P: 35
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.

daniel_i_l
daniel_i_l is offline
#4
Jul11-09, 04:04 PM
PF Gold
daniel_i_l's Avatar
P: 867

booting linux from usb using grub


Hi, the usb's bootloader starts, the problem is that it can't find the files (kernel + initrd) on the usb.
Thanks
colonelcrayon
colonelcrayon is offline
#5
Jul11-09, 07:15 PM
P: 90
I have had nothing but pain trying to boot from USB. My advice: stick with a regular live CD.
CylonMath
CylonMath is offline
#6
Jul11-09, 10:16 PM
P: 35
Quote Quote by daniel_i_l View Post
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 shouldnt give such an error.
daniel_i_l
daniel_i_l is offline
#7
Jul13-09, 05:32 PM
PF Gold
daniel_i_l's Avatar
P: 867
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.


Register to reply

Related Discussions
Booting off a usb drive on a pc that does not support it Computing & Technology 9
Dual booting Computing & Technology 6
GRUB help Computing & Technology 1
booting cd-rom Computing & Technology 29
System not booting with ati 9800 pro Computing & Technology 6