Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: W7 resets bootable flag on HDD

19 Nov 2011   #1
tadeas

Ultimate x64
 
 
W7 resets bootable flag on HDD

Hello,
I have four partitions on my HDD with Windows 7 on the second one. I want the boot flag ( Boot flag - Wikipedia, the free encyclopedia ) on the first partition and only on it. It contains a menu, that gives me a choice of what OS to boot. Whenever I boot Windows 7 from the second partition, it resets the boot flag to the second partition only and thus I can't get back.

How do I tell Windows 7 not to do this?
Alternatively, is there a way to reset it manually from within Windows 7 so I don't have to boot a rescue CD?

(looking forward to UEFI, when the rescue CDs won't boot...)


My System SpecsSystem Spec
.
19 Nov 2011   #2
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Welcome to Windows Seven Forums.

It will help us to help you if you post a screenshot of your fully-expanded disk management layout.

Screenshots and Files - Upload and Post in Seven Forums

This tutorial may solve your problem.

Bootrec.exe Tool - How to Use in Windows Recovery Environment
My System SpecsSystem Spec
19 Nov 2011   #3
tadeas

Ultimate x64
 
 

Thank you for your quick answer!

I'll try the tutorial, I'm sorry that I didn't find it myself, I've probably used wrong queries on Google :-) . I'll report back, thanks again!
My System SpecsSystem Spec
.

19 Nov 2011   #4
tadeas

Ultimate x64
 
 

So I've tried the How To, but I've run into these issues:
1) The OS selection box didn't list anything (I don't have any CD with drivers, so the suggested "Load drivers" solution didn't help).
2) When I proceeded anyway, the bcdedit failed:
Code:
> bcdedit /export C:\BCD_Backup
The store export operation failed.
The system cannot find the file specified
I'm not sure what do you mean by "fully-expanded disk management layout". I can provide fdisk info, it should show the same information:

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    97656831    48827392   83  Linux
/dev/sda2   *    97656832   292968447    97655808    7  HPFS/NTFS/exFAT
/dev/sda3       292968448   308592639     7812096   82  Linux swap / Solaris
/dev/sda4       308592640   976771071   334089216   83  Linux
As you can see, sda2 has the boot flag. I can reset it to sda1 with fdisk, but when I start Windows 7 again, it automatically resets it to sda2.
My System SpecsSystem Spec
19 Nov 2011   #5
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

This is what I was hoping for.

W7 resets bootable flag on HDD-dm.jpg

To get into Disk Management is Start>Control Panel>System & Security>Administrative Tools>Create & Format Hard Disk Partitions

However, I suspect your problem is related to Linux and as I know nothing about it, you may have to wait for others who have used it to post a solution for you.


My System SpecsSystem Spec
19 Nov 2011   #6
tadeas

Ultimate x64
 
 

Here's the screenshot. I'm sorry for the language, I don't have a clue how to switch it to English. One of the notes to C: is "Spouštěcí oddíl", i.e. "bootable partition". This is what I need to change. I want the first partition to be the bootable partition. When I change it via fdisk it works fine, but as soon as I start W7, it's back to C: .

It doesn't have anything to do with Linux. It can be OS X on the first partiotion, or W XP, Solaris, or even another instance of W7. The only issue is that W7 on the second partition changes the bootable flag.


Attached Thumbnails
W7 resets bootable flag on HDD-partitions.png  
My System SpecsSystem Spec
19 Nov 2011   #7
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Use this tutorial to make your C drive inactive.

Partition - Mark as Inactive

Usde this tutorial to make the first (system reserved) partition active.

Partition - Mark as Active

Next, run a startup repair three times with a reboot after each one so the the master boot record is created in your system reserved partition rather than the C drive.

Startup Repair
My System SpecsSystem Spec
19 Nov 2011   #8
tadeas

Ultimate x64
 
 

Great! Diskpart is what I've been looking for. I've successfully changed the boot flag from the second partition to the first. However when I start Windows again, it changes the boot flags again :-/ .
But at least I don't have to boot from a CD .

So if there's no way to prevent Windows from doing that, what is the easiest way to automate this? I don't know anything about scripting Windows .
My System SpecsSystem Spec
19 Nov 2011   #9
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Like I said, now that you've changed the boot flag from your C drive to the system reserved partition, you need to run a startup repair three times with a reboot between each one.

This tutorial explains how: Startup Repair

This tutorial explains why it is sometimes necessary to carry out the startup repair three times: Startup Repair - Run 3 Separate Times

This tutorial explains how to create a system repair disc if you don't have one or don't have a Windows 7 DVD to boot into: System Repair Disc - Create
My System SpecsSystem Spec
19 Nov 2011   #10
theog

Microsoft Community Contributor Award Recipient

ME/XP/Vista/Win7
 
 

Quote   Quote: Originally Posted by tadeas View Post


Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    97656831    48827392   83  Linux
/dev/sda2   *    97656832   292968447    97655808    7  HPFS/NTFS/exFAT
/dev/sda3       292968448   308592639     7812096   82  Linux swap / Solaris
/dev/sda4       308592640   976771071   334089216   83  Linux

Windows can not boot from a Linux partition.

What are you trying to do?
My System SpecsSystem Spec
Reply

 W7 resets bootable flag on HDD




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Software for cloning bootable USB to bootable CDROM?
I'm looking for a freeware utility that will clone a bootable USB stick with special build of Slax with an inhouse developed program to a bootable CDROM. There's plenty of information on how to go the opposite way, from bootable CDROM to bootable USB, but our company has several bootable sticks...
Software
action center flag
it's off :( http://img404.imageshack.us/img404/4337/73632626.png
General Discussion
Flag added to stop a .dll from loading?
Hi - is it possible to add a flag (or whatever it might be called) to an .exe or the command-line to stop to stop a specific .dll from loading when an app is launched? I am not even sure I am asking the question in the right manner, but I am trying my best! :D
General Discussion
Action center flag disappears
Ok , as the title says ,the flag disappears particularly if explorer restarts .i have it set to show icons and notifications ,the funny thing is it does the same on the laptop(currently using desktop) occasionally i can get it back by opening Godmode folder but this is a nuisance and not always...
General Discussion
Flag
Hi :) I can put a Union Jack under my name (coz im in England) but as im ½ checoslovacian ½ Polish there is no flag for me :(
Chillout Room
Restart flag is stuck on
I am trying to install a few programs on a fresh RC x64 build but each one reports that Windows requires a restart, including the 7127 build install of Windows. I have restarted a bunch of times since first seeing this but the flag isn't cleared. Any ideas how to make Windows think it's...
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 19:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App