can't booting ubuntu from USB2 disk-on-key dongle

Post Reply
beyossi
Posts: 12
Joined: Sat Nov 07, 2009 9:49 pm

can't booting ubuntu from USB2 disk-on-key dongle

Post by beyossi »

Hi,

I have a 4G USB2 disk-on-key stick, formatted to one single ext3 partition.
My target is avoiding the usage of the hard-disk (disconnecting it from the board).

I installed ubuntu 9.04 from a CD-ROM to my USB device, and it looks like every thing went well.
After reseting the system I excluding the hard disk from booting list, but I can't boot from the USB device, saynig "Operating System not found".

When browsing the USB storage I see the entire file system on it.

What I miss here?, is there any flag I should set?

Thanks in advance,
Yossi

carmen
Posts: 5
Joined: Fri Nov 06, 2009 11:44 pm

Re: can't booting ubuntu from USB2 disk-on-key dongle

Post by carmen »

you need to install grub onto the USB dongle .

i would boot from the install CD again with USB plugged in, and try:

# grub
root (hd1,0)
setup (hd1)

also try hd0,0 and hd0.. it will say "hd1 fs: ext3" or so if it worked

beyossi
Posts: 12
Joined: Sat Nov 07, 2009 9:49 pm

Re: can't booting ubuntu from USB2 disk-on-key dongle

Post by beyossi »

Thanks carmen,

for any root (hdx,0) (x is a number) i get "Error 12: Invalid device requested".
the usb dongle is plugged in.
i also see the directory /boot/grub on the dongle.

when typing df , i get it as device: /dev/sdb1

any idea why I don't see the device for grub?
also, any other direction can be helpfull.

Thanks

beyossi
Posts: 12
Joined: Sat Nov 07, 2009 9:49 pm

Re: can't booting ubuntu from USB2 disk-on-key dongle

Post by beyossi »

Sorry, the error message is: "Error 21: Selected disk does not exist" and not as I mentioned above.
Also, can you explain why I see this message also for hd0 ?, which I thought is the hard disk

Yossi

carmen
Posts: 5
Joined: Fri Nov 06, 2009 11:44 pm

Re: can't booting ubuntu from USB2 disk-on-key dongle

Post by carmen »

grub has tricky numbering sometimes, you may want to try hd0,1 hd1,1

also "grub-install /dev/sdb" at a command line may work

i can confirm that once grub is installed on USB, the fit-pc2 is happy to boot from it

beyossi
Posts: 12
Joined: Sat Nov 07, 2009 9:49 pm

Re: can't booting ubuntu from USB2 disk-on-key dongle

Post by beyossi »

Thanks carmen.

Well, the problem was solved only after setting it as bootable.
Using gparted, I formatted it into ext3 and setting the boot flag.

Then it went well.

Thanks,
Yossi

Post Reply

Return to “Linux on fit-PC2”