Get a nice livecd for a Linux distro (I like Gentoo) and bring up a shell with root privileges.
Somehow mount the hard disk partition you want to put your backup on. Partition names on Linux are on the form "/dev/sda1", where the 'a' becomes 'b' and 'c' for second and third hard drive and the number increases for additional partitions on the drive. Assuming sda1 and you use NTFS, you should type
mkdir hd ;
ntfs-3g /dev/sda1 hd/ ;
If you use FAT or something else Linux has kernel write support for, exchange ntfs-3g
for mount
.
To then copy the external drive to a file, you should type the following. I assume the external drive is the second hard drive alltogether, otherwise see (2). Then the name for the whole drive is "/dev/sdb".
dd bs=1M if=/dev/sdb of=hd/external-drive-backup.img ;
That will require a lot of disk space, so you might want to compress it a bit, for example like so in stead:
dd bs=1M if=/dev/sdb | xz -1 | dd of=hd/external-drive-backup.img.xz ;
Now you're done, you have a nice image of your whole external disk on you hard drive. You can then go on to repartition the disk with parted
or somesuch and create new filesystems on it.
1Add a block size (
-bs=1M
) to thedd
to make the command MUCH faster. – Chris Nava – 2012-01-23T05:37:50.733