This page is about the recovery of data from large (1TB) USB disks. There aren't actually any disk drives this large (yet) so these devices are actually two 500GB IDE drives concatenated.
Someone came to me with one of these drives that had suffered a failure of its USB interface; the disk themselves were fine, but the data was needed urgently and there was no spare enclosure into which to transplant the drives.
It is possible to read these devices using the Device Mapper in Linux. This tool combines a set of block devices into a single block device by mapping sectors from one to the other. If your disks had 100 blocks each, the mapping would look like this:
In practice, there'll be a partition table at the start of the disk; to get hold of the filesystem, we'll need to ignore the sectors on the first track (typically sectors 0–63).
/dev/hda
and /dev/hdb
).fdisk -l
should be
sufficient to work this out.blockdev --getsz
/dev/hda
. In the example below, this will be 976773168 sectors.
(Each sector is 512k so this is about 500GB.)/dev/hda
except the first track (63 sectors), followed by all of
/dev/hdb
.dmtable
", with the following contents:
0 976773105 linear /dev/hda 63 976773105 976773168 linear /dev/hdb 0
dmsetup create bigdisk dmtable
mount -oro /dev/bigdisk /mnt
Peter Benie <peterb@chiark.greenend.org.uk>
Linux