LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-16-2012, 02:26 PM   #1
chroniks
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Rep: Reputation: Disabled
huge noob mistake. deleted partition that had boot loader.


so i embarrassingly deleted the partition that had grub on it. now i can't boot windows. ive tried fixing it by using the super grub disk and rescatux and neither worked. i installed ubuntu, which is what im using now, to see if it's boot loader would pick up windows and let me get into it. it tries to load windows but it gets an error 0xc000000e. i tried throwing in a windows set up disk to run a fixmbr but the disks blue screen as soon as they're done loading. i put in my windows 7 recovery disk but it doesn't detect a windows 7 installation. the partition is there. i can browse it and access files off it through ubuntu. i just can't boot into it. i know the partition is fine and works, i didn't change anything about it prior to this happening. any ideas?
 
Old 12-16-2012, 02:41 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Recovery disks normally don't work for what you need as they do not have the files necessary as explained at the site below which previously offered the disk as a free download but no longer do. You need an installation CD/DVD of whichever windows you have. You may be able to find a download with the necessary repair tools, I don't use windows so I don't know of any.

http://neosmart.net/blog/2009/window...-repair-discs/

You can boot Ubuntu so the best place to start is to go to the site below, read the instructions, download and run the bootinfoscript and post the results.txt file here. It will provide detailed drive/partition and boot file info:

http://sourceforge.net/projects/bootinfoscript/

When you boot Ubuntu, you do see an entry in the boot menu for windows but it fails, is that correct? Did you go to the microsoft site to search for solutions:

http://answers.microsoft.com/en-us/w...1-4e8af472425e
 
Old 12-16-2012, 02:59 PM   #3
chroniks
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Recovery disks normally don't work for what you need as they do not have the files necessary as explained at the site below which previously offered the disk as a free download but no longer do. You need an installation CD/DVD of whichever windows you have. You may be able to find a download with the necessary repair tools, I don't use windows so I don't know of any.

http://neosmart.net/blog/2009/window...-repair-discs/

You can boot Ubuntu so the best place to start is to go to the site below, read the instructions, download and run the bootinfoscript and post the results.txt file here. It will provide detailed drive/partition and boot file info:

http://sourceforge.net/projects/bootinfoscript/

When you boot Ubuntu, you do see an entry in the boot menu for windows but it fails, is that correct? Did you go to the microsoft site to search for solutions:

http://answers.microsoft.com/en-us/w...1-4e8af472425e
ive attached the bootinfoscript results
Attached Files
File Type: txt results.txt (15.5 KB, 22 views)
 
Old 12-16-2012, 04:14 PM   #4
impert
Member
 
Registered: Feb 2009
Posts: 282

Rep: Reputation: 54
Hi,
I'm no Grub 2 expert, but it seems to me that your problem might be in /etc/grub.d/00_header:


Code:
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
If I'm right, because recordfail is set to 1 (you can check this by searching for "recordfail" using gedit in that file), the timeout is set to -1 which means you don't get to see a menu screen. You can change the /etc/grub.d/00_header file to read set timeout=10 for both entries. Then run
Code:
sudo update-grub
This should give you a menu screen, with the option to boot Windows.
Alternatively, you could try holding down the C key while booting. This should give a command line, and you can then boot Windows by typing:

Code:
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
chainloader +1
boot
but you'll get sick of doing this every time.
 
Old 12-16-2012, 04:24 PM   #5
chroniks
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by impert View Post
Hi,
I'm no Grub 2 expert, but it seems to me that your problem might be in /etc/grub.d/00_header:


Code:
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
If I'm right, because recordfail is set to 1 (you can check this by searching for "recordfail" using gedit in that file), the timeout is set to -1 which means you don't get to see a menu screen. You can change the /etc/grub.d/00_header file to read set timeout=10 for both entries. Then run
Code:
sudo update-grub
This should give you a menu screen, with the option to boot Windows.
Alternatively, you could try holding down the C key while booting. This should give a command line, and you can then boot Windows by typing:

Code:
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
chainloader +1
boot
but you'll get sick of doing this every time.
windows is listed in grub. the problem is when i try and boot it i get this screen: http://www.symantec.com/business/sup...ror2-small.jpg
 
Old 12-16-2012, 04:42 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you need a full install disk of Windows 7 to repair the system you can get an evaluation version here: http://technet.microsoft.com/en-us/e.../cc442495.aspx
This should offer you the repair functions.
 
Old 12-17-2012, 08:01 AM   #7
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
Do you mean that you deleted the 100MB boot portion windows 7 uses (winodws 7 usually has a 100MD boot portion and then the rest of windows)? If so, I believe you'll have to reinstall windows.
 
Old 12-17-2012, 10:34 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Your windows entry in the grub.cfg file of the bootinfoscript shows it pointing to sda1 which has /bootmgr /Boot/BCD folders/files which I believe are needed to boot windows 7. I notice that sda2 is marked as active rather than sda1. Not sure if that's important as I don't really use windows any more.

Did you have another Linux OS installed and just put Ubuntu on to try to boot windows?
If so, did you create a separate boot partition during the installation as most Linux distros don't default to a separate boot partition.
It looks like you still have the windows boot partition (sda1)?

If you have an installation disk, check the microsoft site below for instructions. Otherwise, try the site suggested by TobiSGD:

http://support.microsoft.com/kb/927392/en-us
 
Old 12-17-2012, 04:28 PM   #9
chroniks
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Your windows entry in the grub.cfg file of the bootinfoscript shows it pointing to sda1 which has /bootmgr /Boot/BCD folders/files which I believe are needed to boot windows 7. I notice that sda2 is marked as active rather than sda1. Not sure if that's important as I don't really use windows any more.

Did you have another Linux OS installed and just put Ubuntu on to try to boot windows?
If so, did you create a separate boot partition during the installation as most Linux distros don't default to a separate boot partition.
It looks like you still have the windows boot partition (sda1)?

If you have an installation disk, check the microsoft site below for instructions. Otherwise, try the site suggested by TobiSGD:

http://support.microsoft.com/kb/927392/en-us
I finally fixed it! Holy crap what a battle. I'm not even sure what it was that made it start working but after a few hours of messing around with the command prompt on the rescue disk I found but it finally decided to boot up. Thanks for the help!
 
  


Reply



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
stupid noob mistake, deleted grub tylerrrrrrr Linux - Newbie 8 03-13-2009 03:56 PM
Deleted linux partition on a dual boot system...made mistake? shahidsaab1 Linux - Newbie 6 07-06-2006 12:38 AM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 04:53 PM
emergency, deleted linux partition by mistake snakeo2 Linux - Newbie 11 03-26-2004 06:40 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 02:22 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