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 02-16-2010, 07:40 PM   #1
LQ Newbie
Registered: Nov 2009
Posts: 11

Rep: Reputation: 0
Need to create image, dd wont work...


I have a flash card with a linux install on it. I would like to create an image of the drive. However when using dd it works, but the image is the same size as the card, 8gb, the data on the drive is maybe 800mb. I just want to image the data. Would anyone have any reccomendations?

Old 02-16-2010, 07:46 PM   #2
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
then mount the card and dd/tar the data
Old 02-16-2010, 07:46 PM   #3
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try using Clonezilla, Parted Magic, or G4L.
Old 02-16-2010, 07:53 PM   #4
LQ Newbie
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0

if I dd/tar the data, it wont keep the bootable partitions thought will it?
Old 02-16-2010, 09:59 PM   #5
Registered: Mar 2008
Posts: 21,597

Rep: Reputation: 3539Reputation: 3539Reputation: 3539Reputation: 3539Reputation: 3539Reputation: 3539Reputation: 3539Reputation: 3539Reputation: 3539Reputation: 3539Reputation: 3539
Flash drives tend to have many issues with making it bootable. Normally one simply uses syslinux. Even if you dd or tar'd or cat'd over files you can always go back and syslinux it.

Or grub4dos or whatever.

See also if you want to make more flash drives.

It might be that you will have to use other tools such as HP's tools to make a flash drive bootable.
Old 02-17-2010, 01:13 AM   #6
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Rep: Reputation: 15
ther is also this that may help possibly
Old 02-17-2010, 04:24 AM   #7
Registered: Jan 2008
Location: Poland
Distribution: Slackware, Arch
Posts: 38

Rep: Reputation: 17
Dd is probably the simplest way. Only remember to overwrite free space with zeros (cat /dev/zero >zerofile; sync, rm zerofile) for simplify compression. Then you can use dd with gzip, bzip, or whatever you want: dd if=device | gzip >device.img.gz. The result will be so small as possible.


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
wireless driver wont install,ethernet wont work Reanimator Linux - Newbie 4 05-05-2008 09:22 AM
create image from a part of big image myrmidon Programming 3 07-11-2007 03:00 PM
not able to create an image.... os2 Linux - Software 2 08-31-2005 06:26 PM
NIC wont get IP after restoring image.. slug420 Linux - General 2 01-13-2005 08:18 AM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 11:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:01 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
Open Source Consulting | Domain Registration