LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 03-10-2009, 05:38 PM   #1
tylerrrrrrr
LQ Newbie
 
Registered: Mar 2009
Posts: 4
Thanked: 0
stupid noob mistake, deleted grub


[Log in to get rid of this advertisement]
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?
tylerrrrrrr is offline  
Tag This Post , , , ,
Reply With Quote
Old 03-10-2009, 06:39 PM   #2
syg00
Guru
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 6,908
Thanked: 165
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.
syg00 is offline     Reply With Quote
Old 03-10-2009, 06:40 PM   #3
lallo232
LQ Newbie
 
Registered: Jun 2008
Posts: 2
Thanked: 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.
lallo232 is offline     Reply With Quote
Old 03-10-2009, 06:47 PM   #4
rabbit2345
Member
 
Registered: Apr 2007
Location: clover, sc
Distribution: openSUSE 11.2 64-bit
Posts: 242
Thanked: 3
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..
rabbit2345 is offline     Reply With Quote
Old 03-10-2009, 06:47 PM   #5
tredegar
Senior Member
 
Registered: May 2003
Location: London, UK
Distribution: Kubuntu6.06.1LTS (still excellent!). Kubuntu 8.04.1
Posts: 4,379
Thanked: 141
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.
tredegar is online now     Reply With Quote
Old 03-10-2009, 07:58 PM   #6
tylerrrrrrr
LQ Newbie
 
Registered: Mar 2009
Posts: 4
Thanked: 0

Original Poster
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
tylerrrrrrr is offline     Reply With Quote
Old 03-10-2009, 08:09 PM   #7
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora
Posts: 164
Thanked: 20
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.
ArfaSmif is offline     Reply With Quote
Old 03-13-2009, 04:41 PM   #8
zrdc28
LQ Newbie
 
Registered: Dec 2007
Location: Decatur ala
Distribution: Slackware 12.2, Mepis 8
Posts: 23
Thanked: 2
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.
zrdc28 is offline     Reply With Quote
Old 03-13-2009, 04:56 PM   #9
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 6,728
Blog Entries: 2
Thanked: 214
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.
H_TeXMeX_H is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 01:42 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration