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 [mailto:christopher.crews07@gmail.com]
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 <bill.pretty@xplornet.com> 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