[Chugalug] Boot Linux from a diskette?

Chad Smith chad78 at gmail.com
Tue Mar 4 04:34:42 UTC 2014


Something that is awesome, and yet scary about Linux.

"I'm sure this is crazy... but can you do ____ with Linux?"

14 different people respond with 18 different ways to do it.

*- Chad W. Smith*


On Mon, Mar 3, 2014 at 10:27 PM, <flushy at flushy.net> wrote:

> 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
>
>
>
> _______________________________________________
> Chugalug mailing list
> Chugalug at chugalug.org
> http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://chugalug.org/pipermail/chugalug/attachments/20140303/7dd79d2d/attachment.html>


More information about the Chugalug mailing list