I mean, if you perform dd if=/dev/sda of=sd1gb.dd for Kingston 1GB SDCard, you have no warranties that you can successfully do this dd if= sd1gb.dd of= /dev/sda for PNY or Patriot 1GB SD cards.

--
Nikolay


On Tue, May 15, 2012 at 1:16 PM, j <vwyodapink@gmail.com> wrote:
On 05/15/2012 10:00 AM, Nikolay Rogoshchenkov wrote:
It's not good method! 
Because different SDcard's has different real bytes even with one GB label. 


--
Nikolay


On Tue, May 15, 2012 at 12:49 PM, j <vwyodapink@gmail.com> wrote:
On 05/15/2012 01:56 AM, Sergi Torrellas wrote:
Hi All,

I've struggling these last days in creating a backUp image of the SDCard of the Gumstix.

(1) You can use the following to compress the SDCard:

#!/bin/bash
cd /media/rootfs/
tar -cpjvf /home/sergi/AngstromDistros/compressed.tar.bz2 . --numeric-owner

tar is the name of the program we're using to compress/store the rootfs
  • c is create a new archive
  • p is to ensure the permissions are kept the same. This is VERY important, some files require specific levels of privileges in order to work correctly. This is probably default when run with sudo, but it doesn't hurt to put it in.
  • j means use bz2 compression
  • v means verbose. This will spit out the file names that it's currently archiving to the terminal.
  • f is for file
  • --numeric-owner will store the owners of the files as numbers. I don't understand this, I read it here

(2) You use the following to uncompress the file to the SDCard:

#!/bin/bash
tar -xpjvf /home/sergi/AngstromDistros/compressed.tar.bz2 -C /media/rootfs/ --numeric-owner

I used this page as inspiration

Hope this helps,

Sergi

--
Sergi TORRELLAS
AIL-eHealth Coordinator
eHealth
BARCELONA DIGITAL TECHNOLOGY CENTRE
www.bdigital.org

 
M. 616 21 72 97
Skype: sergi.torrellas

storrellas@bdigital.org
 
Barcelona: Media-TIC building, Roc Boronat 117, 5th floor, 08018  - T. +34 93 553 45 40 - Fax. +34 93 553 45 41
Lleida: Scientific and Technological Agro-food Park. Gardeny Park, ICT Building. T. +34 973 19 36 60
Girona: Scientific and Technological Park of the Girona University. Emili Grahit, 91st. T. +34 972 41 64 78







------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Here is another method as well
dd if=/dev/sd(a) of=sd1gb.dd  -- copy off
dd if=/sd1gb.dd of=/dev/sd(a) -- put back on
another way with compression would be
dd if=/dev/sd(a) of=sd1gb.dd | tar zcvf sd1gb.dd.tar.gz --- to copy it off the card
tar Ozxf sd1gb.dd.tar.gz | dd of=/dev/sd(a)  --- put back on the card. It is a letter O not a zero in the tar command


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users
And to which method are you referring?
I have been using my method for over 2 years with gumstix's and now on BBXM and on cards from 1gb to 32gb and never ran into an issue on any backups, so not really sure how it is bad, but curious to know if mine is the bad suggestion.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users