[Chugalug] Boot Linux from a diskette?

flushy at flushy.net flushy at flushy.net
Tue Mar 4 04:27:49 UTC 2014


Quoting Dan Lyke <danlyke at flutterby.com>:

> On Mon, 03 Mar 2014 19:48:05 -0500

> And now is when you get to dive. Deep.


ah the days of the boot/root disk.

Basically:

# copy the kernel to a floppy image
dd bs=1k if=/boot/vmlinuz of=/tmp/floppy.img 2>&1 | tee /tmp/log.txt

# calculate the kernel blocks
awk '/ records out/ { print $1 + 1 ; }' < /tmp/log.txt  > /tmp/size.txt

# write a compressed root floppy image (ramdisk) to the img
dd bs=1k seek=$(cat /tmp/size.txt) of=/tmp/floppy.img if=root.img.gz  
bs=1k 2>/dev/null

# finally write the whole thing to the floppy
dd bs=512 of=/dev/fd0 if=/tmp/floppy.img

[end]

You can make 1992K floppies using some low level format utilities.

http://www.fdutils.linux.lu/

This project seeks to help you build root/boot disks, though it's a  
bit outdated.

http://sourceforge.net/projects/byld/

Here is a write up of how to do it manually (you'll need to create  
your own version of rdev as it's deprecated).

http://www.tldp.org/HOWTO/Bootdisk-HOWTO/x703.html

--b




More information about the Chugalug mailing list