LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 05: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, 06:39 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
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, 06: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, 06:47 PM   #4
rabbit2345
Member
 
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 369

Rep: Reputation: 40
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 07:09 PM.
 
Old 03-10-2009, 06:47 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
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, 07: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, 08:09 PM   #7
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: always back to Fedora
Posts: 241

Rep: Reputation: 50
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, 04:41 PM   #8
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 255

Rep: Reputation: 40
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, 04:56 PM   #9
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:12 PM
Am i done for? Deleted /etc by mistake AriciU Slackware 10 07-07-2007 07:07 AM
help pls! deleted something by mistake marlor Slackware 2 02-05-2005 09:06 AM
Big stupid Bad Mistake... GRUB dasz Linux - Software 7 12-09-2004 10:35 AM
DOH! Noob mistake.. Deleted Kerberos tfdml37 Linux - Software 1 03-19-2004 05:58 PM


All times are GMT -5. The time now is 11:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration