Author Topic: Accidently Deleted ubuntu, GRUB boots in "rescue mode"  (Read 1202 times)

Offline Louise

  • Member
  • Posts: 215
  • When the world crashes around you, where to run?
Accidently Deleted ubuntu, GRUB boots in "rescue mode"
« on: June 20, 2010, 03:08:25 PM »
Hey there~ I have a major problem on my main laptop, I accidently cleared the 55GB of space dedicated to my Linux-sided dual boot, Grub loads into a rescue mode & no commands I find online work on it even the ones which "supposedly work on rescue mode" Windows 7 is still intact, I mean I only restarted the pc. I tried a Recovery CD from another win7 laptop and it said it was "Incompatible" Probally cus its a HP recovery CD, versus a Gateway. Anyways...  GRUB gives me this error: "Unknown File System"

Could I possibly torrent any version of 64bit windows 7 and use the install disc to fix my boot sector? I need all the help I can get on this...thanks! ><

Offline ChalamiuS

  • Member
  • Posts: 30
  • Hauu~ Omochikaeri~ *takes Wintereise home*
    • chalamius.se
Re: Accidently Deleted ubuntu, GRUB boots in "rescue mode"
« Reply #1 on: June 20, 2010, 03:12:47 PM »
Well, if all you need to get back up and running is Win7 an install disc for that will fix the MBR just fine (Just a matter of getting into the repair mode and click "Fix startup problems" or something along those lines)

Edit1: Actually, fixing GRUB is easy if you have a livecd for whatever distribution you used too.
« Last Edit: June 20, 2010, 03:16:49 PM by ChalamiuS »

[Homepage | Blog | Ava & Sig kindly provided by Enzedder]

Offline Louise

  • Member
  • Posts: 215
  • When the world crashes around you, where to run?
Re: Accidently Deleted ubuntu, GRUB boots in "rescue mode"
« Reply #2 on: June 20, 2010, 03:22:05 PM »
Well, if all you need to get back up and running is Win7 an install disc for that will fix the MBR just fine (Just a matter of getting into the repair mode and click "Fix startup problems" or something along those lines)

Edit1: Actually, fixing GRUB is easy if you have a livecd for whatever distribution you used too.

I dont know how to work with the install disc, If I have any troubles Ill come here~ Uhm I used a cd (which I lost)
torrenting a "Windows 7 AIO" since its  3.47GB, versus a 5.4gb final >>  the version I had installed wus uh...that one ubuntu/linux OS from a post here ;; so i lost link.

edit: Lulz, got bumped rite under this xD it was InfinityOS

Offline Louise

  • Member
  • Posts: 215
  • When the world crashes around you, where to run?
Re: Accidently Deleted ubuntu, GRUB boots in "rescue mode"
« Reply #3 on: June 20, 2010, 04:42:32 PM »
Double post for bump.

MAJOR PROBLEM!! MAJOR PROBLEM!!

I found my win7 cd, put it in went to "restore" if finds the OS but when i hit next to fix it the system says "INCOMPATIBLE"
what now?!! I CANT ACCESS my legit recovery mode for a true restore...and I dont wanna pirate the OS. it says "Incompatible recovery version"

Offline Duki3003

  • Admin
  • Member
  • Posts: 4420
Re: Accidently Deleted ubuntu, GRUB boots in "rescue mode"
« Reply #4 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
(use apt-get install in ubuntu if you don't have it)

Code: [Select]
find /boot/grub/stage1
(it will show which hd you installed it)

Code: [Select]
root (hd0,5)
(replace with numbers find tells you)

Code: [Select]
setup (hd0)
quit

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...

Offline Louise

  • Member
  • Posts: 215
  • When the world crashes around you, where to run?
Re: Accidently Deleted ubuntu, GRUB boots in "rescue mode"
« Reply #5 on: June 20, 2010, 05:04:21 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
(use apt-get install in ubuntu if you don't have it)

Code: [Select]
find /boot/grub/stage1
(it will show which hd you installed it)

Code: [Select]
root (hd0,5)
(replace with numbers find tells you)

Code: [Select]
setup (hd0)
quit

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...


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

Offline Duki3003

  • Admin
  • Member
  • Posts: 4420
Re: Accidently Deleted ubuntu, GRUB boots in "rescue mode"
« Reply #6 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.

That's it...

Offline Louise

  • Member
  • Posts: 215
  • When the world crashes around you, where to run?
Re: Accidently Deleted ubuntu, GRUB boots in "rescue mode"
« Reply #7 on: June 20, 2010, 05:45:58 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.

That's it...

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 :)

Offline sukigenseki

  • Member
  • Posts: 17
Re: Accidently Deleted ubuntu, GRUB boots in "rescue mode"
« Reply #8 on: June 26, 2010, 06:57:58 AM »
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