nerdexam
CompTIA

220-802 · Question #983

A technician has imaged Windows 7 to a new drive and installed it into the PC. The PC, however, will not boot the new disk. Using the recovery console, which of the following should the technician…

The correct answer is D. Mark the disk active in diskpart. After imaging Windows 7 to a new drive, the system will not boot because the target partition has not been marked as the active boot partition. Using diskpart in the recovery console to mark the partition active resolves this.

Hardware and network troubleshooting

Question

A technician has imaged Windows 7 to a new drive and installed it into the PC. The PC, however, will not boot the new disk. Using the recovery console, which of the following should the technician try NEXT?

Options

  • ASelect the bootable partition in fdisk
  • BFix the master boot record with fdisk
  • CUse the bootcfg /rebuild command to recreate the mbr
  • DMark the disk active in diskpart
  • EMark the partition as clean in diskpart

How the community answered

(36 responses)
  • A
    14% (5)
  • B
    6% (2)
  • C
    3% (1)
  • D
    78% (28)

Why each option

After imaging Windows 7 to a new drive, the system will not boot because the target partition has not been marked as the active boot partition. Using diskpart in the recovery console to mark the partition active resolves this.

ASelect the bootable partition in fdisk

fdisk is a legacy DOS-era tool not available or appropriate in the Windows 7 recovery console for setting active partitions.

BFix the master boot record with fdisk

fdisk cannot fix the MBR in the Windows 7 recovery environment; bootrec /fixmbr is the correct command for that purpose.

CUse the bootcfg /rebuild command to recreate the mbr

bootcfg /rebuild is a Windows XP command that edits boot.ini, which does not exist in Windows 7 - Windows 7 uses the BCD store instead.

DMark the disk active in diskpartCorrect

The partition must be flagged as 'active' so the BIOS knows which partition contains the bootloader. Without this flag, the BIOS cannot locate the Master Boot Record's bootstrap code on the new disk. Using 'diskpart' followed by 'select partition' and then 'active' sets this flag correctly on Windows 7 systems.

EMark the partition as clean in diskpart

The 'clean' command in diskpart erases all partition and volume information from the disk rather than marking a partition as bootable.

Concept tested: Marking active partition with diskpart in recovery

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart

Topics

#diskpart#boot partition#MBR#Windows recovery

Community Discussion

No community discussion yet for this question.

Full 220-802 Practice