LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-01-2005, 11:42 AM   #1
Pimple
Member
 
Registered: Sep 2001
Location: Houston
Distribution: Red Hat 7.0, 7.2,8,9, Mandrake 9.0, 9.2, Knoppix, DSL, Fedora Core 4,Solaris 8
Posts: 73

Rep: Reputation: 15
Make an exact copy of a compact flash card


I have a compact flash card which has a linux operating system installed on it. It is in an embedded system. I want to make an exact copy of the compact flash card to keep as a backup (I don't want to create my own file system or modify it). Any help on how to do this will be appreciated.
 
Old 05-01-2005, 12:03 PM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
Try dd utility.


dd if=/dev/sda1 of=/tmp/backup-file

where sda1 is your USB device
 
Old 05-02-2005, 10:02 PM   #3
Pimple
Member
 
Registered: Sep 2001
Location: Houston
Distribution: Red Hat 7.0, 7.2,8,9, Mandrake 9.0, 9.2, Knoppix, DSL, Fedora Core 4,Solaris 8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks for your response but I still am not sure. It appears as though this command copies the contents of the compact flash card to the hard drive. Will the backup CF card be bootable when I copy the files to it. Can you help with a link to a how to?
 
Old 05-03-2005, 02:55 AM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Quote:
It appears as though this command copies the contents of the compact flash card to the hard drive.
That's right!

And then when it's time to restore from backups, you reverse the process:

dd if=/dev/backup-file of=/dev/sda1

and your card is restored.

The dd utility works by reading data in raw format: Unlike, say, the cp file, which looks at the logical construction that is the file, dd reads the ones and zeros on the physical hard drive itself.
 
Old 05-03-2005, 07:26 PM   #5
Pimple
Member
 
Registered: Sep 2001
Location: Houston
Distribution: Red Hat 7.0, 7.2,8,9, Mandrake 9.0, 9.2, Knoppix, DSL, Fedora Core 4,Solaris 8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks for your comments. Do I make one efs2 partition on the blank compact flash card before copying back from the hard drive?
 
Old 05-03-2005, 08:04 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
nope... remember that dd gets everything from the device... this includes the partition table...
 
1 members found this post helpful.
Old 05-03-2005, 09:06 PM   #7
Pimple
Member
 
Registered: Sep 2001
Location: Houston
Distribution: Red Hat 7.0, 7.2,8,9, Mandrake 9.0, 9.2, Knoppix, DSL, Fedora Core 4,Solaris 8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks, that should do it for me then. I will try it a post the results.
 
Old 01-24-2006, 09:36 AM   #8
giulioudo
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
hi
I am interested in knowing if the procedure descibed works.
Could you post the results ?
 
Old 02-01-2006, 11:37 AM   #9
sdubble
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
I am also quite curious how this turned out for you. I've been trying to do something similar for the last week and recently turned to the forum.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make exact copy of a hard disk in fedora AQG Linux - Hardware 6 08-07-2005 04:11 PM
Exact Copy of Compact Flash Card Onyx^ Linux - Software 1 09-01-2004 04:30 AM
How do I make an exact copy of a movie DVD u6jaf Linux - Software 1 07-08-2004 12:45 PM
make an exact copy of Fedora from 1 PC to another lothario Linux - Newbie 1 06-04-2004 12:34 PM
How to make an exact copy of a Hard Disk danishmr Linux - General 15 11-10-2003 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration