dd if=/dev/hda3 bs=<some_large_value> | bzip2 | ssh [EMAIL PROTECTED] "cat
> /suitable/path/to/hda3.img.bz2"

Or, if you can mount the partition, you can use tar:

tar -cjvf - /mount/point/ | ssh [EMAIL PROTECTED] "cd /some/path ; tar -xjvf -"


you could also use netcat to transfer the files instead of ssh, would
probably be closer to the speen of the lan and have less CPU overhead

Target:
 nc -l -p 5999 > hda3.img
Source:
 dd if=/dev/hda3 | nc 192.168.your.ip 5999


if your hard drive is trashed like you say it is, you may want to use
ddrescue ( sys-fs/ddrescue )

And make sure for the love of sanity the drive you are copying is
_NOT_ currently mounted, at least not in write mode, or the image you
produce could be crufted.
--
gentoo-user@gentoo.org mailing list

Reply via email to