From: mynick on
Imaging-copying a working remote share on WindowsNT to a local Linux
disk target is needed .
Is that possible with dd command(how if remote share is connected as
smb://ipnumber/share) and do you need root privilleges on local and
remote machine for that?
Perhaps
on source machine:

dd if=/dev/hda bs=16065b | netcat targethost-IP 1234

on target machine:

netcat -l -p 1234 | dd of=/dev/hdc bs=16065b

or

rsh 192.168.xx.yy "dd if=/dev/sda ibs=4096 conv=notrunc,noerror" | dd
of=/dev/sda obs=4096
?
(any difference to dd/privilleges if you use it as windows dd version
since remote is running windowsNT)?
From: goarilla on
mynick wrote:
> Imaging-copying a working remote share on WindowsNT to a local Linux
> disk target is needed .
> Is that possible with dd command(how if remote share is connected as
> smb://ipnumber/share) and do you need root privilleges on local and
> remote machine for that?
> Perhaps
> on source machine:
>
> dd if=/dev/hda bs=16065b | netcat targethost-IP 1234
>
> on target machine:
>
> netcat -l -p 1234 | dd of=/dev/hdc bs=16065b
>
> or
>
> rsh 192.168.xx.yy "dd if=/dev/sda ibs=4096 conv=notrunc,noerror" | dd
> of=/dev/sda obs=4096
> ?
> (any difference to dd/privilleges if you use it as windows dd version
> since remote is running windowsNT)?


no what you're trying to do requires raw disk access
From: mynick on
On Jan 21, 11:05 am, "goarilla(a)work"
<kevindotpau...(a)mtmdotkuleuven.be> wrote:
> mynick wrote:
> > Imaging-copying a working remote share on WindowsNT to a localLinux
> > disk target is needed .
> > Is that possible with dd command(how if remote share is connected as
> > smb://ipnumber/share) and do you need root privilleges on local and
> > remote machine for that?
> > Perhaps
> > on source machine:
>
> > dd if=/dev/hda bs=16065b | netcat targethost-IP 1234
>
> > on target machine:
>
> > netcat -l -p 1234 | dd of=/dev/hdc bs=16065b
>
> > or
>
> > rsh 192.168.xx.yy "dd if=/dev/sda ibs=4096 conv=notrunc,noerror" | dd
> > of=/dev/sda obs=4096
> > ?
> > (any difference to dd/privilleges if you use it as windows dd version
> > since remote is running windowsNT)?
>
> no what you're trying to do requires raw disk access
is it not what dd does-sector to sector copy?
from dd unix wiki
-image a partition to another machine:

On source machine:
dd if=/dev/hda bs=16065b | netcat < targethost-IP > 1234
On target machine:
netcat -l -p 1234 | dd of=/dev/hdc bs=16065b

Everybody has mentioned the first obvious fix: raise your blocksize
from the default 512 bytes. The second fix addresses the problem that
with a single dd, you are either reading or writing. If you pipe the
first dd into a second one, it'll let you run at the max speed of the
slowest device.

dd if=/dev/ad2 conv=noerror,sync bs=64k | dd of=/dev/ad3 bs=64k
From: Bill Marcum on
On 2010-01-21, mynick <anglomont(a)yahoo.com> wrote:
>>
>> no what you're trying to do requires raw disk access
> is it not what dd does-sector to sector copy?
> from dd unix wiki
> -image a partition to another machine:
>
dd copies sector to sector if you specify a raw device as source or
destination. Unix and similar OSs allow you to read/write block devices
as files if you have permission.

From: mynick on
On Jan 21, 1:04 pm, Bill Marcum <marcumb...(a)bellsouth.net> wrote:
> On 2010-01-21, mynick <anglom...(a)yahoo.com> wrote:
>
> >> no what you're trying to do requires raw disk access
> > is it not what dd does-sector to sector copy?
> > from dd unix wiki
> > -image a partition to another machine:
>
> dd copies sector to sector if you specify a raw device as source or
> destination.  Unix and similar OSs allow you to read/write block devices
> as files if you have permission.

could you please elaborate with example
what is actually needed si opposite of 'image partition to another
machine'
that is image another machines partition to local