I've got a Compaq Contura Aero 4/33 laptop with original DOS system installed. As the HDD is old and dying, I've decided to copy the drive to a CF card on a CF/IDE adapter.
After connecting the drive, according to diskutil
and fdisk
, I can see following partition table:
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *256.5 MB disk3
1: DOS_FAT_16 NO NAME 252.3 MB disk3s1
2: 0x12 3.2 MB disk3s3
sh-3.2# fdisk /dev/disk3
Disk: /dev/disk3 geometry: 994/8/63 [501073 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
*1: 06 9 0 1 - 719 10 63 [ 6237 - 492723] DOS > 32MB
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 12 0 1 1 - 8 10 63 [ 63 - 6174] Compaq Diag.
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
I've made the image by dd
ing the entire drive and putting it straight on the CF disk (dd if=/dev/disk3 of=./image.bin; dd if=./image.bin of=/dev/disk4
).
fdisk
ing the CF card (1GB Kingston) shows a following partition table:
Disk: /dev/disk4 geometry: 967/32/63 [1949472 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
*1: 06 9 0 1 - 719 10 63 [ 6237 - 492723] DOS > 32MB
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 12 0 1 1 - 8 10 63 [ 63 - 6174] Compaq Diag.
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
However, laptop does not detect any operating system. When I start it, only a "Missing operating system" message is shown.
But, when I press F10 during boot, it seems to boot up DOS with the Compaq Diagnostics tools:
Trying to change Cylinders/Heads/Sectors values in this diagnostics tools to the ones provided by fdisk
(geometry: 967/32/63) changes nothing, still missing operating system.
So, how can I move entire OS to a new drive?