I copied from broken hard disk on Windows laptop to image file in external hard drive by ddrescue.
After that, image file wrote to another running hard disk (same model as broken).
That succeeded and laptop was able to work normally at that time.
The problem is I deleted partition information by mistake after that.
I tried TestDisk and it succeeded at first glance but partition information different between that hard disk to virtual mounted original disk image. (in TestDisk)
Maybe the easiest choice is to copy from image file to hard disk again.
However, I some changed on that laptop already.
So, if able, how to copy only partition information (not all files copy) from disk image to hard disk by some method?
I’m not native English user so sorry if it is simple question and possibly exist likely question.
Below perhaps necessary information.
- That HDD is MBR.
- I can “Ultimate Boot CD”.
Added partition list in TestDisk (unfortunately Linux machine put away already).
Virtual-mounted-image-file (maybe originally condition).
Windows RE (store)
HPFS-NTFS [main]
HPFS-NTFS [data]
Windows RE(store)
After testdisk Hard disk:
HPFS-NTFS [Windows RE]
HPFS-NTFS [main]
HPFS-NTFS [main]
HPFS-NTFS [(xxx)-RESTORE]((xxx) is laptop maker)
Sector size and offset or another number is seems same.
gdisk result:
Image disk(in virtual):
GPT fdisk (gdisk) version 1.0.10
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Disk 3:: 976773168 sectors, 465.8 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): (secret just in case)
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 3907583 1.9 GiB 2700 Windows RE
2 3907584 892383231 423.7 GiB 0700 Microsoft basic data
3 892383232 931444735 18.6 GiB 0700 Microsoft basic data
4 931444736 976771119 21.6 GiB 2700 Windows RE
Problem HDD:
GPT fdisk (gdisk) version 1.0.10
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Disk 1:: 976773168 sectors, 465.8 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): (secret just in case)
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2029 sectors (1014.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 3907583 1.9 GiB 0700 Microsoft basic data
2 3907584 892383231 423.7 GiB 0700 Microsoft basic data
3 892383232 931444735 18.6 GiB 0700 Microsoft basic data
4 931444736 976773119 21.6 GiB 0700 Microsoft basic data