Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-02-2009, 08:55 PM   #1
Senior Member
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
create bootable floppy image with only kernel and initrd

I'd like to make a bootable floppy image (2.88MB) with a kernel and an initrd. This image will never exist on a floppy disk and hopefully it won't need to mount itself. In other words, I'd like to pretend like this image is /dev/hda1 and install nothing but the kernel, initrd, and lilo (or whatever will make it boot the kernel.) The only thing the initrd will do is load the sdhci module and kexec a partition on an SD card. Unfortunately the computer won't boot the SD card itself; only a floppy image on a FAT16 partition on an SD card (Toshiba laptop.) Were sdhci available as a compiled-in kernel option I'd just replace the kernel in syslinux. Maybe syslinux can load an initrd for its own kernel? That would definitely save some time.

I plan to use mkinitrd and edit the linuxrc so that instead of it pivoting to the root partition it mounts the SD partition and does the kexec. Really the only holdup is not being able to figure out how to boot a kernel+initrd on a floppy.

So far I've tried this:
  • Created an empty image file and looped it
  • Tried to partition the image (problem rereading table after write)
  • Tried installing lilo on the image (bad device type)
Kevin Barry
Old 04-02-2009, 09:26 PM   #2
Senior Member
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Original Poster
Rep: Reputation: Disabled
This isn't an issue anymore. I didn't solve it; the requirement went away. Thanks.
Kevin Barry


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 create a CD bootable ISO image for 2.6.16 kernel vb_sridevi Linux - Newbie 4 06-25-2008 01:47 PM
creating bootable image floppy nikhil_shindepatil Linux - Newbie 3 09-06-2007 12:59 PM
Trying to create PXE server and can't mount initrd image Nylex Slackware 6 07-08-2007 01:10 PM
How to create bootable partition image to burn hs.chauhan Linux - General 16 01-31-2007 09:52 PM
Kernel image for syslinux bootable floppy??? the_rydster Linux - General 1 02-22-2004 01:55 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration