huge noob mistake. deleted partition that had boot loader.
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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:
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:
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.
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:
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:
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
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
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.
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:
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:
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.