LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2015, 07:15 PM   #1
Sysna
LQ Newbie
 
Registered: Sep 2015
Posts: 10

Rep: Reputation: Disabled
Error when partitioning Lexar USB drive for use as FreeDOS bootable


I'm not sure if this is the right board for my problem, but...
I'm trying to update the BIOS on my HP Probook 450 G1, but HP doesn't offer an update utility for Linux users. After some googling, I figured out that I could make a FreeDOS bootable USB drive and run the DOS utility on that. I'm following a guide (http://freedos.sourceforge.net/wiki/index.php/USB) to make the bootable drive, since I'm not terribly tech-savvy.

Anyway, when I run
Code:
sudo parted /media/will/Lexar mklabel msdos
I get an error message:
Code:
Warning: Unable to open /media/will/Lexar read-write (Is a directory).    
/media/will/Lexar has been opened read-only.
Warning: Unable to open /media/will/Lexar read-write (Is a directory).    
/media/will/Lexar has been opened read-only.
Error: Is a directory during read on /media/will/Lexar                    
Retry/Ignore/Cancel?
I can write files to the drive just fine in the file manager. What can I do to fix this?
 
Old 12-03-2015, 08:33 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I had same problem once. Without thinking much I created a FreeDOS bootable image and flashed my BIOS from USB. I still have this image. Linky. Put it on a USB stick with dd, add your files and boot it. Hopefully it will work for you as it worked for me.
 
Old 12-04-2015, 07:39 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
The instructons tell you to write to the device not to the mount point as you show your command. Look at the link you posted for the instructions you are using and you see it tells you to do: parted /dev/sdb mklabel msdos

That should work if your flash drive is actually sdb. No way for anyone here to tell, you would have to run the fdisk -l command as root user to get that info or use parted -l. If you don't understand the output, post it here and someone will explain. Using dd might be simpler.
 
Old 12-04-2015, 01:23 PM   #4
Sysna
LQ Newbie
 
Registered: Sep 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Okay, I'm running into another problem. The command
Code:
mount /dev/sdb /mnt
Gives the error message:
Code:
mount: you must specify the filesystem type
How do I do this?

Quote:
Using dd might be simpler.
Quote:
Put it on a USB stick with dd
What is dd, and how do I use it?
 
Old 12-04-2015, 01:57 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Unpack the bz2 file you downloaded. Plug in your USB drive, run
Code:
fdisk -l
it will show you your drives. Take a note of your USB drive, if you have only one hard drive it will be sdb, following example assumes it is sdb. Switch over to root
Code:
sudo -i
run
Code:
dd if=/path/to/image/freedos.img of=/dev/sdb
Make a directory for mount point
Code:
mkdir /mnt/tmp
Mount the USB drive
Code:
mount /dev/sdb /mnt/tmp
Copy your files to /mnt/tmp/. Reboot, make sure you select your USB drive as boot drive.

Big fat warning - dd will destroy everything you have in sdb.
 
Old 12-04-2015, 02:13 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Update: I just tried it on two computers. It worked on one of them and failed on another one. You may be better off following the Wiki you linked to.
 
Old 12-06-2015, 03:53 PM   #7
Sysna
LQ Newbie
 
Registered: Sep 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Okay Emerson, I followed your directions and ran into two problems:

1) Despite the drive being 500MB and the contents of freedos.img only being about 3MB, there's apparently only 3KB of space left on the drive. The BIOS update file I need is 10MB.

2) I can boot through the USB, but doing so just leads me to a CLI-looking screen with the words "reeDOS" (not "FreeDOS") at the top. Any keystrokes I make just result in a loud BEEPing sound.

So it looks like your method is a bust on my machine. Thanks for trying to help, anyway. I'll keep plugging away at the wiki instructions and see if I can get them to work.
 
Old 12-06-2015, 05:48 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
If your flash drive is almost full from your attempts to write to it, format it which will overwrite everything and leave you with a blank flsh drive.

In your initial post, you showed the command you used which was not what the link told you to do. You need to write to the device not to the mount point as you were doing and that is why you got the error you posted. If your device is actually sdb (we're guessing here as you have not posted any actual drive/partition information) the command you would enter per the site instructions is:

Quote:
sudo parted /dev/sdb mklabel msdos
 
Old 12-06-2015, 10:40 PM   #9
Sysna
LQ Newbie
 
Registered: Sep 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Sorry, my flash drive is /dev/sdb. I went through the instructions again, up until the error that I posted earlier.
 
  


Reply



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
Unable to mount USB - USB disconnect with Lexar thumb drive stoicbaby Linux - Hardware 9 04-29-2015 05:31 PM
slax bootable USB flash drive error james2b Linux - General 1 04-13-2009 09:09 PM
Copy Files From Lexar USB Drive In Slackware 12.1 OWA14 Linux - Newbie 3 05-27-2008 06:50 PM
Load USB drive info on FreeDOS gvp87 General 1 02-17-2008 04:53 AM
Lexar USB Jump drive mounts read only qaball Linux - Hardware 7 02-06-2004 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:58 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
Open Source Consulting | Domain Registration