Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-22-2008, 04:48 PM   #1
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
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?
Old 07-22-2008, 05:10 PM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
dd if=/dev/sda of=/dev/sdb
Job done

Old 07-22-2008, 09:15 PM   #3
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
Thanks Dave.
That did it.
Old 07-22-2008, 09:40 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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.


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
getting udev to mount a slow usb sdhc card on boot... stardotstar Linux - Hardware 6 12-01-2009 09:06 PM
4GB model anoop ss Linux - General 2 08-23-2007 06:20 AM
I screwed up a 4gb mmc card acid_kewpie General 14 04-26-2007 04:53 PM
Files > 4GB on FAT32 Luke771 Linux - General 7 02-01-2006 05:43 AM
What if you had 2GB RAM and 4GB HD? AC97Conquerer General 21 03-28-2005 07:21 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration