LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2012, 07:06 PM   #1
pratsam
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Rep: Reputation: 0
why CF card unable to boot up


Hi Guys,

I have a embedded development box which has a CF ( compact flash)card and it contains linux fedora 11 OS followed by complete development code , scripts etc .

Objective -> I need to take the image from CF present in the development box and upload this image into new CF cards so that when they are connected into new development machine they are ready to use without any need to load OS , development scripts etc.

What I have done so far ->

1) I Have attached Card reader into my Ubuntu machine and took the image from the old CF card and save it for future use.

example -> sudo dd if=/dev/sdg1 of=./backup_image.img bs=4096 , conv=sync, noerror
The image is saved under the name backup_image.img

2) I have taken new CF card and attached it to reader and then umount it
sudo umount /dev/sdg1

3) write zero in all blocks into new CF
ex-> sudo dd if=/dev/zero of=/dev/sdg1
4) once step 3 is completed , I have copied saved image into new CF card.

ex-> sudo dd if=backup_image.img of=/dev/sdg1

Result -> Successful.

But when I actually connected the new CF card into development machine , it failed to boot up .

I have compared lode CF and new CF and both has identical filesystems i.e ext3 and both has used exactly same bytes .

I am completely clueless like what I am missing here?

Thanks and regards,
Sam
 
Old 03-13-2012, 08:04 PM   #2
eeekster
Member
 
Registered: Oct 2011
Posts: 163

Rep: Reputation: Disabled
You just copied a partition which didn't include the boot record. Copy the entire card (e.g. /dev/sdg) instead.
 
Old 03-13-2012, 08:19 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Might be possible to just add in a loader to this image.


Personally I don't like the noerror switch. I want to know about errors.
 
Old 03-14-2012, 04:34 AM   #4
pratsam
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Hi Jefro,

Thnaks for reply. Well there is no error display. It just didnt boot up . when I connected my embedded system with serial port . I have noticed it display manufacturer informationa nd then stops .
 
Old 03-14-2012, 04:36 AM   #5
pratsam
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Original Poster
Rep: Reputation: 0
@eekster. Thanks foir the info. Do you suggest me how would I include boot record.
 
Old 03-14-2012, 02:23 PM   #6
eeekster
Member
 
Registered: Oct 2011
Posts: 163

Rep: Reputation: Disabled
Quote:
Originally Posted by pratsam View Post
@eekster. Thanks foir the info. Do you suggest me how would I include boot record.
Repeat what you did before but use /dev/sdg without a number on the end.
 
Old 03-14-2012, 04:43 PM   #7
st_disk
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
why CF card unable to boot up

Make sure the CF card is marked active/bootable.
 
Old 03-14-2012, 05:08 PM   #8
TKH
Member
 
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware, Fedora
Posts: 218

Rep: Reputation: 20
Does your BIOS support removable disk boot-up?
If not, as the above say, include it to the boot record.
Can you tell me what OS do you currently use?
 
Old 03-14-2012, 05:32 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
eeekster already told you the problem and the solution.

Make an image that was created by sdx/ and not sdx1 then copy it back sdx and not sdx1.

I was going to re-phrase it but you simply can't image the first partition and expect it to boot.

It may be possible to put the loader on it. If the original has syslinux then one might attempt syslinux but try eekster's suggestion first.

I agree that the card has to be a full replication of a hard drive with all the signals. As stated may even state bootable.

Last edited by jefro; 03-14-2012 at 05:35 PM.
 
  


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
GRUB: unable to boot netbook with USB/SD card altbeer70 Linux - Newbie 1 02-27-2010 05:33 AM
Unable to boot RHEL 5.2 and Unable to mount root file system in rescue mode vknemannavar Red Hat 5 01-29-2010 10:05 AM
Unable to see 16 sdhc card in card reader craigevil Linux - Hardware 1 02-18-2009 06:25 PM
Video card issues, unable to boot CentOS 4.2 kryptondog Linux - Hardware 0 01-15-2006 01:44 PM
Linuxant errors at boot if card is not inserted - unable to use ethernet cable zensufi Linux - Hardware 1 07-23-2004 02:07 PM


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