Page 1 of 1
GRUB on my USB flash drive
Posted: Wed Dec 06, 2006 9:49 am
by Lprogster
...
Thanks everyone,
Lprogster
Posted: Wed Dec 06, 2006 10:10 am
by Walling
Here is an article on setting up GRUB on a flash disc:
http://www.freesoftwaremagazine.com/articles/grub_intro However you need a running GRUB to install it on another device.
Maybe you could setup a bootable CD-ROM (do you have CD-RW-ROM in your computer?) with GRUB? This might provide some information:
http://www.gnu.org/software/grub/manual ... D-ROM.html
As you see they use a tool called 'mkisofs'. It can be downloaded for Windows:
http://smithii.com/files/cdrtools-latest.zip When you have created an .iso file just burn a CD using your favorite burn program. Boot on the CD. You now have a GRUB shell. Then read the flash disc article.
Posted: Wed Dec 06, 2006 10:50 am
by Lprogster
...
Thankyou,
Lprogster
Posted: Wed Dec 06, 2006 11:01 am
by Walling
Maybe WinGRUB can help you?
http://grub4dos.sourceforge.net/
AFAIK it is best to run GRUB natively (not in an operating system) when installing it to another device. Natively it accesses devices using BIOS interrupts, so your BIOS have to support transparent read-write access to flash discs. But if it doesn't do that you wouldn't be able to boot your flash disc either.
When running GRUB in an operating system (maybe it only runs on *nix) it uses OS system calls to access devices. But the OS might have drivers for devices, which the BIOS cannot access, and possibly the other way around as well. Correct me if I'm wrong.
Posted: Wed Dec 06, 2006 11:31 am
by Lprogster
...
Thanks,
Lprogster
Posted: Wed Dec 06, 2006 11:44 am
by Walling
Lprogster wrote:Trying WinGRUB...
What root would be the USB drive?
In the article
http://www.freesoftwaremagazine.com/articles/grub_intro he is using (hd2,0) to setup GRUB, but I don't know about the root used in the menu.lst file. Try to read it.
As a start you could place your kernel image on the flash disc and try to boot it using the GRUB shell, ex.
Code: Select all
root (hd2,0)
kernel /kernel.bin
boot
GRUB will tell you if (hd2,0) is wrong. Then try with hd1, hd3, etc.
Posted: Wed Dec 06, 2006 12:29 pm
by Lprogster
I must be really nooby - something is wrong, still not booting!
Im gonna leave it for tonight, ty for your help,
Lprogster
Posted: Thu Dec 07, 2006 10:49 am
by Dex
First do you want to use GRUB, or is it just away of loading your bin file ?.
If you want to use GRUB, then you do not need to read the rest.
But if it just away of loading your OS, i am going to make a bootloader ver of my OS, which can load from many devices including USB fobs, let me know if you interested.
Posted: Fri Dec 08, 2006 4:45 am
by Lprogster
Ive just managed to get it to work... Wow, lotta work!
Thanks for the everything, but Im fine now
!
Thanks,
Lprogster
Posted: Thu Dec 14, 2006 10:15 pm
by TheQuux
How? If you post your solution, others will b able to benifit as well.