Mailinglist Archive: opensuse (1480 mails)

< Previous Next >
Re: [opensuse] can't boot from usb [solved]
El 24/03/12 17:07, Carlos E. R. escribió:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2012-03-24 08:35, lynn wrote:
On 24/03/12 00:17, Carlos E. R. wrote:
you should have generic boot code in the MBR of that USB stick, which
should go to partition 2, which should have grub code.

- --
Hi Carlos, hi everyone
OK. But how do I do that?
That's what you should already have. The command is, if I don't make a mistake:

grub-install or grub-install.unsupported (I don't remember). Or perhaps it
is grub itself - I'm fuzzy right now, last time I did it was a month ago :-)


and inside:

setup --stage2=/boot/grub/stage2 --force-lba (hd0,1) (hd0,1)
quit


Doc: info grub. Node: setup (13.3.34 setup)

And that's assuming the usb thing is the first device the bios sees. That
you show it as sdb is confusing, unless you are using another computer to
display it.
It is sdb because I used another usb stick /dev/sda to boot from so I could run fdisk. This is a 10-for-100-Euro laptop with no hard drives.

Anyway, you are wonderful:
booting from usb stick 1 (/dev/sda) and running:

acer4:/home/invitado #grub-install.unsupported /dev/sdb2
GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> setup --stage2=/boot/grub/stage2 --force-lba (hd0,0) (hd0,0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "install --force-lba --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub> quit

It does it all for you:-)

I did 3 more usb sticks today exactly the same. Same make, same model. No problem at all. I wonder why this one gave problems?
salu2,
L x

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups