LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 04-04-2011, 04:58 AM   #1
Blunda
Member
 
Registered: Oct 2008
Posts: 40

Rep: Reputation: 0
Bios Flash Boot Floppy


Hello

I am trying to flash my bios but they only supply an exe or a floppy image. obviosly I am not running windows to run the exe and I dont have a floppy drive. So I have been trying to copy the floppy image to a cd with little success.

I have been using the below code to create the iso:

Code:
genisoimage -o bootcd.iso -b F1B.IMG F1B.IMG
But I get an error saying:

Code:
Size of boot image is 2884 sectors -> genisoimage: Error - boot image 'F1B.IMG' has not an allowable size.
The way I understand it thats 4 sectors over the 1.44Mb floppy size? Is there a way I continue anyway? Seeing that I will be putting it on a cd I cant see that the size is going to matter
 
Old 04-04-2011, 09:09 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,387
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Even if you can continue, the issue is that you are creating an El Torito boot CD, so the BIOS will treat the CD as a virtual floppy, and may not cope with a non-standard size.

What was the source of the floppy image (ie, how did it end up being a non-standard size)?

Is it a valid image (are you able to loop mount it and view the contents)?

Since most computers now can boot straight from CD (without floppy emulation), you could extract the contents of the floppy image and create a normal bootable CD (or even just use freedos and the exe file), but that would be more effort.
 
Old 04-04-2011, 09:35 AM   #3
Blunda
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 0
It was downloaded from the hp website, its a compaq laptop. I had to run the exe in wine so it extracted the files from temp and the img file was there.

I have had problems mounting it aswell

I typed in:

Code:
sudo mount -o loop -t vfat F1B.IMG /tmp/floppy
But receive this:

Code:
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
 
Old 04-04-2011, 09:59 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
You can boot from freedos then run the exe file to flash your BIOS.
That might be safer than trying to run it with wine.
 
Old 04-04-2011, 10:40 AM   #5
Blunda
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 0
Thought of that, just says the program cannot be run in DOS mode
 
Old 04-04-2011, 11:50 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
It won't run from DOS? You mean it needs windows, just to flash the BIOS?
Yuk.

But I am puzzled - you downloaded something to flash your BIOS on your Compaq PC but you got it from HP? Something's not right here, as I would not expect that to work. Maybe you could give is links to the actual pages / file(s) you are referring to.

You said you ran something in wine, and it extracted files. With any luck, one of them is the image to be flashed to the BIOS.

There are utilities that run on freedos that'll both read your BIOS to a file and flash it from a file.

You need to be very careful you do not brick your PC though.

Who makes your BIOS? What is its version number?
What is the version number of the newer version?
 
Old 04-04-2011, 12:06 PM   #7
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
Quote:
Originally Posted by tredegar View Post
But I am puzzled - you downloaded something to flash your BIOS on your Compaq PC but you got it from HP? Something's not right here, as I would not expect that to work. Maybe you could give is links to the actual pages / file(s) you are referring to.
That is totally fine, just because HP bought Compaq sometime ago and is still using the brand for some models, like my HP Compaq 615 notebook.
 
Old 04-04-2011, 01:20 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
That is totally fine...
Thanks for clearing that up

It would still be useful to have a link to the files Blunda refers to.
 
Old 04-04-2011, 02:01 PM   #9
Blunda
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 0
This is the link to the bios downloads

http://h20000.www2.hp.com/bizsupport...nvOID=1093#120
 
Old 04-04-2011, 05:35 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
I copy the floppy image as track 1.
 
Old 04-05-2011, 01:56 AM   #11
Blunda
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 0
Sorry, you will have to elaborate. Thanks
 
Old 04-05-2011, 02:27 AM   #12
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,387
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
The image file that you have is not a raw floppy image, it appears to have a 32 byte header. Do the following to remove the header:
Code:
tail -c +33 F1B.IMG >F1Ba.IMG
This will give you a raw image that can be loop mounted (to check that it is intact), and can be turned into an iso.
 
Old 04-05-2011, 03:54 AM   #13
Blunda
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 0
Fantastic! I will give that a go and let you know how it goes! Thanks

Out of curiosity how can you tell it has this header?
 
Old 04-05-2011, 04:04 AM   #14
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,387
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Quote:
Originally Posted by Blunda View Post
Out of curiosity how can you tell it has this header?
You gave the link, so I was able to download it, extract the image, and dump the file to have a look at the format. It successfully loop mounted after removing the 32 bytes, and genisoimage works. I didn't test actually booting from it (I'm assuming the supplied copyimage program doesn't modify the boot sector of the image).

Last edited by neonsignal; 04-05-2011 at 04:06 AM.
 
Old 04-05-2011, 04:28 AM   #15
Blunda
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 0
Ahh, I see. I thought there might have been a command you ran which detected the 32bit header or something. I will give it a go a report back. Thanks
 
  


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
How to put drdflash.img my flash utility and bios file onto a bootable floppy? Oakems Linux - Software 4 03-25-2009 06:28 PM
no floppy drive ....flash bios howto aus9 Linux - General 3 03-19-2007 06:15 AM
LXer: How to flash motherboard BIOS from Linux (no DOS/Windows, no floppy drive)? LXer Syndicated Linux News 1 03-11-2007 08:24 AM
how do i make a bootable floppy (for bios flash) norah_cobain Linux - General 6 06-29-2006 08:57 PM
How to flash bios with no floppy driver or Windows Installation RemusX2 Linux - Hardware 2 06-02-2006 04:49 AM


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