I love to do just this:
$ sshfs mountPoint myServer
$ cp thisFile mountPoint
I am now using LiveCD and I do not have sshfs utility available and I need run $ sudo dd /dev/sdb2 > mountPoint
, how to do this as easy as with sshfs?
Perhaps related
Comment to Psusi
$ sudo fdisk -l|tail
255 heads, 63 sectors/track, 4864 cylinders, total 78142806 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x181d6d22
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 3074047 12288000 7 HPFS/NTFS/exFAT
/dev/sdb2 3074048 600563711 2389958656 7 HPFS/NTFS/exFAT
/dev/sdb3 600563712 625139711 98304000 7 HPFS/NTFS/exFAT
$ sudo file -s /dev/sdb
/dev/sdb: x86 boot sector; partition 1: ID=0x7, active, starthead 32, startsector 2048, 3072000 sectors; partition 2: ID=0x7, starthead 89, startsector 3074048, 597489664 sectors; partition 3: ID=0x7, starthead 254, startsector 600563712, 24576000 sectors, code offset 0xe
$ sudo ntfsclone --save-image --output - /dev/sdb2
ntfsclone v2011.4.12AR.4 (libntfs-3g)
ERROR(22): Opening '/dev/sdb2' as NTFS failed: Invalid argument
Apparently device '/dev/sdb2' doesn't have a valid NTFS. Maybe you selected
the whole disk instead of a partition (e.g. /dev/hda, not /dev/hda1)?
ntfsclone
instead ofdd
. It is smart enough to skip the trash in the unused/free sectors, and can compress the image. – psusi Mar 15 '12 at 19:04ntfsclone --save-image --output - /dev/sdb3 | bzip2 | ssh m@m.com 'cat > 15032012_w7_3.img.bz2'
but getting no content?! – Mar 15 '12 at 19:31sudo blkid
say the type is? – psusi Mar 16 '12 at 02:29/dev/sda1
and/dev/sda5
, nothing about/dev/sdb.*
.$ sudo fdisk -l
lists though/dev/sdb.*
as shown above. – Mar 16 '12 at 02:38sudo blkid -p /dev/sdb
– psusi Mar 16 '12 at 02:43