LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-02-2009, 09:55 PM   #1
ta0kira
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)
Thanks.
Kevin Barry
 
Old 04-02-2009, 10:26 PM   #2
ta0kira
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
 
  


Reply


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


All times are GMT -5. The time now is 08:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration