如何在硬盘上创建Filesystem [英] How Filesystem is created on harddisk

查看:159
本文介绍了如何在硬盘上创建Filesystem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天有很多文件系统可供选择,例如FAT32,NTFS,ext3,ext4,Brtfs,jfs,UBIfs等。据我所知,硬盘中文件的组织方式(我的意思是数据结构)是上面提到的文件系统不同。

现在我不太清楚,硬盘上是如何创建这些文件系统的,以及硬盘区域上是如何创建超级块和其他东西的? br />
格式化命令会做什么?下面的mkfs命令会做什么?mount正在做什么?为什么存在不同的文件系统?



/ sbin / mkdosfs /sbin/mkfs.ext2 /sbin/mkfs.ntfs

/ sbin / mke2fs / sbin / mkfs.ext3 /sbin/mkfs.vfat <​​br />
/ sbin / mkfs /sbin/mkfs.ext4 /sbin/mkfs.xfs

/sbin/mkfs.btrfs / sbin / mkfs.ext4dev / sbin / mkhomedir_helper

/sbin/mkfs.cramfs /sbin/mkfs.msdos / sbin / mkswap



我我有兴趣学习文件系统,但我不清楚实际的软件如何与硬盘上存在的文件系统相连?



任何解释上述所有内容基础知识的书籍或文章都非常有用。



在此先感谢。

There are lot of filesystems available today for example FAT32, NTFS , ext3,ext4, Brtfs, jfs, UBIfs etc. What I understood was, the way in which file is organized in the harddisk(I mean the data structres) is different for the above mentioned filesystems.
Now i am not very much clear, how these file systems are created on the harddisk and exactly how the superblock and other things are created on the sectors of the harddisk?
What format command will do? what the below mkfs command will do ?What exactly mount is doing? why differnet filesystems exists?

/sbin/mkdosfs /sbin/mkfs.ext2 /sbin/mkfs.ntfs
/sbin/mke2fs /sbin/mkfs.ext3 /sbin/mkfs.vfat
/sbin/mkfs /sbin/mkfs.ext4 /sbin/mkfs.xfs
/sbin/mkfs.btrfs /sbin/mkfs.ext4dev /sbin/mkhomedir_helper
/sbin/mkfs.cramfs /sbin/mkfs.msdos /sbin/mkswap

I am interested in learning filesystems, but i am not clear how the actual software is connected with the filesystem exist on harddisk?

Any books or articles which explain the basics of all the above things will be very useful.

Thanks in advance.

推荐答案

我将从简单的开始, Wikipedia 将是第一个看的地方at:文件分配表 [ ^ ]。
I would start with simple one, and Wikipedia would be the first place to look at: File Allocation Table[^].


这篇关于如何在硬盘上创建Filesystem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆