[Chugalug] Boot Linux from a diskette?

William Roush william.roush at roushtech.net
Tue Mar 4 22:28:34 UTC 2014


Yeah, especially considering this is "just shove dd at it".

William Roush
william.roush at roushtech.net
423-463-0592

http://www.roushtech.net/blog/


On 3/3/2014 11:34 PM, Chad Smith wrote:
> 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 
> <mailto:flushy at flushy.net>> wrote:
>
>     Quoting Dan Lyke <danlyke at flutterby.com
>     <mailto: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 <mailto:Chugalug at chugalug.org>
>     http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
>
>
>
>
> _______________________________________________
> 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/20140304/9d20b833/attachment.html>


More information about the Chugalug mailing list