LinuxQuestions.org
Review your favorite Linux distribution.
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 10-11-2007, 03:11 AM   #1
donkor
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
How do I use a USB device (floppy) within GRUB?


My laptop is "legacy" free, but I have a USB floppy disk drive. I need to boot from that in order to flash my BIOS, so that I can boot from USB devices. Ubuntu and Windows can both see it, but the BIOS can't boot from it. I'd like to add an entry to GRUB to boot from it and hopefully I can flash it that way. When doing fdisk -l and blkid I get the following information:

Quote:
SEC_TYPE="msdos" UUID="F0C3-BD35" TYPE="vfat"

Disk /dev/sdb: 1 MB, 1474560 bytes
3 heads, 53 sectors/track, 18 cylinders
Units = cylinders of 159 * 512 = 81408 bytes
I can mount it and read from it within Ubuntu, but I'm not sure what to put in menu.lst to boot from it. This is my basic layout:

Quote:
title USB Floppy
root /media/disk/
savedefault
makeactive
chainloader +1
This gave me a Error 11: Unrecognized device string error. I replaced /media/disk with (sd1,0) and (sd0,0) but got the error message Error 23: Error while parsing number.

I really need this to work in case something screws up, any ideas?
 
Old 10-11-2007, 04:43 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by donkor View Post
.. but the BIOS can't boot from it. I'd like to add an entry to GRUB to boot from it and hopefully I can flash it that way.
Ain't going to work - grub queries the BIOS for valid devices.
Are you unable to boot from CD and flash it that way ???.
 
Old 10-11-2007, 12:13 PM   #3
donkor
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Ain't going to work - grub queries the BIOS for valid devices.
Are you unable to boot from CD and flash it that way ???.
The laptop is "legacy free" which means no CD-rom and no floppy drive. And the manufacturer doesn't have a utility for flashing it within Windows.
 
Old 10-11-2007, 12:44 PM   #4
donkor
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by donkor View Post
The laptop is "legacy free" which means no CD-rom and no floppy drive. And the manufacturer doesn't have a utility for flashing it within Windows.
Also, it does probe it while grub is loading. It just doesn't have an option to boot from it since I don't know what to add in menu.lst.
 
Old 10-11-2007, 04:04 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by donkor View Post
The laptop is "legacy free" which means no CD-rom and no floppy drive.
I wondered what you meant by that
Quote:
And the manufacturer doesn't have a utility for flashing it within Windows.
Handy ...

If you see the the floppy being probed, try "root (fd0)". You can even do this at the grub prompt/menu. Hit <c> to get into command mode, and enter the root line then "boot".
 
Old 10-11-2007, 05:22 PM   #6
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
You could create an image of the boot floppy and used memdisk to boot that from grub.


Way this works is download memdisk you don't need anything else its basically a kind of kernel.

put memdisk into /boot
make an image of the boot disk and put it in /boot lets say its called aflash.img

ad an entry to grub into menu.lst

title Flash_floppy
kernel (hd0,0)/boot/memdisk
initrd (hd0,0)/boot/aflash.img


reboot and you should have the option to boot to the floppy disk.

Memdisk will emulate a floppy on the system. Very helpful in these situations.

http://syslinux.zytor.com/memdisk.php
 
  


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
Booting to Slackware 12, USB, Floppy, Lilo, Grub. lifeforce4 Slackware 11 07-08-2007 09:03 AM
Using a floppy disk to boot an iso from a usb device? Toxyn Linux - General 3 05-03-2007 01:47 PM
Booting with GRUB/LILO using a floppy form an ISO on a USB device? :s Toxyn Linux - Software 1 02-08-2007 08:49 AM
USB floppy block device, where? class_struggle Linux - Newbie 3 08-23-2004 11:49 AM
GRUB, USB Floppy abmhmd Slackware 2 04-23-2002 05:47 PM

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

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