1 |
> dd if=/dev/hda3 bs=<some_large_value> | bzip2 | ssh user@target "cat |
2 |
> > /suitable/path/to/hda3.img.bz2" |
3 |
> |
4 |
> Or, if you can mount the partition, you can use tar: |
5 |
> |
6 |
> tar -cjvf - /mount/point/ | ssh user@target "cd /some/path ; tar -xjvf -" |
7 |
> |
8 |
|
9 |
you could also use netcat to transfer the files instead of ssh, would |
10 |
probably be closer to the speen of the lan and have less CPU overhead |
11 |
|
12 |
Target: |
13 |
nc -l -p 5999 > hda3.img |
14 |
Source: |
15 |
dd if=/dev/hda3 | nc 192.168.your.ip 5999 |
16 |
|
17 |
|
18 |
if your hard drive is trashed like you say it is, you may want to use |
19 |
ddrescue ( sys-fs/ddrescue ) |
20 |
|
21 |
And make sure for the love of sanity the drive you are copying is |
22 |
_NOT_ currently mounted, at least not in write mode, or the image you |
23 |
produce could be crufted. |
24 |
-- |
25 |
gentoo-user@g.o mailing list |