PDA

View Full Version : [ubuntu] Reinstalled Windows, grub won't work. (UBUNTU UNUSEABLE)



Ryupower
June 5th, 2008, 08:26 PM
hello,I had to reinstall windows and then GRUB was gone. With the LiveCD I did:

>sudo grub
>find /boot/grub/stage1

put the result ( which was hda0,1) in like this:
>setup (hda0)
>quit


I rebooted and my grub menu was there. I selected the Linux kernel I Wanted to boot, but it gave me an error telling me that the device isn't bootable or something like that.

So I tried the thing over again, but this time I got:


grub> find /boot/grub/stage1
(hd0,1)

grub> setup (hd0)

Error 12: Invalid device requested

grub> find /boot/grub/stage1
(hd0,1)

grub> setup (hd0)

Error 12: Invalid device requested


Why am I getting this? And how can I boot from ubuntu again? I really don't feel like reinstalling feisty, upgrading twice to hardy, editing my Xorg, and installing all the load of software I want again for the fourth time in 4 weeks.


I really appreciate your help, thank you.

petzworld999
June 5th, 2008, 08:38 PM
You forgot to set the root.




grub> find /boot/grub/stage1
(hd0,1)

grub> setup (hd0)

Error 12: Invalid device requested

grub> find /boot/grub/stage1
(hd0,1)

grub> setup (hd0)

Error 12: Invalid device requested



Instead, do




grub> find /boot/grub/stage1
(hd0,1)

root (hd0,1)

grub> setup (hd0)

Ryupower
June 5th, 2008, 09:01 PM
XD how dumb of me to forget that, thanks.

But when I rebooted, it still didn't work. :(
I tried every one of the ubuntu entries besides the memtest. And I keep on getting a message that says that the partition "can't be mounted".

Is it because I installed ubuntu on a JFS-formatted partition, rather than EXT2/3?

Ryupower
June 6th, 2008, 01:44 AM
someone?

ssican
June 6th, 2008, 03:23 AM
Recovering Ubuntu after installing Windows:

https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows?action=show&redirect=RestoreGrub

EDIT
Grub - Error 12:
http://users.bigpond.net.au/hermanzone/p15.htm#12_