Using GParted to copy Windows partition. Boot flag on Recovery partition

22,830

Solution 1

Boot is used by some commercial operating system boot loaders. The boot flag indicates the partition is active or bootable. Only one partition on a disk device can be active.

Source: GParted manual

Boot is just a... flag.

I needed to use a Windows recovery disc to repair the partition

Yes, because restoring the partition probably didn't restore a working bootloader.

Now I have done the same process again, except this time Windows boots immediately

Newer Windows versions (I guess 7 and 8, 8.1) install the bootloader on a separate partition, which is automatically created when you make the first partition on an unformatted HDD. Because the bootloader was intact, it looked for a partition with the boot flag and started the boot process from it.

Solution 2

Most likely it's a question of precise partition placement. On a BIOS-based computer, Windows is very finicky about where its boot partition begins; if it's moved by as much as a single sector, the boot process wanders off and gets lost. Thus, if you back up a partition that began on, say, sector 63, and restore it to a partition that begins elsewhere, say on sector 2048, the computer will no longer boot. Furthermore, if you restore the partitions to the disk but fail to restore the boot loader, the computer won't boot.

Thus, chances are one of two things happened in your recent experience:

  • You happened to restore to a partition with the same starting sector number as the original, and either you restored the MBR or the target disk had a compatible MBR in place already.
  • Your computer uses EFI, which isn't reliant on the MBR and isn't as finicky about partition start points.

The former seems more likely than the latter, because on an EFI-based computer, what GParted reports as the "boot flag" should be assigned to a smallish (typically 100-600MiB) FAT partition, not to an NTFS partition. If you also have a FAT partition with a "boot flag" set, though, it could be that the NTFS partition you mention is mis-labelled or that the computer's manufacturer has set it up strangely.

Share:
22,830

Related videos on Youtube

jaromey
Author by

jaromey

Updated on September 18, 2022

Comments

  • jaromey
    jaromey over 1 year

    I am trying to understand how booting works with a Recovery partition. In the past when I have restored a Windows partition using GParted with a copy that I made earlier, I needed to use a Windows recovery disc to repair the partition because it would not boot.

    Now I have done the same process again, except this time Windows boots immediately after with need to do a repair with a Windows disc. The difference that I notice is that with this laptop, the boot flag is on an ntfs partition called Recovery. I assume that this must be the reason why it is able to boot without a repair.

    Can anyone explain to me what is happening here?

    • Ramhound
      Ramhound almost 10 years
      Is the disk using MBR or GPT partitions?
    • jaromey
      jaromey almost 10 years
      I really don't know. I went to Device Information in GParted and it said msdos under partition table. I don't know if that means anything to you or if it is just me highlighting my lack of understanding.
  • jaromey
    jaromey almost 10 years
    In both cases, I did the recovery with Windows 7. If these versions of Windows install the bootloader on a separate partition, then this is not consistent because with the first PC (the one that needed the repair), there was no bootloader on a separate partition.
  • Ramhound
    Ramhound almost 10 years
    @Jslick - The boot partition is normally only created when dealing with GPT/UEFI systems. Which is the exact reason I asked. Still have not recieved a statisfactory answer.
  • jaromey
    jaromey almost 10 years
    I didn't provide a satisfactory answer because I don't know. Now that you mention this comment though, I do recall that when I boot from USB with the newer PC (the one that does not require recovery w/ the Windows disk) I have the option to booth with UEFI. I do not recall this when booting with the older PC (the one that does require the recovery disk).
  • jiggunjer
    jiggunjer over 8 years
    Confusingly, the boot partition has the active flag, and the C: partition has a boot flag. At least on my windows 7 x64. Implying that the boot flag is meaningless, and the active flag means bootable (at least on windows).