That is combining both options together - sort of. It is creating a dd image like you first did, but compressing it. If your dd image didn't work in the first place, it will just compress the broken image.

From: William Pretty Security Inc []
Sent: Tuesday, 28 February 2012 12:25 PM
To: 'General mailing list for gumstix users.'
Subject: Re: [Gumstix-users] How to 'tar" /dev/sdb2 ? <solution>

I may have found a solution:


dd if=/dev/sourcecard bs=1M | gzip -c > somefile.gz

gunzip -c somefile.gz | dd of=/dev/destcard bs=1M




"People sleep peaceably in their beds at night only because rough men

stand ready to do violence on their behalf." - George Orwell


From: Chris Crews []
Sent: Monday, February 27, 2012 8:40 PM
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] How to 'tar" /dev/sdb2 ?


mkdir /media/rootfspart

mount /dev/sdb2 /media/rootfspart

cd /media/rootfspart

tar -czvf /<path_to_where_you_want_the_tarball>/rootfs.tar.gz *



On Mon, Feb 27, 2012 at 7:24 PM, William Pretty Security Inc <> wrote:

Hi All;

I am hoping someone out there can help.
This is probably a really BASIC Linux question so I apologize :-)

I am trying to create a backup of the root file system of my uSD card.
I tried to "dd" the whole card and it didn't copy all the files properly
so I am settling for the rootfs partition.

What I want to do is 'tar' all of /dev/sdb2 ...

I tried tar and bzip2. Neither seem to work.
I tried using the file manager GUI from Ubuntu, but it didn't copy the files

correctly either.

There must be a way to do this?



"Amat victoria curam "

Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
gumstix-users mailing list


CAUTION: This message was sent via the Public Internet and its authenticity cannot be guaranteed.

PROPRIETARY: This e-mail contains proprietary information some or all of which may be legally privileged. It is intended for the recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the authority by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail.