How can I undo “mark partition as active” using GParted/Linux live CD?

9

1

In the process of trying to shrink my hard drive partition, I marked my C: drive (the only drive I have) as “active” in Windows’s “Disk Management” software. When I rebooted, it said something like “boot device not found” (can’t remember the exact wording).

I can’t boot into Windows, but I do have a Linux Mint cd that I’m on right now. From my research, it looks like the equivalent of “Disk Management” is GParted.

So the question is, how can I undo marking the partition as active (within Linux) and be able to boot into Windows again?

Right now GParted looks like this:

enter image description here

user515907

Posted 2015-10-30T14:56:35.230

Reputation: 91

Not asked, but probably the easiest workaround: Press whatever key your firmware used to select to boot from and just select the other active drive. – Hennes – 2015-10-30T15:07:13.873

Answers

12

It's the same flag. The "active" flag in Windows is called the "boot" flag in Linux.

Windows and Linux use different terminology for the same bootable partition or drive

The term "active" is used for the bootable partition when you are in a Windows/DOS-type environment.
The term "boot" is used for the bootable partition when in a Linux environment.

http://thpc.info/how/make_active.html

You can modify the flag in GPartEd by right-clicking the partition and selecting "Manage Flags".

enter image description here

Steven

Posted 2015-10-30T14:56:35.230

Reputation: 24 804

So I unchecked that and rebooted--got an error saying "reboot and select proper boot device". I'm confused because shouldn't the partition be flagged as boot, since it's the only one? But having it flagged as boot also doesn't allow me to boot. – ahota – 2015-10-30T15:27:03.413

Now you have another problem. The partition you marked as boot isn't bootable. – Joshua – 2015-10-30T18:01:49.120

1The Windows recovery disk should be able to fix the bootloader, in theory. – Kevin – 2015-10-30T18:21:32.847

@Kevin I was hoping this could be solved with GParted, is that not possible? – ahota – 2015-10-30T18:49:11.040

@ahota: The Windows bootloader is proprietary software. While it has been reverse-engineered to a limited extent (allowing for dual booting), it's not really possible to reinstall it without using Microsoft code, to the best of my knowledge. – Kevin – 2015-10-30T18:51:27.267