Discussion Forums > Technology

Accidently Deleted ubuntu, GRUB boots in "rescue mode"

<< < (2/2)

Louise:

--- Quote from: Duki3003 on June 20, 2010, 05:00:00 PM ---Uhm, you can't restore linux/grub with windows...
Windows recovery will only restore your windows installation if you have any...

To restore grub mount a live cd, run a terminal

--- Quote ---sudo grub
--- End quote ---
(use apt-get install in ubuntu if you don't have it)


--- Code: ---
find /boot/grub/stage1
--- End code ---
(it will show which hd you installed it)


--- Code: ---
root (hd0,5)
--- End code ---
(replace with numbers find tells you)


--- Code: ---
setup (hd0)
quit
--- End code ---

That should fix if you messed up your MBR (it will re-detect windows if you have it as well), otherwise just reinstall your linux distro - it's not really all that hard...


--- End quote ---

Pretty much none of those commands are working, they all give "Invalid command" Like before, I tried a few of these. I think I mustve killed GRUB when I deleted the other os x:

edit: re-downloading the distro ;; uhm... 0.8 kb/s <3

Duki3003:
Like I said, you need live cd for those to work... (Any ubuntu distro will do)

Reinstalling linux should be the simplest solution, be careful not to accidentally remove your windows or any other partition while installing a new release...
Option #2 is if you intend to ditch linux altogether and stick with win7 only


--- Quote ---Insert win7 installation DVD and boot.
Choose your default "Language", "Time", and "keyboard Input" on the first window and click next.
You're now presented with 3 choices. Click on "Repair Your Computer" to gain access to the System Recovery window.

Now choose "Command Prompt" in order to run the desired utility which is called "bootsect.exe". Bootsect is located inside the boot folder so change your directory to boot. Now run "bootsect /nt60 C:\" if you had win7 initially installed in the C partition. Alternatively, you can run "bootsect /nt60 SYS" or "bootsect /nt60 ALL" to repair the system partition or all partitions.
--- End quote ---

That's it...

Louise:

--- Quote from: Duki3003 on June 20, 2010, 05:35:45 PM ---Like I said, you need live cd for those to work... (Any ubuntu distro will do)

Reinstalling linux should be the simplest solution, be careful not to accidentally remove your windows or any other partition while installing a new release...
Option #2 is if you intend to ditch linux altogether and stick with win7 only


--- Quote ---Insert win7 installation DVD and boot.
Choose your default "Language", "Time", and "keyboard Input" on the first window and click next.
You're now presented with 3 choices. Click on "Repair Your Computer" to gain access to the System Recovery window.

Now choose "Command Prompt" in order to run the desired utility which is called "bootsect.exe". Bootsect is located inside the boot folder so change your directory to boot. Now run "bootsect /nt60 C:\" if you had win7 initially installed in the C partition. Alternatively, you can run "bootsect /nt60 SYS" or "bootsect /nt60 ALL" to repair the system partition or all partitions.
--- End quote ---

That's it...

--- End quote ---

I got it thanks :)

since it said invalid recovery, I found a way to bypass it.

I did bootsect /FixMbr then bootsect /FixBoot

and it works again :)

sukigenseki:
I know you said you got it fixed, but for future reference here is the link to the how to page in the Ubuntu docs. It's how I repair grub2 on any machine I've had to fix.

https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

Navigation

[0] Message Index

[*] Previous page

Go to full version