Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-08-2004, 10:00 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
Image a hard drive

I am trying to image my Hard Drive using a Knoppix boot CD, I executed the following command

dd if=/dev/hda - /mnt/remote_share/mypc_hda.img.

but it created and 20 GB Image, even though I only had 2 GB of the 20GB hard drive used. Is it possible to crreate an image simillar to ghost or PQDI that only captures the used sectors?
Old 04-08-2004, 10:57 PM   #2
Senior Member
Registered: Oct 2003
Posts: 2,559

Rep: Reputation: 213Reputation: 213Reputation: 213
dd will create an image of the entire drive, zero sectors and all. Try using partimage on the knoppix cd; it's included. Here's a short tutorial:
Old 04-08-2004, 11:15 PM   #3
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,186

Rep: Reputation: 52
if you put gzip in the loop, the empty space should compress well. especially if you zero it first.
dd if=/dev/hda | gzip > filename.dd.gz


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
Make image of hard drive spondootre Linux - General 1 07-19-2005 03:33 PM
hard drive failing, how can I create an image of my drive? oily_rags SUSE / openSUSE 6 07-07-2005 02:19 PM
Hard Drive Image ...H2H pacer Linux - Software 1 12-14-2004 03:23 PM
Anyone know how to mount a hard drive image? redhatman Linux - Newbie 5 08-11-2004 04:41 PM
Hard drive image bkmesenbrink Linux - Newbie 7 06-21-2003 10:45 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 PM.

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