LinuxQuestions.org
Review your favorite Linux distribution.
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 03-07-2009, 11:12 PM   #1
naleen
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
Acquiring a hard disk image through SSH


Hi guys, I have two computers with linux installed. I need to take a bit-stream (bit-by-bit) image of one computer's hard disk (IP : 192.168.0.2) to the other computer (Ip: 192.168.0.196) over the network. I have the root access for both of the computers. How can I do this using 'dd' and 'ssh'? Thanks a lot.
 
Old 03-07-2009, 11:22 PM   #2
mobydick
Member
 
Registered: Sep 2008
Distribution: Slackware FreeBSD
Posts: 42

Rep: Reputation: 16
So, you want to clone a hard disk?
I'll give you an example how ddworks. Suppose I have 2 hard disks installed on my machine and want to dump the 1st one onto another.The first hard drive is called /dev/hdaand the second will be /dev/hdc. The command ~#:dd if=/dev/hda of=/dev/hdc bs=2048/4096
will copy the whole contents of the first hard disk onto the second.
2048 or 4096 determines the speed of that.
I don't know how to use ssh, because I've never used that, but I guess you should pipe the output of dd to ssh.

Last edited by mobydick; 03-08-2009 at 12:16 AM.
 
Old 03-08-2009, 12:00 AM   #3
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
You'd be better off using netcat, not ssh (scp). Here's an example.
http://www.cyberciti.biz/tips/howto-...r-network.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Boot ISO image from hard disk? AlexV Linux - General 8 02-20-2009 08:34 AM
Installing Ubuntu onto a hard disk image DJ747 Linux - Desktop 0 11-07-2006 05:52 AM
put rescue image on hard disk leftPeg Linux - Newbie 5 04-29-2006 02:48 AM
mounting a hard disk image as user? zero79 Debian 2 05-05-2005 08:12 PM
hard disk image nived Linux - Software 3 12-08-2004 10:05 AM


All times are GMT -5. The time now is 04:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration