LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-22-2008, 04:48 PM   #1
lothario
Member
 
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:
/dev/sda
/dev/sdb

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
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

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

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

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

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


Reply


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


All times are GMT -5. The time now is 01:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration