Debugging Guide: Data Recovery with Hiren's Boot CD PE & Linux
๐ Problem Context
- Initial symptom: Disk does not appear as bootable in BIOS, but is detected in Ubuntu.
- Possible causes:
- Damaged partition table (GPT/MBR).
- Corrupted file system (NTFS/FAT32).
- Windows hibernation (
fast startup
enabled). - Hardware failure (bad sectors). (Not in this case)
Hardware & Software Used
- Hiren's PE: A lightweight Windows environment. Download it here. It runs like Windows, allowing you to retrieve your data, run admin commands, and perform diagnostics.
- Ubuntu Live USB: "Live" means running Ubuntu without installing it. This is very useful, especially when the system has no bootable OS.
๐ Debugging Steps
1. Want to Retrieve Your Data?
First, download and install Hiren's PE using the link above. Boot from it and wait for the minimal Windows environment to load. Open File Explorer to check your storage devices. If nothing appears, proceed to step 2.
2. Check Disk Status
In Ubuntu or Ubuntu Live:
# From Ubuntu/Live USB:
sudo fdisk -l # List disks/partitions
sudo gdisk -l /dev/sdX # Show GPT details
sudo ntfsfix -d /dev/sdXN # Repair NTFS (read-only)
3. Restore Partition Table
First, in Linux install gdisk:
Then run:
If prompted to select between options (e.g., corrupt or new table), you can ignore and use the following commands:- r → Recovery mode
- v → Check integrity
- p → Show partitions
- w → Write changes (be careful if you are unsure about the changes)
4. Solve Windows Hibernation
In Hiren's PE (CMD as admin):
These commands may help, but in this case, they did not resolve the issue.
5. Repair BCD in UEFI Systems (Hirenโs Boot PE)
If the BIOS does not detect the SSD as bootable and tools like EasyBCD show "Would you like to manually load a BCD?", you must manually rebuild the EFI bootloader.
Steps to Fix BCD (UEFI + GPT Disks)
- Open CMD as Administrator in Hiren's Boot PE.
- Launch
diskpart
and list volumes: - Identify:
- The Windows partition (e.g., C: โ contains C:\Windows, Users, etc.)
- The EFI partition (usually 100โ500 MB, FAT32, may not have a drive letter)
-
If the EFI partition lacks a drive letter, assign one (e.g., S:):
If the EFI partition does not exist, open Disk Management and check if any partition matches the previous requirements (100โ500 MB, FAT32). -
Use
bcdboot
to rebuild the boot files: - Verify that
S:\EFI\Microsoft\Boot\BCD
now exists. - Reboot the system. Enter BIOS/UEFI and you can ensure:
- UEFI mode is enabled
- Secure Boot is disabled
- The SSD now appears in the boot order
This last step doesnt need to be realize it should work after rebooting
โ ๏ธ DO NOT use
bootrec /fixmbr
or/fixboot
on GPT systems!
These commands are for Legacy BIOS + MBR setups and may damage your GPT-based bootloader.
If you have further inquiries, please refer to Hector.