用于通过 SPI 访问的 SD 文件系统
我找到了这个网站: http://www.pjrc.com/tech/8051 /ide/fat32.html 基本上它是对 FAT32 文件系统的一个很好的概述。 到目前为止,它已被证明非常容易理解,
我想知道是否有人知道不同 Linux 文件系统的类似文档/操作方法,我对它们如何在驱动器上存储数据感兴趣!
我在 google 上对 etx3 规范等进行了一些搜索,但没有找到更多信息,它基本上是带有日志功能的 etx2...等等,而不是关于数据如何组织以及如何访问的描述
。感谢您提供的所有帮助。
I found this site: http://www.pjrc.com/tech/8051/ide/fat32.html
Basically it's a great overview of the FAT32 filesystem.
It so far has proven to be very easy to understand,
I was wondering if anyone out there knew of any similar documents/how-to's for different Linux Filesystems, I am interested in how they store data on drives!
I did a few searches from google on etx3 specifications and whatnot but am not finding much more then, it's basically etx2 with journaling...etc, not descriptions of how the data is organized and how to access
Thank you for any and all help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个好的起点是获取内核源代码,
make menuconfig
并进入“文件系统”菜单。有一些非常好的微控制器文件系统 - CROMFS 和 CRAMFS - 非常小的压缩只读 (CROM) 或非持久读写 (CRAM) 文件系统,需要特殊工具来创建,但提供非常小的内存和磁盘占用空间,Fossil提供 RW 但不提供目录层次结构(非常适合与 CROMFS 结合的数据存储),以及一些专门用于闪存介质的更高级的文件系统,例如 JFFS 或 YAFFS。您还可以研究 UnionFS,它允许您覆盖两个文件系统,例如基于 ROM 的操作系统,其中包含基于闪存的覆盖片段和基于 RAM 的临时版本。还有很多其他文件系统。如果您感兴趣,文档/文件系统中有更多相关信息,如果您想了解更多信息,请阅读源代码。
FAT 是基于闪存的非磨损保护设备的杀手,因为文件分配表会一遍又一遍地写入同一位置。 EXT3 也不太适合闪存。
A good starting point is to grab the kernel sources,
make menuconfig
and enter the Filesystems menu. There are some very nice filesystems for microcontrollers - CROMFS and CRAMFS - very small compressed read-only (CROM) or non-persistent read-write(CRAM) filesystems that require special tools to create but provide really small memory and disk footprint, Fossil which provides RW but no directory hierarchy (perfect for data storage combined with CROMFS), several more advanced filesystems intended specifically for flash media, like JFFS or YAFFS. You may also look into UnionFS which allows you to overlay two filesystems, say a ROM-based OS with Flash-based overwritten pieces and RAM-based temporary versions.There is a bunch of other filesystems. If any catches your fancy, there's more about it in Documentation/Filesystems, and then if you want to know more, read the sources.
FAT is a murderer for flash-based non-wear-protected devices, as file allocation table is written to the same location over and over. EXT3 isn't very good for flash too.