LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-08-2003, 09:31 PM   #1
nbukis
LQ Newbie
 
Registered: Apr 2003
Posts: 2

Rep: Reputation: 0
Question Imaging a hard drive...is it possible


Hey all, I was wondering how to image a drive using linux. My reasoning is I would like to copy a Windows (ntfs, fat/32) drive making sure nothing gets written to the source in the process. I know you can mount a drive as read only, but then how could I image or copy a drive? Is this possible? Thakns for the help....
 
Old 04-08-2003, 09:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Give dd a closer look :)

dd if=/dev/hda1 of=<your_image_file>

Of course hda1 is just an axample ;)

Cheers,
Tink
 
Old 04-09-2003, 02:21 PM   #3
sardaukar_siet
Member
 
Registered: Feb 2003
Location: London
Distribution: Fedora 22
Posts: 59

Rep: Reputation: 15
A more polished way of doing it...

There's also partimage, on www.partimage.org, that is great for your needs. If you have seen Partition Magic(tm), it's very similar. Check it out!
 
Old 04-09-2003, 02:24 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
What's the problem with just mounting it with read-only permissions as stated?
 
Old 04-09-2003, 05:26 PM   #5
sardaukar_siet
Member
 
Registered: Feb 2003
Location: London
Distribution: Fedora 22
Posts: 59

Rep: Reputation: 15
Post Several (non)problems

1. You may not have another partition to image from
2. dd creates a file of equal size (partimage bzips it as it goes, and only used space)
3. Partimage supports FAT and NTFS too!
 
Old 04-09-2003, 07:29 PM   #6
nbukis
LQ Newbie
 
Registered: Apr 2003
Posts: 2

Original Poster
Rep: Reputation: 0
so using

dd if=/dev/hda1 of=<your_image_file>

will create an image file on my destination drive of the data from my source, right? But if it creates one large file, what kind of file is that? does it have to be "extracted" or should I say, what would the process be for taking that large file and making the drive an exact copy of my source?

For example (windows drive),would I be able to just jack in the copy and boot up the same as with the original....
Thanks every 1
 
Old 04-10-2003, 08:19 AM   #7
sardaukar_siet
Member
 
Registered: Feb 2003
Location: London
Distribution: Fedora 22
Posts: 59

Rep: Reputation: 15
The kind of image is...

... a binary dump. Think of it as a BIN/CUE file of a CD. It has the entire contents of the disk in binary form, including empty space and all. To restore such a file, all you need is to dd it inversely, meaning

dd if=<your_image_file> of=/dev/hda1

I believe it's ok to do this, but I HAVE NO GUARANTEES! You have been warned.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive imaging, and ftp thebored *BSD 12 04-03-2006 04:25 AM
Hard Disk Imaging software neouto General 6 09-07-2005 07:01 PM
drive imaging tools matthewhardwick Linux - Software 2 08-12-2005 08:54 AM
Hard drive Imaging software? sohmc Linux - Software 4 05-24-2004 01:16 PM
Drive imaging witeshark General 1 01-28-2004 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:11 PM.

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