LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2009, 04:38 PM   #1
tylerrrrrrr
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
stupid noob mistake, deleted grub


so this was obviously pretty dumb of me, but hopefully it's not too hard to fix. I deleted my ubuntu partition from windows, and of course now I can't boot into anything. It says error 17. I have a lot of important files in windows that I need to access. What should I do?
 
Old 03-10-2009, 05:39 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Depends what you want to do - if you are going to put another Linux on, just go ahead. The installer will fix the boot-loader for you - and probably add an entry for windows (depends on distro).
If you want a Windoze only box, just boot the CD, and get into recovery console when it tells you to. Then run fixmbr. For Vista use "bootrec.exe /fixmbr"
Done.
 
Old 03-10-2009, 05:40 PM   #3
lallo232
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
i would try booting from an external live linux cd (inside-security.de i.e.) and then using testdisk for recovering the lost partition..
hope this helps.
good luck.
 
Old 03-10-2009, 05:47 PM   #4
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Rep: Reputation: 41
Not at all hard to fix.

Since you had Ubuntu installed, I assume you still have the live cd?

Reinstall Ubuntu and the installer will reinstall grub for you.

good luck,
rabbit2345

Last edited by rabbit2345; 03-10-2009 at 06:09 PM.
 
Old 03-10-2009, 05:47 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Welcome to LQ!

So, you were dual-booting linux & windows. If I understand you correctly, now you have deleted linux, and therefore grub so you cannot boot to windows anymore?

You are in a big and scary mess.

My solution would be to:
Borrow a computer so you can download stuff.
Download a linux "live CD" eg knoppix. Burn it to a CD.
Boot from it on your broken computer. Do not click "Install" if that option is offered.
Mount your windows partition and rescue your essential files to a USB-attached external disk.

Once you have rescued your files you are free to try restoring windows boot.

You don't say which version of windows you were running (3.1 or vista?), but you should google for fix MBR only after you have safely rescued your important personal files to an external disk.
 
Old 03-10-2009, 06:58 PM   #6
tylerrrrrrr
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rabbit2345 View Post
Not at all hard to fix.

Since you had Ubuntu installed, I assume you still have the live cd?

Reinstall Ubuntu and the installer will reinstall grub for you.

good luck,
rabbit2345
That was simple enough. Thanks for the help
 
Old 03-10-2009, 07:09 PM   #7
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 317

Rep: Reputation: 70
I would do what syg00 mentions in the post above. This is the easiest and quickest way to get Windows back. You can reinstall Ubuntu later on if you want. You will not lose any data. Good luck.
 
Old 03-13-2009, 03:41 PM   #8
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Rep: Reputation: 55
What about super grub

There is a much easier way to do it than has been listed above. Just download a copy of super grub, burn it to disk. Then just boot super grub from the cd, it will repair or totally replace the grub. Super grub even has a feature that will help you through the process, it normally takes less than a minute. Super grub is listed in distrowatch.com If you run linux you should never be without it. It will restore the grub for linux/linux, linux/windows or a single os.
 
Old 03-13-2009, 03:56 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by zrdc28 View Post
There is a much easier way to do it than has been listed above.
And wouldn't you know it, there's an even easier way, you didn't delete grub (in MBR), you deleted the Ubuntu partition where the grub config file was located, but you can still boot Window$ by typing this at the grub command line when it boots up:

Code:
grub> rootnoverify (hd0,0)
grub> makeactive
grub> chainloader +1
grub> boot
Note: obviously don't type 'grub>' that's just the prompt.
 
  


Reply

Tags
deleted, error, grub, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
deleted by mistake .thunderbird valemon Linux - General 6 08-28-2007 05:12 PM
Am i done for? Deleted /etc by mistake AriciU Slackware 10 07-07-2007 06:07 AM
help pls! deleted something by mistake marlor Slackware 2 02-05-2005 08:06 AM
Big stupid Bad Mistake... GRUB dasz Linux - Software 7 12-09-2004 09:35 AM
DOH! Noob mistake.. Deleted Kerberos tfdml37 Linux - Software 1 03-19-2004 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration