I have accidentally deleted two HFS+ partitions. I know the start and end sectors of both of them. These partitions are 100% healthy. I can see them in Raise Data Recovery, but testdisk does not see them. How can I manually edit the MBR to restore these partitions from Ubuntu or Windows?
The "sfdisk -l" command in Ubuntu terminal shows:
Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 12+ 12747- 12736- 102294528 7 HPFS/NTFS
/dev/sda2 12747+ 48643- 35896- 288328704 f W95 Ext'd (LBA)
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
/dev/sda5 12748+ 43870 31123- 249995466 7 HPFS/NTFS
/dev/sda6 43871+ 48144- 4274- 34324480 83 Linux
/dev/sda7 48145+ 48643- 499- 4001792 82 Linux swap / Solaris
Where sda3 and sda4 are these partitions.