Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-07-2009, 10:12 PM   #1
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 : to the other computer (Ip: 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, 10:22 PM   #2
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-07-2009 at 11:16 PM.
Old 03-07-2009, 11:00 PM   #3
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 69
You'd be better off using netcat, not ssh (scp). Here's an example.


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 07:34 AM
Installing Ubuntu onto a hard disk image DJ747 Linux - Desktop 0 11-07-2006 04:52 AM
put rescue image on hard disk leftPeg Linux - Newbie 5 04-29-2006 01:48 AM
mounting a hard disk image as user? zero79 Debian 2 05-05-2005 07:12 PM
hard disk image nived Linux - Software 3 12-08-2004 09:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:13 AM.

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