Booting linux from usb using grub

  • Thread starter Thread starter daniel_i_l
  • Start date Start date
  • Tags Tags
    Linux Usb
Click For Summary
SUMMARY

This discussion focuses on the challenges of booting Linux distributions from a USB drive using GRUB, specifically addressing the "Error 15: file not found" issue. Users reported successful booting with LILO but encountered difficulties with GRUB due to incorrect device naming conventions. The solution involves ensuring the USB is bootable and using the correct GRUB commands: root (hd1,0), chainloader +1, and boot. The discussion highlights the importance of accurate device mapping when installing GRUB on USB drives.

PREREQUISITES
  • Understanding of GRUB bootloader commands
  • Familiarity with USB bootable media creation
  • Knowledge of Linux distributions (e.g., Ubuntu, Fedora)
  • Basic troubleshooting skills for boot errors
NEXT STEPS
  • Research GRUB device mapping and its implications for USB booting
  • Learn how to create bootable USB drives using tools like Rufus or Etcher
  • Explore troubleshooting techniques for GRUB boot errors
  • Investigate the differences between GRUB and LILO bootloaders
USEFUL FOR

This discussion is beneficial for Linux users, system administrators, and anyone involved in creating bootable USB drives or troubleshooting bootloader issues.

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 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
Replies
4
Views
9K
  • · Replies 5 ·
Replies
5
Views
4K