Embedded Linux >> Booting a DD image of a CF card

by Ryan » Fri, 03 Dec 2004 02:58:45 GMT

Hi all,

I'm looking to boot a dd image of a 512m CF card on a linux box (the
DD is of a linux install as well). I was hoping to be able to place a
dd file on the hard drive and boot the image with a loader (lilo
currently). This would be ideal because it would be simple then to dd
the image back to a CF card for actual devel system.

I could copy the partition from the DD image to a new partition on
the hard drive although this would not make it simple to copy back to
the CF card.

Any suggestions on how to do this?

Ryan



Similar Threads

1. Black Screen After Using DD to image WBEL4 + Win XP Dual Boot - Linux

2. dd disk image won't boot

Hello,

I have the following problem :

I took a dd image from a boot disk on a E4500 to another disk on a 
second diskboard.
disk0 (source) = /dev/dsk/c0t10d0s2
disk3 (target) = /dev/dsk/c1t14d0s2

The goal was to have a copy of the boot disk. (I know there are better 
and faster ways of copying disk, but this is the way it is). As dd takes 
a bitwise copy, I expect the resulting disk to be bootable. So, I issued 
the following command (in single user mode) :

dd if=/dev/rdsk/c0t10d0s2 of=/dev/rdsk/c1t14d0s2 bs=1048576

When I swap the diskboards, the kernel spits out the following error 
message :
Device not bootable

I booted from cdrom, mounted the disk, and verified the contents of it. 
Looked Ok. Then I made sure the disk to be bootable by a "installboot" 
command. When I rebooted with "boot disk" on the Ok prompt, I got the 
same error (Device not bootable).

I'm really puzzled here. Could it be that I have to dd the last slice 
too ? Maybe the blocksize is too big, and a part of the last slice 
didn't get copied ?

The disk I dd'ed was mirrorred too. Could this be a problem ? But I 
expect that the copied disk only will complain about it mirror not up to 
date (metastat will issue a Needs maintenance), so that after a 
"metareplace -e c1t15d0s2" (second disk on the new diskboard), the 
mirror resyncs itself.

DN.

3. booting from CF-Card - Embedded Linux

4. Problem booting via grub from cf card

Hi!

my cf card is connected via cf to ide adapter on the second ide channel 
(hdd)

an root (hd3,0) with grub, bootet from fdd brings an error, its not able 
to find the hdd1 partition...

any help?

thanks!

5. Boot Linux from CF Card - Linux

6. Grub hangs at boot - CF card

Hi All,

I'm trying to get Linux to boot off a compact Flash card.  I have the
kernel & root FS installed fine, I installed grub to the CF card (/dev/
hdb) using:

sudo /sbin/grub-install --root-directory=/mnt/cf /dev/hdb

However, after powering down the system, jumpering the CF card so that
it's hda then rebooting, I just get the text
"Grub" when it boots and nothing else.

Host OS I ran the grub-install from is Centos 5.2.  I checked after
this command that what looked like the required files where installed
in /boot/grub on the CF card.  Any ideas why it's not booting?

TY,
Fred

7. Can't Mount CF-Card on boot of 2.6.15 Kernel on EPIA - VFS: Cannot open root device - Linux

8. Can't Mount CF-Card on boot of 2.6.15 Kernel on EPIA - VFS: Cannot open root device