Fedora Linux Support Community & Resources Center
Old 13th April 2011, 06:43 PM
JClosed Offline
Registered User
Join Date: Sep 2010
Posts: 46
Replace boot floppy with USB stick

I have been looking for an answer, but not find any searching the web. So - I hope there are some people here that can help me.

I going to re-install Fedora 14 and several other OS-es on a multi boot system.

Now - my normal procedure is to install fedora 14 last and use the grub boot loader to load the other OS. As I use a hard disk to regularly install an experimental OS I keep my grub boot on a back-up floppy. The installation is done (as root) in this way:

modprobe floppy
fdformat /dev/fd0
mke2fs /dev/fd0
mount -t ext2 /dev/fd0 /mnt/floppy
grub-install --root-directory=/mnt/floppy '(fd0)'
cp /boot/grub/grub.conf /mnt/floppy/boot/grub/grub.conf
umount /mnt/floppy

This works great. If your mbr is overwritten by another OS you can use the boot floppy to get into Fedora - no problem.

However - my new system has no longer a floppy disk drive (no connection the motherboard). I wonder if can use a USB stick in stead of a floppy to boot Fedora if my mbr is overwritten. I only have no clue how to do that. The above procedure can obviously not be used, because a stick is no floppy.

Can anyone give me the good procedure to do this. Please notice - I am NOT asking for a full Fedora on the stick!!! I only want t use the stick to boot my hard drive based Fedora if the mbr is overwritten.

Thanks in advance.
Reply With Quote
Old 13th April 2011, 07:16 PM
JEO Offline
Registered User
Join Date: Jan 2006
Posts: 2,786
Re: Replace boot floppy with USB stick

There is a drive you can buy called an external usb floppy drive, so that's one idea.

The other idea is that you could do the same thing with a usb flash drive if you are willing to reformat it as ext2 (or 3 or 4) like you did the floppy disk. Most motherboard BIOSes will boot a usb flash drive if it has a partition table on it and and active primary partition. Most USB flash drives come formatted with a partition table and one primary fat or fat32 partition.

Last edited by JEO; 13th April 2011 at 07:18 PM.
Reply With Quote
Old 13th April 2011, 07:38 PM
JClosed Offline
Registered User
Join Date: Sep 2010
Posts: 46
Re: Replace boot floppy with USB stick

That was what I was trying to do. I formatted the USB stick as ext2. Then mounted the stick just like I did with the floppy.

However - when I tried the to install grub using grub-install I get:

Probing devices to guess BIOS drives. This may take a long time.
Format of install_device not recognized.

And then the install stopped. I tried to write something on the USB stick and that works without a problem. The stick is recognised as a ext2 file device, and it has the boot flag set. I have no idea why the grub-install command says it cannot recognise the format of the install device (USB stick) because it's format is clearly ext2.
Reply With Quote
Old 13th April 2011, 10:57 PM
JEO Offline
Registered User
Join Date: Jan 2006
Posts: 2,786
Re: Replace boot floppy with USB stick

Could it be that you formatted it as a single ext2 volume without using a partition table?

An example would be

mkfs.ext2 /dev/sdc

That would probably give grub-install grief because there is no partition table or master boot record.

An example of formatting it using a partition table:

mkfs.ext2 /dev/sdc1

Of course if you don't have a partition table you would need to create one using gparted or whatever first.

---------- Post added at 02:57 PM ---------- Previous post was at 02:52 PM ----------

I would try it without using the grub-install script:

Lets say the usb stick is at /dev/sdc

Invoke the grub shell

su -
grub --device-map=/dev/null
device (hd0) /dev/sdc
root (hd0,0)
setup (hd0)

(because I use dmraid the grub-install script fails so often that I never use it anymore)
Reply With Quote
Old 14th April 2011, 12:40 AM
SiliconSlick Offline
Registered User
Join Date: Aug 2009
Location: College Station, TX
Posts: 501
Re: Replace boot floppy with USB stick

Assuming you don't care about the data on the USB Flash key, you can try something like:

mkbootdisk --device /dev/sdX --size 20000 `uname -r`
where /dev/sdX is your USB key (BE CAREFUL!). (--size is a rough estimate which works with the latest i686 FC14 kernel here... adjust as needed)

That seems to work here. Although I didn't actually wax my MBR to test it, if I edit the syslinux.cfg that is created on the USB key and removed 'rhgb quiet' then I get a gloriously verbose bootup with all the gory details (which might be useful if you have waxed your HD MBR and there are problems), which is not my standard bootup on my HD (so I know it is booting from there USB in my testing).

Be sure to use an old/small (approx. 20MB in this example) Flash since, as a floppy, it doesn't have a partition table (AFAICT). The --iso option of mkbootdisk might make it possible to use the rest of the drive I but haven't tested it. If you do, let us know how it goes (and/or if it works at all).

Reply With Quote
Old 14th April 2011, 02:46 AM
stoat Offline
Registered User
Join Date: Jun 2006
Posts: 7,550
Re: Replace boot floppy with USB stick

Originally Posted by JClosed

This works great. If your mbr is overwritten by another OS you can use the boot floppy to get into Fedora - no problem.
Some other ideas to consider for that when there is no floppy drive...

If another system's GRUB gets written into the MBR, you can boot it, stop its GRUB at the boot menu, press "c" to get the GRUB shell prompt (grub>), then boot Fedora with simple GRUB shell commands. Even the GRUB 2 boot menus still do that. Once Fedora is running, it's another simple matter to re-install its GRUB boot loader with grub-install or the usual GRUB shell commands.

Make a GRUB boot CD to boot the machine to a grub> prompt and boot Fedora with GRUB shell commands. Or, you can add Fedora's grub.conf file to the project to make it boot straight into the Fedora boot menu. Then re-install the GRUB boot loader.

Download and create a Super Grub Disk. Not only can its boot menu be stopped at the useful grub> prompt, the Super Grub Disk can emergency boot Linux and Windows systems (if they are still capable of being booted). It does other things, too, such as re-install GRUB and restore an "MS-like" syslinux boot loader to the MBR to make Windows boot from BIOS again. It comes in versions for Legacy GRUB, GRUB 2, floppy, CD, and USB. I think everybody using GRUB should possess one of these anyway.
Reply With Quote
Old 14th April 2011, 02:12 PM
JClosed Offline
Registered User
Join Date: Sep 2010
Posts: 46
Re: Replace boot floppy with USB stick

Thanks a lot...

I will take a look at the Super Grub Disk. Looks nice.
The command SiliconSlick gave me worked perfect. And the advise i got here gives enough alternatives to feel comfortable.

Wow - after so many years it will feel strange to have a computer without a floppy disk drive. I can remember the time the floppy was the ONLY device to boot a computer. Hard disks where way to expensive at that time. Even a floppy disk drive was not cheap at all. At that time I was using a BBC-B computer, and all programs and OS where stored in PROM's When you bought a program it was delivered on a set of ROM's, you have to install on your main board.

Times have surely changed now... ;-)
Reply With Quote

boot, floppy, replace, stick, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 10 to replace dual boot XP & F9 help astrobob Installation, Upgrades and Live Media 26 15th February 2009 12:14 AM
Feodra 9 will not boot farther than the command prompt after compiz --replace Caleb Burns Using Fedora 3 19th August 2008 09:10 PM
broken boot partition. how to replace it? saibaggins Using Fedora 8 20th October 2005 11:20 AM
usb stick and floppy problems bunsen Hardware & Laptops 3 5th August 2005 05:33 PM
Sony Floppy Drive/Memory Stick combo JGreen6883 Hardware & Laptops 0 28th April 2005 11:34 PM

Current GMT-time: 23:02 (Tuesday, 27-01-2015)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Geri Route(sector-8,9,10,11) Travel Photos on Instagram - Rocky Mountain Hotel Petra!! - Aluthgama - Bentota Instagram Photos - Cala Llenya Resort Ibiza Photos on Instagram - Alegra Barcelona Photos on Instagram - Sacra di San Michele Travel Photos