-   Linux - Software (
-   -   How do I clone a 4Gb SDHC Card to another 4Gb SDHC Card (

lothario 07-22-2008 04:48 PM

How do I clone a 4Gb SDHC Card to another 4Gb SDHC Card
I have 2 identical SanDisk Ultra SDHC Cards, 4Gb.
I have been using one SDHC card to boot a notebook and run Xubuntu off it.
Works great.
It contains the boot, root and a little swap space.

The second SDHC is a brand new unused card.

When I insert these into my Ubuntu desktop, they show up as:

I want to make an *EXACT* copy of the first SDHC card onto the second SDHC card.

What should I type on the Ubuntu command line to do this type of cloning?

ilikejam 07-22-2008 05:10 PM


dd if=/dev/sda of=/dev/sdb
Job done


lothario 07-22-2008 09:15 PM

Thanks Dave.
That did it.

jschiwal 07-22-2008 09:40 PM

Having a swap partition on an SD card is not a good idea. Also, you want to add the "noatime" mount option for the partitions. An SD card has a limited number of writes. If you use "noatime", the access times aren't recorded on the filesystem for every read. A swap partition may be written to at a high frequency. This could wear out the card prematurely.

All times are GMT -5. The time now is 06:03 AM.