5 ms·
An Embedded Linux on a Single Floppy
- littlecranky67 4mo agoI remember around 2002 running my home router without any hdd on fli4l - a single floppy linux router distribution. I slept in the same room as the router was, hence I wanted a solution without a noisy hdd from that era.
- elevation 4mo agoWas the floppy quieter than an HD?
- hackernudes 4mo agoProbably only used the floppy to boot into a ramdisk.
- littlecranky67 4mo agoExactly.
- ErroneousBosh 4mo agoWhen it wasn't in use, yes. Even when it was the noise it made was a lot softer than the dentist's drill of a hard disk spinning up.
- ForOldHack 4mo agoAt the same time, I was running a home router without any HDD on LRP, Linux Router Project, which was a distribution from Swansea Linux, and was a floppy image, that decompressed into RAM, and then chrood to the RAM image. Really nifty, except for the 486 machine had a Pentium Overdrive, which was vulnerable to F00F, and we got owned... only to reboot again, and back to our normal image. Since it had no hard disk, and no monitor, it was quiet, and used little power.
- s0rce 4mo agoI used Freesco another single floppy distribution around that time. I tihnk I had in on old pentium 66 MHz
- d3Xt3r 4mo agoThere was also tomsrtbt[1], which was a staple in my "rescue" floppy collection. Along with the QNX floppy[2], which came in super handy when using a cyber café or a friend's PC, and you wanted to avoid all the keyloggers and malware. [1] https://en.wikipedia.org/wiki/Tomsrtbt https://en.wikipedia.org/wiki/Tomsrtbt [2] http://toastytech.com/guis/qnxdemo.html http://toastytech.com/guis/qnxdemo.html
- dredmorbius 4mo agoTrinux was another such utility. It spanned multiple floppies, but booted to RAM and could effectively run from one. The additional disks were for additional tools/utilities. Still apparently available on Sourceforge.net, though last updated in 2013: <https://sourceforge.net/projects/trinux/ https://sourceforge.net/projects/trinux/>
- queenkjuul 4mo agoEvery time i pull out my tomsrtbt floppy i try to pronounce tomsrtbt in my head and it's always different
- doubled112 4mo agoTom’s sherbert tastes delicious, I’m sure, but it’s a strange name for a Linux distro.
- frrlpp 4mo agoFreesco router floppy disk distro in 386 with 2MB of RAM and no hard disk. You could pull the floppy for a secure read only router.
- a96 4mo agoI remember some people booting firewalls off CD-R's. Burn a new one when it needed an update. Booting with no writable media at all, truly an immutable distro.
- znpy 4mo ago“Floppydistros” were a thing back in the day. When i was 12 or 13 in the very early 2000s i tried to download something called “coyote linux” (from sourceforge iirc) and boot it on an internet cafe pc because i really wanted to try this linux thing. But i was very nooby and of course it mostly didn’t go anywhere. I have vague memories of maybe getting it to boot, getting a shell and then not know what to do with it. Fun times :)
- dddw 4mo agoI remember qnx
- smilespray 4mo agoFull network stack and a web server on a 1.44MB floppy!
- d3Xt3r 4mo agoAnd a Javascript capable HTML4 browser, and a decent-looking and performant GUI desktop too. It's a shame QNX (desktop) died, used to be way more performant and stable compared to Linux or anything else back in the day.
- userbinator 4mo agoThe problem is it wasn't really compatible with anything else, at a time when DOS/Windows and Unix-likes were the most common.
- smilespray 4mo agoIt was compatible with the radio and crypto equipment aboard my coast guard ship!
- w84death 4mo agoIsn't it still alive in automobile/infodesks?
- EvanAnderson 4mo agoI guess I made a floppy-based "distribution" of Linux back in the late 90s without even realizing it. I built it to do network-based disk imaging of fleets of Windows 9X PCs in a K12 school district. I used udpcast[0] to receive the image of a FAT32 volume (as a raw dd of the source drive gzip'd) and would stream it in realtime (decompressing and writing) to the hard disk drive on the clients. I would run the udpcast sender on a "gold master" PC and stream its drive out to as many clients as I wanted (over 10Base-T Ethernet at the time, but later over faster networks). Since the sending PC's CPU was typically the bottleneck the receiving PCs never had problems falling behind receiving and writing the stream. The most time consuming part of this "generation" of the tool was writing all zeros to the free space on the "gold master" computer to minimize transferring "slack" space (since I was just using dd and not a filesystem-aware tool). I'd mount up the drive in a Linux distro and dd from /dev/zero to a dummy file on the volume until it was full, then delete the dummy file. (One of Jeff's axioms of computing in play: Never underestimate the power of stupid technology.) I updated the "distribution" in the early 2000's to support NTFS using the various ntfsprogs tools (ntfsclone, ntfsresize) to support imaging Windows XP machines. It was vastly more efficient than the dd method because it only transferred the used blocks of the filesystem. Since you could make bootable CDs (and later DVDs) using floppy diskette images as the "boot media" I updated the "distribution" again to support mounting a local optical disk and streaming the image off a bzip2'd ntfsclone image. I even added some silly multi-disk "spanning" capability for images >4.7GB. (It was very janky and involved recombining the image chunks in a temporary partition on the local drive, then imaging the machine from that local copy. The I/O contention of reading / writing from the same drive made that very, very slow.) Finally, when PXE-capable NICs were more common, I would PXE boot the "distribution" (because PXE easily supported booting floppy disk images) and modified it to pull from HTTP, local optical drive, or udpcast. I gave up when AHCI became common because I couldn't keep up with making the "modern" Linux kernels work with the various models of PCs I was using. I moved over to a Windows PE-based tool in about 2006 - 2007. [0] http://www.udpcast.linux.lu/ http://www.udpcast.linux.lu/
- muppetman 4mo agoI wonder why it needs 20MB minimum. Back in the day linux 2.0.33 would boot happily into a GUI and everything on an 8MB machine. Or maybe I misremember... I know my machine at the time got upgraded to 24MB so maybe it was that machine I was running. Anyway it's neat this can still be done.
- walrus01 4mo agoI'm going to guess from the size of the kernel, since for distribution it has to be a fairly 'generic' kernel with just about every driver built into it. If one were to compile a custom 6.14 kernel for a specific hardware target with only 1 model of NIC (3c509b for example), etc, it could be a lot smaller.
- Wowfunhappy 4mo agoWhy does the number of drivers compiled in affect memory use? Shouldn't the kernel just load what it needs and ignore the rest?
- nycerrrrrrrrrr 4mo agoIf it's compiled into the kernel it'll occupy memory regardless if it's being used. If it's built as a kernel module then it doesn't occupy memory until loaded.
- kjs3 4mo agoI think you could run 2.0 + X11 in 4MB in a pinch. I know I ran 2.2 + X11 in 5MB on a cast-off i386SX; tight but useable. If I recall right, 2.0 & 2.2 would run in 2MB without X11 (but a GUI like MGR might fit). 8MB was pretty good and 16MB was positively spacious. Edit: Add: 2MB/4MB boot with a stripped down kernel, not generic.
- queenkjuul 4mo agoI got 2.2 with BusyBox to consume ~2200K at boot after a lot of fiddling. Left me plenty of user space for doing command line work on my 4MB 386; i mentioned in another comment though, X was only really useful as a remote terminal in 4MB, to run a local program via X pretty much required 8MB. But pretty sure i got Doom running in X on 8MB... I did all these experiments a year or two ago. I lost most of my work due to a hard drive failure (the one in my workstation, not the 386 lol) but all the surviving work is on my github: https://github.com/queenkjuul/basiclinux-lcars https://github.com/queenkjuul/basiclinux-lcars
- mococa 4mo agoI used to use brazilfw on my server, it was only a single floppy
- Crunchified 4mo agoI always had a muLinux disk handy in my computer toolbox. Most of its shell commands came from a simple script ingeniously written by the distro's author. It's been around since the mid-90s, I'd guess. https://micheleandreoli.org/public/Software/mulinux/mu/html/readme.html https://micheleandreoli.org/public/Software/mulinux/mu/html/...
- st_goliath 4mo agoThis project has a website that was previously posted on HN[1], I (unsuccessfully) tried to boot it on an actual 486 machine[2], as the site boasts about supporting that. The version of the SYSLINUX bootloader that it uses had a bug in the fallback path if E820 memory information is not available from the BIOS, and the BIOS on my machine indeed does not support it, or E801 for that matter[3]. I have not gotten around to further testing and fixing the actual issue in SYSLINUX yet (also one of the RAM sticks has sadly developed a parity issue, so I'm stuck at 16M for now). However, I did manage to dig up a newer 486 machine[4][5]. From some testing just this weekend, the BIOS on that one does support INT 15h, AX=E820. I'll have to dig up more memory, but I'm looking forward to another round of trying to get this to boot on the actual hardware, once again :-) [1] https://news.ycombinator.com/item?id=46866544 https://news.ycombinator.com/item?id=46866544 [2] https://news.ycombinator.com/item?id=46873814 https://news.ycombinator.com/item?id=46873814 [3] https://imgur.com/a/GCG9jO7 https://imgur.com/a/GCG9jO7 [4] https://imgur.com/a/am486dx4-retrotank-VUOTahf https://imgur.com/a/am486dx4-retrotank-VUOTahf [5] https://theretroweb.com/motherboards/s/zida-4dps https://theretroweb.com/motherboards/s/zida-4dps
- nycerrrrrrrrrr 4mo agoSee also https://distro.ibiblio.org/baslinux/ https://distro.ibiblio.org/baslinux/, http://www.tinycorelinux.net/ http://www.tinycorelinux.net/
- queenkjuul 4mo agoI built a somewhat updated baslin for CD-equipped systems https://github.com/queenkjuul/basiclinux-lcars https://github.com/queenkjuul/basiclinux-lcars
- a96 4mo agoAww, it wasn't https://en.wikipedia.org/wiki/LCARS https://en.wikipedia.org/wiki/LCARS (though thankfully it wasn't the b-word either).
- h4kunamata 4mo ago2000 Coyote Linux keeping a whole university network going while running from a floppy disk joined the chat. The idea is cool but anything nowadays has USB ports, there is no suck solution to run from those devices.
- buttocks 4mo agoI wonder why the 486 DX is supported but not the SX. How is the math coprocessing unit necessary for kernel and basic system tools?
- JSR_FDED 4mo agoThe distro would have to include FP emulation software for the 486 SX, which is a big chunk of code if a floppy disk is all you have to work with. Also, some system tools need FP support (like df).
- w84death 4mo agoexactly that: too complicated. also I got 486 DX2/66 as my first PC so I set that as a goal. Then checked how lower can I go. Also I only have 486 DX4 now to test on real hardware.
- iberator 4mo agoas far i remembered SX emulation adds 37kb to the kernel
- bandrami 4mo agoThis is straining my geriatric memory, but I'm pretty sure my first install of Slackware in 1994 involved 18 floppy disks
- a96 4mo agoIt was something like that. I can't recall if my first was Yggdrasil or SLS/Slack but it was a stack of floppies in a folder.
- aa-jv 4mo agoYggdrasil started off as an 18+ floppy distribution, but it was the first distro to allow booting a full rootfs from a CD .. and man, was that ever amazing back in 1994! Was worth the upgrades to turn my 486 into a functioning X server ..
- bandrami 4mo agoI'm pretty sure I specifically remember I had two disks in my dorm room, and had to buy a pack of 16 from Radio Shack or somewhere.
- w84death 4mo agoThanks again for being featured here! Nice to read all of those comments. The project goal is more to learn how to make your own Linux distribution than to fit as much as possible on a floppy. It is fun to have a fully working OS at the end of this learning experience. Floppies are easy to use and just cool :) There are a lot of better suited distributions for size and memory usage. What makes FLOPPINUX stand out is the complete tutorial to follow and then make your own changes on top of it. Learn and have fun!