LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Making a bootable partitian on a compact flash. (https://www.linuxquestions.org/questions/linux-newbie-8/making-a-bootable-partitian-on-a-compact-flash-878789/)

jbolstrum 05-04-2011 10:56 AM

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.

ButterflyMelissa 05-04-2011 11:15 AM

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

jefro 05-04-2011 11:34 AM

"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?

David1357 05-04-2011 05:03 PM

Quote:

Originally Posted by jbolstrum (Post 4346344)
...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.

jbolstrum 05-05-2011 01:09 PM

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?

ButterflyMelissa 05-05-2011 01:59 PM

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

David1357 05-05-2011 03:46 PM

Quote:

Originally Posted by jbolstrum (Post 4347618)
...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.

TobiSGD 05-05-2011 06:38 PM

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


All times are GMT -5. The time now is 10:14 PM.