Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Cannot boot Windows 7 after Debian 9 install
Cannot boot Windows 7 after Debian 9 install
Hi everyone!
I tried installing Debian 9 on my Windows 7 laptop this morning and have managed to break my Windows. I'd like to have it set up so I can choose which OS to boot from at start up. I used the Debian GNU installer to partition my hard drive and install. I am able to start Debian from GNU GRUB just fine, but if I select Windows 7 I get the following error:
Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
1. Insert your Windows installation disc and restart your computer.
2. choose your language settings, and then click "Next."
3. Click "Repair your computer."
If you do not have the disc, contact your system administrator or computer manufacturer for assistance.
File: \Boot\BCD
Status: 0xx000000e
Info: an error occurred while attempting to read the boot configuration data.
I'm fearful to follow the above directions without any guidance. I did search the forums assuming that my problem is common but could not find a solution.
I tried installing Debian 9 on my Windows 7 laptop this morning and have managed to break my Windows. I'd like to have it set up so I can choose which OS to boot from at start up. I used the Debian GNU installer to partition my hard drive and install. I am able to start Debian from GNU GRUB just fine, but if I select Windows 7 I get the following error:
Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
1. Insert your Windows installation disc and restart your computer.
2. choose your language settings, and then click "Next."
3. Click "Repair your computer."
If you do not have the disc, contact your system administrator or computer manufacturer for assistance.
File: \Boot\BCD
Status: 0xx000000e
Info: an error occurred while attempting to read the boot configuration data.
I'm fearful to follow the above directions without any guidance. I did search the forums assuming that my problem is common but could not find a solution.
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: Cannot boot Windows 7 after Debian 9 install
Sounds like a Windows problem to me, Does Debian work ?
Oh, never mind
windows, and don't know why it does not work.
Have you tried reading and following these instructions ?
https://wiki.debian.org/WindowsDualBoot
Oh, never mind
So it is a windows problem, sorry, since I have Debian working , I don't needI am able to start Debian from GNU GRUB just fine,
windows, and don't know why it does not work.
Have you tried reading and following these instructions ?
https://wiki.debian.org/WindowsDualBoot
"What we expect you have already Done"
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
Re: Cannot boot Windows 7 after Debian 9 install
I did follow those directions. The reason I came here to ask this question, as opposed to a Windows forum, is because whatever I did to break Windows was something I did during the Debian install. I thought someone more knowledgeable about Linux than I might have some insight. I am also afraid of doing something to ruin GRUB while repairing Windows.GarryRicketson wrote:Sounds like a Windows problem to me, Does Debian work ?
Oh, never mindSo it is a windows problem, sorry, since I have Debian working , I don't needI am able to start Debian from GNU GRUB just fine,
windows, and don't know why it does not work.
Have you tried reading and following these instructions ?
https://wiki.debian.org/WindowsDualBoot
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: Cannot boot Windows 7 after Debian 9 install
Ok, well we do have some members that may be able to help, someone should
be here shortly.
be here shortly.
Re: Cannot boot Windows 7 after Debian 9 install
Okay. Thanks for sending me to that link.GarryRicketson wrote:Ok, well we do have some members that may be able to help, someone should
be here shortly.
Re: Cannot boot Windows 7 after Debian 9 install
If I only had a nickel for every time a Windoze boot record got borked after somebody tried to add a Linux dual boot...
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: Cannot boot Windows 7 after Debian 9 install
I think they (Microsoft) make it that way by design, to try to discourage people form installing a better OS, ... but I guess that is another topic.
- dilberts_left_nut
- Administrator
- Posts: 5346
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
Re: Cannot boot Windows 7 after Debian 9 install
Show the output of the following (# prompt means 'run as root'):
Code: Select all
# lsblk -o name,size,fstype,label,mountpoint,uuid
AdrianTM wrote:There's no hacker in my grandma...
Re: Cannot boot Windows 7 after Debian 9 install
Please provide more information about your system.
Have you checked BIOS settings? Is it set to UEFI? How many disks? GPT or MBR? Fastboot turned on or off?
Did you install GRUB to /dev/sda? I'm guessing yes.
The most common problems with dual booting Linux and Windows are changing the Fastboot setting.
Any other information that you can provide about what you did to prepare before installing Linux can be helpful.
Have you checked BIOS settings? Is it set to UEFI? How many disks? GPT or MBR? Fastboot turned on or off?
Did you install GRUB to /dev/sda? I'm guessing yes.
The most common problems with dual booting Linux and Windows are changing the Fastboot setting.
Any other information that you can provide about what you did to prepare before installing Linux can be helpful.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Cannot boot Windows 7 after Debian 9 install
^ You probably did something wrong here.mooncake wrote:I used the Debian GNU installer to partition my hard drive and install.
Windows is now broken so you should mosey on over to a Windows forum and ask advice from them, I think "re-install" is the standard mantra in those parts but that may be unfair
deadbang
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: Cannot boot Windows 7 after Debian 9 install
I kind of stumbled on to this :
https://en.wikipedia.org/wiki/Multi-booting
they have both , as dual boot.
Another option, if your Debian install is now working, you can install a Virtual Machine, and install your Windows 7 to that.
If you try to re-install windows, it will require the entire drive, so you will lose your Debian installation.
It is important to all ways make a backup , of the original system, before trying to re-partition and install a additional system as multi boot.
==========================================
https://en.wikipedia.org/wiki/Multi-booting
It can be done however, I have seen several threads on this forum whereWindows and Linux
Further information: Disk partitioning § Multi-boot and mixed-boot systems
One popular multi-boot configuration is to dual-boot Linux and Windows operating systems, each contained within its own partition. Windows does not facilitate or support multi-boot systems, ----snip------
they have both , as dual boot.
Another option, if your Debian install is now working, you can install a Virtual Machine, and install your Windows 7 to that.
If you try to re-install windows, it will require the entire drive, so you will lose your Debian installation.
It is important to all ways make a backup , of the original system, before trying to re-partition and install a additional system as multi boot.
==========================================
As requested here, post this information, it will show if the Windows partition still exists, and maybe can be repaired so that it can be booted if selected in the boot loader. You might not need to re-install it.
Re: Cannot boot Windows 7 after Debian 9 install
Postby dilberts_left_nut » 2017-12-27 14:42
Show the output of the following (# prompt means 'run as root'):
Code: Select all
# lsblk -o name,size,fstype,label,mountpoint,uuid
"What we expect you have already Done"
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Cannot boot Windows 7 after Debian 9 install
^ I strongly recommend this approach.GarryRicketson wrote:you can install a Virtual Machine, and install your Windows 7 to that
If the CPU supports hardware-based virtualisation then I have found that WIndows can actually perform better in the virtual environment and the inbuilt "snapshot" feature stops WIndows taking the machine hostage during one of it's numerous forced updates.
^ This is not true.GarryRicketson wrote:If you try to re-install windows, it will require the entire drive, so you will lose your Debian installation
Whilst WIndows will always attempt to usurp the boot order, it will recognise other operating systems and offer to place itself in the "free" space rather than over-write them.
deadbang
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: Cannot boot Windows 7 after Debian 9 install
Oh, ok, well thanks, I guess that was a myth I read some where,... sorry about that.^ This is not true.
Re: Cannot boot Windows 7 after Debian 9 install
I still think Gary gave the best advice: Virtualbox. There's enough incompatibilities now with UEFI and other boot-related nonsense that dual-booting is no longer the easy-peasy approach is used to be for people wanting native dual-boot capability.
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Cannot boot Windows 7 after Debian 9 install
It depends on what kind of media is used for reinstallation.Head_on_a_Stick wrote:^ This is not true.GarryRicketson wrote:If you try to re-install windows, it will require the entire drive, so you will lose your Debian installation
Real installation media allows to keep existing partitions. However "restoration" media is only able to restore a pre-installed system to its original state, wiping any change done by the user.
Ten years ago, it was common amongst PC manufacturers to provide only restoration media instead of full installation media, or even just provide a program to create the restoration media. Not having bought a new PC since then, I don't know what is the current trend.
Re: Cannot boot Windows 7 after Debian 9 install
Hi everyone,
I was having the same problem a few days back. I am running Windows 7 and after installing Debian 9, Windows 7 won't boot. I rebuilt Windows 7's MBR and tried to install Debian 9 again, same problem. I rebuilt again the Windows 7's MBR and tried to install Debian 8 which gave the same result.
After some googling I managed to solve the problem and can boot into both systems. Below is a step by step guide to solve the problem. This guide will only work assuming that you have not change your computer's MBR after installing Debian.
1. First of all, you will need to copy the partition boot record to a file. Login to Debian and start a terminal. You will need super user right to do the next step. At the command prompt type "dd if=/dev/sda of=debianboot.img bs=512 count=1" and press enter. You will see the output as bellow.
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00223555 s, 229 kB/s
Before you do this, please verify that your Windows and Debian are install on this drive(/dev/sda). If you have more than two hard disks, this may be different. Just replace sda with whatever drive your OSes are on.
2. Copy the file debianboot.img from your root directory to C:\Boot\ (assuming your systems are installed in C drive).
3. Logout of Debian and restart your computer into Windows recovery mode with either a Windows install disk or Windows startup disk. Stop startup repair and go into command prompt. Please be advised that the next step you do will prevent you from booting into Debian. But don't worry, we will solve that after you restart Windows.
4. At the command prompt type in the following:-
bootrec /fixmbr (press enter)
bootrec /fixboot (press enter)
bootrec /rebuildbcd (press enter)
5. Exit command prompt and restart Windows.
6. After Windows has restarted, go to https://www.boyans.net to download VisualBCD (free for personal use).
7. Install VisualBCD and startup the program. When VisualBCD is opened, Right click anywhere on the left panel and select New BootSector (Linux / OS X) Loader. Click OK on the popup.
8. On the left panel click on New Linux / OS X Loader.
9. On the right panel click on the 1st elements (ApplicationDevice) and click edit button at the bottom. Select the drive letter where your Windows is install (assuming c) and click OK.
10. Click on the 2nd element and click edit. Edit the path to \Boot\debianboot.img and click OK.
11. Click on the 3rd element and change the name to Debian and click OK.
Now close the program and restart your computer and you will see the Windows boot manager where you can select Windows or Debian. When you click on Debian you will see your familiar Grub boot manager and you can boot Debian from here. I don't know what will happen if you click on the Windows selection because I didn't try that. In fact, I have deleted the Windows entry from the Grub config file (grub.cfg) because it is not needed anymore.
Please read this guide carefully and make sure you understand every step before you start to proceed with the operation. I hope this guide can help more people to enjoy using Windows and Debian at the same time. Thank you for reading.
P/S: Do not use "dd for Windows" recommended on the VisualBCD website. It didn't work for me.
I was having the same problem a few days back. I am running Windows 7 and after installing Debian 9, Windows 7 won't boot. I rebuilt Windows 7's MBR and tried to install Debian 9 again, same problem. I rebuilt again the Windows 7's MBR and tried to install Debian 8 which gave the same result.
After some googling I managed to solve the problem and can boot into both systems. Below is a step by step guide to solve the problem. This guide will only work assuming that you have not change your computer's MBR after installing Debian.
1. First of all, you will need to copy the partition boot record to a file. Login to Debian and start a terminal. You will need super user right to do the next step. At the command prompt type "dd if=/dev/sda of=debianboot.img bs=512 count=1" and press enter. You will see the output as bellow.
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00223555 s, 229 kB/s
Before you do this, please verify that your Windows and Debian are install on this drive(/dev/sda). If you have more than two hard disks, this may be different. Just replace sda with whatever drive your OSes are on.
2. Copy the file debianboot.img from your root directory to C:\Boot\ (assuming your systems are installed in C drive).
3. Logout of Debian and restart your computer into Windows recovery mode with either a Windows install disk or Windows startup disk. Stop startup repair and go into command prompt. Please be advised that the next step you do will prevent you from booting into Debian. But don't worry, we will solve that after you restart Windows.
4. At the command prompt type in the following:-
bootrec /fixmbr (press enter)
bootrec /fixboot (press enter)
bootrec /rebuildbcd (press enter)
5. Exit command prompt and restart Windows.
6. After Windows has restarted, go to https://www.boyans.net to download VisualBCD (free for personal use).
7. Install VisualBCD and startup the program. When VisualBCD is opened, Right click anywhere on the left panel and select New BootSector (Linux / OS X) Loader. Click OK on the popup.
8. On the left panel click on New Linux / OS X Loader.
9. On the right panel click on the 1st elements (ApplicationDevice) and click edit button at the bottom. Select the drive letter where your Windows is install (assuming c) and click OK.
10. Click on the 2nd element and click edit. Edit the path to \Boot\debianboot.img and click OK.
11. Click on the 3rd element and change the name to Debian and click OK.
Now close the program and restart your computer and you will see the Windows boot manager where you can select Windows or Debian. When you click on Debian you will see your familiar Grub boot manager and you can boot Debian from here. I don't know what will happen if you click on the Windows selection because I didn't try that. In fact, I have deleted the Windows entry from the Grub config file (grub.cfg) because it is not needed anymore.
Please read this guide carefully and make sure you understand every step before you start to proceed with the operation. I hope this guide can help more people to enjoy using Windows and Debian at the same time. Thank you for reading.
P/S: Do not use "dd for Windows" recommended on the VisualBCD website. It didn't work for me.