LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2010, 08:39 AM   #1
tukidid
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
image remote disk?


Imaging-copying a working remote share on WindowsNT to a local Linux(or could be windows
if use dd win version) 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?
is this a good suggestion
dd if=/dev/ad2 conv=noerror,sync bs=64k | dd of=/dev/ad3 bs=64k
 
Old 01-21-2010, 08:45 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
No, I don't think dd will work on a remote samba share. dd takes the exact copy of a disk, byte for byte, no matter the file system. What goes through samba is files, it's no more dd's job to parse it. You should use tar instead.
 
Old 01-21-2010, 08:48 AM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
take a look at partimage-server
http://www.partimage.org/Partimage-m...etwork-support
 
Old 01-21-2010, 08:51 AM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
you may waanna also check out DRBL
http://drbl.sourceforge.net/
 
Old 01-21-2010, 04:59 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
netcat maybe?

If it is a samba share then why use consider dd. Can't mv or rcp or ftp such work?

Might move up to winscp. http://winscp.net/eng/index.php

Last edited by jefro; 01-21-2010 at 05:07 PM.
 
Old 01-21-2010, 07:54 PM   #6
tukidid
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
netcat maybe?

If it is a samba share then why use consider dd. Can't mv or rcp or ftp such work?

Might move up to winscp. http://winscp.net/eng/index.php
in situation with no admin privilleges on windows remote -only its share can be accessed from local computer , no server/agent installation on remote is possible perhaps only running a command like dd copied to it(or existing on it-would be great to start somehow recycle bin from command line using psexec)
As for local it could be win or linux box,
above is mentioned netcat and I found this example
Image a partition to another machine:
(no mention of possible samba file problem ?)
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
this should take care of every disk cluster not just ones occupied with data but
what is the syntax for doing it in opposite direction-
image another machine's partition to local?
Yet another idea is copy and run nbdsrvr.exe on remote and than access it with ubuntu local which has nbd support built in
 
Old 01-21-2010, 07:55 PM   #7
tukidid
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
in situation with no admin privilleges on windows remote -only its share can be accessed from local computer , no server/agent installation on remote is possible perhaps only running a command like dd copied to it(or existing on it-would be great to start somehow recycle bin from command line using psexec)
As for local it could be win or linux box,
above is mentioned netcat and I found this example
Image a partition to another machine:
(no mention of possible samba file problem ?)
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
this should take care of every disk cluster not just ones occupied with data but
what is the syntax for doing it in opposite direction-
image another machine's partition to local?
Yet another idea is copy and run nbdsrvr.exe on remote and than access it with ubuntu local which has nbd support built in
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS image for remote installation abhay_rs1 Linux - Networking 1 05-06-2009 03:48 AM
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 07:59 PM
ntfsclone Restore image to a remote host!! Ricio Linux - General 1 03-31-2008 06:42 AM
fitting 39 Gb disk image onto 39 Gb backup disk ivlad2002 Linux - Laptop and Netbook 6 03-29-2007 04:45 PM
Get a remote image with Perl rigel_kent Programming 1 08-31-2006 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration