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 03-07-2009, 10: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, 10: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-07-2009 at 11:16 PM.
 
Old 03-07-2009, 11:00 PM   #3
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

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


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
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

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

All times are GMT -5. The time now is 12:12 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