文章摘要
FLOPPINUX是一个可以运行在单张软盘上的嵌入式Linux系统,2025年发布了0.3.1版本更新。该项目始于2021年,此次更新带来了最新内核和持久存储等功能,保持了在极小存储空间运行Linux的特色。
文章总结
单张软盘上的嵌入式Linux系统:FLOPPINUX 2025版
项目概览
FLOPPINUX是一个可运行在单张1.44MB软盘上的嵌入式Linux发行版,2025年推出0.3.1版本。该系统基于Linux 6.14.11内核和BusyBox 1.36.1工具集,支持从Intel 486DX开始的32位x86架构设备。
核心特性
- 完整功能:包含Vi编辑器、基础文件操作命令和脚本支持
- 持久存储:保留264KB用户可用空间
- 广泛兼容:支持真实硬件和模拟器运行
- 极简配置:内核仅881KB,工具集137KB
开发环境搭建
基础准备:
- 使用Omarchy Linux(基于Arch的64位系统)
- 安装编译工具链:
ncurses bc flex bison syslinux cpio - 配置i486交叉编译器
内核定制:
- 选择6.14.11内核(最后一个支持486的版本)
- 关键配置项:
- 处理器家族设为486DX
- 启用软盘驱动/RAM磁盘支持
- 包含MSDOS文件系统和基础伪文件系统
工具集构建:
- 使用BusyBox替代GNU工具
- 精选功能模块(文件操作、系统工具、Vi编辑器等)
- 静态编译以消除依赖
文件系统构建
- 创建最小化目录结构(/dev, /proc, /sys等)
- 编写初始化脚本:
- 挂载关键文件系统
- 启用设备节点
- 绑定软盘存储空间到/home
- 最终压缩为rootfs.cpio.xz(137KB)
镜像制作
- 创建1.44MB空白镜像
- 格式化为FAT12并安装SYSLINUX引导
- 集成内核、文件系统和配置文件
- 添加示例文档(hello.txt)
实际应用
- 测试命令:
qemu-system-i386 -fda floppinux.img -m 20M -cpu 486 - 实体软盘写入警告:需谨慎指定设备节点
- 可用工具包括文件操作、系统监控和Vi编辑器
技术参数
| 组件 | 大小 | |------------|---------| | 内核 | 881KB | | 工具集 | 137KB | | 剩余空间 | 253KB |
这个项目既是复古计算的有趣实践,也是学习Linux系统构建的绝佳教程。开发者鼓励用户基于此框架进行个性化修改。
评论总结
以下是评论内容的总结:
怀旧与回忆 - 多位用户怀念软盘时代的声音和使用体验,如加载操作系统时的期待与喜悦。 - "I miss the floppy disk sound and the anticipation then joy of finally loading into the OS."(评论1) - "I remember the QNX Demo on a 1.44 MB floppy disk... That was 1999 and I never saw anything like that afterwards."(评论3)
技术讨论 - 有用户探讨了在软盘上实现持久存储的技术挑战和替代方案,如日志结构文件系统。 - "Given the 253KiB free space constraint, I wonder if a better approach would be treating the free space as a raw block device..."(评论6) - "Has anyone out there experimented with appending a tar archive to the end of the initramfs image inplace for persistence..."(评论6)
软盘的历史与术语 - 用户讨论了软盘的名称和类型差异,如3.5英寸盘的别称。 - "We used to call the 1.44MB (3.5inch) disk stiffies, since they are rigid..."(评论10) - "The terms floppy and diskette are used as synonyms today..."(评论11)
实用性与现代兼容性 - 部分用户质疑项目的实用性,认为现代计算机已不再支持软驱,相关知识过于冷门。 - "No current computer has a floppy disk drive anymore... Is this pure nostalgia?"(评论12) - "I thought Linux dropped driver support for real floppy drives..."(评论8)
旧硬件限制 - 用户分享了使用旧硬件的实际困难,如软件支持和驱动问题。 - "The two main problems I ran into were 1) software support at the application layer, and 2) video driver support."(评论7) - "Computers have been powerful enough for productivity tasks for 20 years, excepting browser-based software."(评论7)
实际应用案例 - 有用户提到过去使用软盘和旧硬件搭建路由器的经历。 - "25 years ago i used floppyfw to setup small router on 486 with 12 MB ram..."(评论13) - "I was making routers our of old PCs... back in 2000 with floppies and CoyoteLinux."(评论14)