Skip to main content
Home
The Baheyeldin Dynasty
The journey for wisdom starts with knowledge
  • Home
  • About
  • Site Map
  • Contact

Linux: How to get Mandrake 10.0 to boot from floppy

  1. Home

By Khalid on 2004/05/30 - 14:45, last updated 2007/06/01 - 12:29

I recently upgraded one of the five machines at home from Mandrake 9.1 to Mandrake 10.0 Official Download. This machine is a sluggish Celeron 300 used by my daughter, Sarah.

The upgrade went fine, although it was slow (this machine is not the fastest thing around).

Background

This machine has a BIOS quirk in it. It auto detects the hard disk correctly (4 GB), but saves its info in the BIOS as 495MB.

Once Linux is booted, this is not an issue though, because Linux does its own mapping overriding the BIOS settings. However, getting Linux to boot from that disk is a challenge, since /boot is not on a partition of its own, grub cannot load kernel, saying cylinder is not accessible.

The "proper" solution for this is to repartition the drive, and make a small (say 10MB) partition and make it /boot. However, since there is data already on this disk, I did not want to go through all this trouble, wasting time and effort.

Mandrake 9.1 Solution

I tried to make it work the same way that Mandrake 9.1, that is, by having a syslinux floppy disk to boot from.

The normal way to create a syslinux floppy is by using the following commands:

# Format a floppy
fdformat /dev/fd0

# Create an MS DOS file system on it
mkfs -t vfat /dev/fd0

# Make it bootable using syslinyx
syslinux -s /dev/fd0

# Prepare to copy by doing a mount first
mount /dev/fd0 /mnt/floppy

# Copy the kernel
cp /boot/vmlinuz /mnt/floppy

# Copy the the initrd image
cp /boot/initrd.img /mnt/floppy

# Create a syslinux.cfg file. Change hdb5 to your appropriate disk and partition
# that has Linux on it
cat > /mnt/floppy/syslinux.cfg
default linux
prompt 1
timeout 10
label linux
kernel vmlinuz
append root=/dev/hdb5 initrd=initrd.img quiet devfs=mount acpi=off

# Hit Ctrl-D to create the file after you type the above

# Unmount
umount /mnt/floppy

Your floppy is now ready.

Mandrake 10.0 Challenge

This worked fine on Mandrake 9.1, and any other distribution that uses 2.4 kernels. With Mandrake 10.0, or any other distribution with 2.6 kernel, there is a serious issue, which is that the kernel and the initrd image do not fit on a 3.5" 1.44 MB floppy!

After evaluating several solutions, I decided that repartitioning was not worth the trouble, since it is a reinstall, and will take a lot of time. I found a neat trick that will make the files fit on the floppy: formatting it as a 1.68 MB or 1.72MB instead of 1.44 MB, by using the special device file /dev/fd0u1680 (1.68MB) or /dev/fd0u1722 (1.72 MB).

This can be done using the following commands, even if you are booting from the rescue mode of the first CD:

# Format the floppy with a higher density of 1.72 MB
fdformat /dev/fd0u1722
# Create a file system
mkfs -t vfat /dev/fd0u1722
# Make it a syslinux disk
syslinux -s /dev/fd0u1722
# Mount the floppy
mount /dev/fd0 /mnt/floppy
# Copy the kernel
cp /boot/vmlinuz /mnt/floppy
# Copy the the initrd image
cp /boot/initrd.img /mnt/floppy
# Create a syslinux.cfg, change hdb5 to your correct disk
cat > /mnt/floppy/syslinux.cfg
default linuxprompt 1
timeout 10
label linux
kernel vmlinuz
append root=/dev/hdb5 initrd=initrd.img quiet devfs=mount acpi=off
# Hit Ctrl-D to create the file after you type the above
# Unmount the floppy
umount /mnt/floppy

If the command syslinux does not work, you can try using the syslinux-old command instead.

Now the PC boots from the floppy just fine. A bit slow, but does the trick.

Adding More Features

You optionally add other menu entries so you can do different things, for example, boot Linux in multi user text mode (runlevel 3), using a syslinux.cfg file that contains the following:

default gui
prompt 1
timeout 100
display menu.txt
label gui
kernel vmlinuz
append root=/dev/hdb5 initrd=initrd.img quiet devfs=mount hdc=ide-scsi acpi=off

label text
kernel vmlinuz
append root=/dev/hdb5 initrd=initrd.img quiet devfs=mount hdc=ide-scsi acpi=off 3

label failsafe
kernel vmlinuz
append root=/dev/hdb5 initrd=initrd.img quiet failsafe devfs=nomount acpi=off

The menu.txt file is a plain text file that contains instructions to the user, for example:

Type 'gui' to boot in X11 mode, 'text' to boot in text mode, or 'failsafe' to boot in failsafe mode.

Feedback

It is always nice to get feedback that something you wrote did help someone out there.

Richard Fearon writes from Scotland saying:

Thanks for your excellent contribution, which of the many I tried was the only one to work. It hung on the graphics, but by adding vga=788 to syslinux.cfg - worked fast and well!

My system is an ancient HP upgraded tp 1.8Ghz with dual booting via Grub to Fedora Core 2 and Mandrake 10 Community download version.

Thanks again.

Daniel Sadoc write from Brazil saying:

Great article! I've succeeded creating the boot floppy disk after reading your notes.

Contents: 
Linux
  • Add comment

Comments

lussy59 (not verified)

lussy

Fri, 2007/06/01 - 11:58

thanks

  • reply

Current

Pandemic

  • COVID-19
  • Coronavirus

Search

Site map

Contents

  • Family
    • Khalid
    • Ancestry
    • Extended
  • Friends
  • Nokat نكت
  • Writings
    • Cooking
    • Culture
    • Science
    • History
    • Linguistics
    • Media
    • Literature
    • Politics
    • Humor
    • Terrorism
    • Business
    • Philosophy
    • Religion
    • Children
  • Technology
    • Linux
    • Arabization
    • Drupal
      • Association
    • Software
    • Internet
    • Technology in Society
    • Digital Archeology
    • NCR History
    • MidEast Internet
    • Programming
    • Saudi ISPs
    • Miscellaneous
  • Places
    • Canada
      • Weather
    • Egypt
      • Cuisine
      • Alexandria
      • E.G.C.
    • USA
    • Saudi Arabia
  • Interests
    • Astronomy
    • Fishing
    • Photography
    • Snorkeling
    • Nature
    • Photomicroscopy
  • Miscellany

In Depth

  • al-Hakim bi Amr Allah: Fatimid Caliph of Egypt الحاكم بأمر الله
  • Alexandria, Egypt
  • Arabic on the Internet
  • Articles on the history of Muslims and Arabs in the Iberian Peninsula تاريخ المسلمين و العرب في الأند
  • DIY GOTO Telescope Controller With Autoguiding and Periodic Error Correction
  • E.G.C. English Girls College in Alexandria, Egypt
  • Egyptian Cuisine, Food and Recipes مأكولات مصرية
  • George Saliba: Seeking the Origins of Modern Science?
  • Internet Scams and Fraud
  • Mistaken for an Arab or Muslim: Absurdities of being a victim in the War on Terror
  • Mistaken Identity: How some people confuse my site for others
  • One People's Terrorist Is Another People's Freedom Fighter
  • Overview of Google's Technologies
  • Photomicroscopy
  • Pseudoscience: Lots of it around ...
  • Resources for using Google Adsense with Drupal
  • Rockwood Conservation Area, Southern Ontario
  • Selected Symbolic Novels And Movies
  • Snorkeling the Red Sea near Jeddah
  • Updates and Thoughts on the Egyptian Revolution of 2011

Recent Content

Most recent articles on the site.

  • Origin Of COVID-19: Natural Spillover, Lab Leak Or Biological Weapon?
  • Kamal Salibi and the "Israel from Yemen" theory
  • How To Upgrade HomeAssistant Core In A Python Venv Using uv
  • Ancestry - Paternal Side
  • Review of Wait Water Saver For Whole House Humidifiers
more

Most Comments

Most commented on articles ...

  • Another scam via Craigslist: offering more than asking price
  • Warning to female tourists thinking of marrying Egyptians
  • Craigslist classified for used car: Cheque fraud scam
  • Winning the lottery scam email: World Cup South African lottery
  • Email Scam: BMW 5 Series car and lottery winning
more

About Khalid

Various little bits of information ...

  • Khalid Baheyeldin: brief biography
  • Presentations and Talks
  • Youtube Videos
  • GitHub Projects
  • Drupal.org Profile
  • Astrophotography @ Flickr

Sponsored Links

Your Link Ad Here

Tags

Android Mobile Ubuntu Sony OnStep OpenWRT Router Ericsson COVID-19 Rogers Coronavirus Arabic Kubuntu Home Assistant GSM Telescope tablet Spectrum Scam Python 419 Laptop Firefox DIY CPU Conspiracy Comet Balkanization backup App
More

© Copyright 1999-2025 The Baheyeldin Dynasty. All rights reserved.
You can use our content under the Terms of Use.
Please read our privacy policy before you post any information on this site.
All posted articles and comments are copyright by their owner, and reflect their own views and opinions, which may not necessarily be consistent with the views and opinions of the owners of The Baheyeldin Dynasty.

Web site developed by 2bits.com Inc.