LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-04-2011, 11:56 AM   #1
jbolstrum
LQ Newbie
 
Registered: May 2011
Location: Livonia Michigan
Posts: 2

Rep: Reputation: 0
Making a bootable partitian on a compact flash.


Hello, I am the pure definition of a "newbie". I have never worked with Linux before but as part of my new job I need to format and install a program on a compact flash card. I have followed our procedure to the T but when i install the card I get a No bootable partition error. Here is what I'm doing. I go into Gnome terminal and change to my directory to "cd dcmsetupdir" (this may not be important but I want to give as much info as I can. Then I type "sudo ./format_cf". once this is complete (no errors detected), I type in "sudo ./install_cf" this seems to install correctly but when I boot up the unit with the card in I get the no bootable partition error. I apologize if this is too basic or I have not given enough detail but any help would be GREATLY appreciated.
 
Old 05-04-2011, 12:15 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Hi,

Does it matter what Linux you use? If not, I suggest getting Ubuntu, and making a bootable drive with that.

And ...

Quote:
of my new job...
congrats on the new job, and of course

Quote:
I am the pure definition of a "newbie".
that will only be for a while...just stick around

Luck!

Thor

Last edited by ButterflyMelissa; 05-04-2011 at 12:18 PM.
 
Old 05-04-2011, 12:34 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
"I need to format and install a program on a compact flash card."

In this statement you are saying something different than

"I boot up the unit with the card in I get the no bootable partition error."

Do you want the CF to be bootable or are you trying to figure out the bios boot order to stop the error at boot?
 
Old 05-04-2011, 06:03 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by jbolstrum View Post
...but when I boot up the unit with the card in I get the no bootable partition error.
After you finish installing the software for the CF card, unplug it, replug it, and run "sudo fdisk -l". Paste the output in your next reply.
 
Old 05-05-2011, 02:09 PM   #5
jbolstrum
LQ Newbie
 
Registered: May 2011
Location: Livonia Michigan
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the quick response gentlemen! 1st to Thor I really have a option to use a different version of Linux. To Jefro I need the CF to be bootable. I know the hardware I'm using is ok because I have a CF that does work with it. Finally to David 1357, I tried "sudo fdisk_l" and it asks for a root password. Unfortunately for me and the company, our Linux expert left and did not leve me/us with a password. Where I think my problem is, is with the "sudo ./format_cf". after I enter that command, I get a message "warning no primary partition marked bootable (active). The DOS MBR will not boot this disk". Does this help with the diagnoses?
 
Old 05-05-2011, 02:59 PM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Finally to David 1357, I tried "sudo fdisk_l" and it asks for a root password. Unfortunately for me and the company, our Linux expert left and did not leve me/us with a password
Hmmm, bummer...you could "sew" the guy - but, if there is data on the system you need to get at, a liveCD can be used for that.

Get one, burn the disk and feed it in the drive, reboot the machine. Try to mount the disk (possibly as easy as opening the file browser) and then, in the console, issue the suggested command on the mounted disk:

Quote:
fdisk -l
Let's see where we get from here...

Thor

Last edited by ButterflyMelissa; 05-05-2011 at 03:02 PM.
 
Old 05-05-2011, 04:46 PM   #7
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by jbolstrum View Post
...I get a message "warning no primary partition marked bootable (active). The DOS MBR will not boot this disk". Does this help with the diagnoses?
Yes it does, but you will not like the answer. You will need to run fdisk to mark the first partition as bootable. It sounds like your sudo access has been limited to running the two scripts, or the commands in the two scripts.

If you know enough about the scripts' contents, you might be able to modify them to run fdisk for you. However, I do not know enough about sudo, nor do I have enough information about the contents of the scripts, to be able to guarantee that this approach will work or tell you what changes need to be made to the scripts.

Last edited by David1357; 05-05-2011 at 04:47 PM. Reason: Added possessive apostrophe after "scripts" in first sentence of second paragraph.
 
Old 05-05-2011, 07:38 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
You can mark that partition bootable with any live-CD that has partitioning tools like fdisk or GParted on it.
 
  


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
Making a USB stick bootable from a bootable cdrom cwwilson721 Slackware 2 10-23-2009 10:18 PM
How do you duplicate a 512 Meg Compact flash to a 1 GB compact flash using dd??? allen00860 Linux - Newbie 5 05-23-2009 09:48 PM
cannot create bootable compact flash kpachopoulos Linux - General 3 12-26-2006 07:15 AM
making a non bootable patrion bootable jason2 Linux - General 6 08-01-2004 11:25 AM
Making Suse 7.1 see a USB compact flash reader Dave Linux - General 1 04-16-2001 12:12 AM


All times are GMT -5. The time now is 08:18 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