Prev: Need to keep a more robust DNS cache in my Windows client
Next: Downloading only a particular page/selective pages of a document
From: mynick on 20 Jan 2010 21:05 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 21 Jan 2010 06:05 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 21 Jan 2010 09:36 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 21 Jan 2010 16:04 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 21 Jan 2010 21:13
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 |