LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-10-2005, 11:33 AM   #1
Mainframe
LQ Newbie
 
Registered: Mar 2004
Location: Canada
Distribution: SLACKWARE LINUX - Since 1993
Posts: 15

Rep: Reputation: 0
Mirroring Hardrives with "dd" (forensics / security question)


Quick and simple question regarding how to make a bit image copy of one hard drive for another for forensic analysys

Im farmiliar with the linux / unix utility "dd" which stands for DataDump.

If your drives are the same size and same geometry you can use this simple command to make a bit image (exact replica) of the original drive to use for backups, forensics etc.

dd if=/dev/hdc of=/dev/hdd

if - input file
of - output file

my quesiton is what if the drive you have is smaller then the source drive? ie
/dev/hdc is a 40Gig drive but /dev/hdd is a 30Gig drive??

can the drive still be copied and be expected to work just the same as the original? or will some of the data just not get copied because there is not enough physical space on the drive??

ive googled dd may times now and cant really find any "practical" dd howto's or
drive mirroring with linux howto's, dd documentation is scarce
but I will continue googling until i come up with something.

If anyone has any experience with dd I would love to pick your brain

cheers

p.s - dd is just as good as "Norton ghost" or all those other drive mirroring / copying programs out there and ofcourse, dd is FREE

slue

Last edited by Mainframe; 11-10-2005 at 11:35 AM.
 
Old 11-10-2005, 01:57 PM   #2
free_ouyo
Member
 
Registered: Mar 2004
Location: Belgium
Distribution: Ubuntu
Posts: 133

Rep: Reputation: 15
Mirroring Hardrives with "dd" (forensics / security question)

Hello,

Don't understand, follow the question.

If you want to create a forensic image of the source HD, you need at least a destination HD with the same size.
If the destination HD is smaller, you will lose some of the datas on the source drive. Also, if you want to create a forensic image of the HD, you have to verify the copy using MD5 or best SHA1.

Some dd derivated are best designed for forensic imaging dd_rescue, sdd ....

If you only want a forensic copy or backup and don't have to run the OS on the HD, you can compress the destination of the dd into a file with gzip or bzip.

Let me know if you need more info.
--
free_ouyo
 
Old 11-11-2005, 07:25 AM   #3
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
It will copy as much as possible to the destination drive. My 180 gb hdd was approaching its last day, so I wanted to make a back up before the bell tolled. The closest size drive I had was a 160 gb hdd. The files (and filesystem) made it over alright, but that is probably because there was only ~ 80 gb worth of data, and it occurred in the first 160 gb of the disk. In conclusion, give it a shot. The source drive will still be intact either way. Also hard drives with 40 gb (or more) are now fairly inexpensive. You could probably motivate yourself to go purchase a new drive.
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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