LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-10-2011, 03:59 PM   #1
ygor
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
Trying to clone a Fedora 12 Compact Flash


I have a Fedora 12 load on a 4GB compact flash. One 200Mb ext2 partition for /boot and the rest of the CF as a single ext4 partition with journalling turned off and other junk to minimize write/erase operations.

The problem is that I am tasked to clone the installation and what I have tried to date is not working.

What I did so far was to use dd to copy off the MBR and the two partitions onto a USB hard drive. Then I get another CF card in place, partition it the same way -- sizes, labels, and fstypes the same, and then dd the contents of the original CF onto the new one, adding the option of oflag=noatime.

It starts to boot, buut then says :
Quote:
No root device found
Boot failed
Sleeping forever


I am trying to do this with simple commands rather than dragging in a utility like Clonezilla.

Can it be done like this or am I going in the wrong direction ?

A clue, please, for this clueless one !
 
Old 02-10-2011, 04:21 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Welcome to LinuxQuestions.
Assuming the CF cards are the same size it should be as easy as
dd if=/dev/sdx of=cf.img (copy from card)
and
dd if=cf.img of=/dev/sdx (copy to card)

Use the actual device ID in place of sdx. You will have an exact byte for byte copy of the CF card.
 
Old 02-10-2011, 07:27 PM   #3
ygor
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
That's what I did

sorta...
I made 3 image files: one for the boot partition (/dev/sda1) one for the rest of the card (/dev/sda2) and a little one for the MBR (the first 512 bytes of /dev/sda)
I used this reference: how to copy MBR with dd/
but it will not boot.
I should also mention that I edited grub.conf and fstab to use LABEL rather than UUID.

Last edited by ygor; 02-10-2011 at 07:37 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you duplicate a 512 Meg Compact flash to a 1 GB compact flash using dd??? allen00860 Linux - Newbie 5 05-23-2009 08:48 PM
Installing Fedora onto Compact Flash marvin00001 Linux - Hardware 1 10-15-2008 08:18 AM
how to install fedora 4 on 2G compact Flash yjx2003 Linux - Software 3 07-04-2006 09:07 PM
Fedora on Compact Flash gpk Linux - General 2 06-12-2006 09:27 PM
Booting Installed Fedora off Compact Flash kushalkoolwal Fedora 5 07-11-2005 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:50 AM.

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