Looking for some help for a recent blunder I had.
I dd image an old unix disk ( i386 PrimOS ) to a file ( dd if=/dev/sdc of=oldmaxtor.dd ), and didn't check it after doing so, original disk was wiped out, and I am trying to write the image back to a new disk.
fdisk -l oldmaxtor.dd shows nothing, nor does writing it back to the actual disk (in terms of a visible partition structure).
I ran testdisk on the oldmaxtor.dd file
Code: Select all
Select a media (use Arrow keys, then press Enter):
>Disk oldmaxtor.dd - 259 MB / 247 MiB
When I scan the disk with [None ] Non partitioned media -> Quick Search -> Enter to continue -> Deeper Search, I am presented the following;
Code: Select all
Disk oldmaxtor.dd - 259 MB / 247 MiB - CHS 32 255 63
Partition Start End Size in sectors
>P SysV 4 0 6 9 1 197 62 28152
P SysV 4 5 130 54 31 118 17 416898 [usr]
So, since this was an i386 disk, I went back to select disk -> [Intel ] -> Analyze -> Quick search -> Enter -> Deeper Search and get
Code: Select all
Disk oldmaxtor.dd - 259 MB / 247 MiB - CHS 32 255 63
Partition Start End Size in sectors
No partition found or selected for recovery
Code: Select all
Disk oldmaxtor.dd - 259 MB / 247 MiB - CHS 32 255 63
No partition 0 6 9 1 197 62 28152
[Cylinder] [ Head ] [ Sector ] [Cylinder] [ Head ] [ Sector ]
>[ Type ] [ Done ]
Change partition type
Code: Select all
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk oldmaxtor.dd - 259 MB / 247 MiB - CHS 32 255 63
Partition Start End Size in sectors
1 E extended 0 1 1 1 254 63 32067 <- Uh, where'd that come from ?
5 L Linux 0 6 9 1 197 62 28152 <- why is this part #5, I want to do part #1
I have tried to recreate the partitions with fdisk, but those don't seem to quite line up!
thanks for any help!
Jonathan