Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

I would start with simple one, and Wikipedia would be the first place to look at: File Allocation Table[^].
 
Share this answer
 
Comments
chandrAN2& 4-Dec-15 10:02am    
Thanks ..I have the doubt like how the root file system is created? Say root file system contain already some file ? After mounting we are using /bin/file to launch an executable right? so how this file is already stored under /bin in the disk?
Sergey Alexandrovich Kryukov 4-Dec-15 10:34am    
No, there is no such thing. There is no root file system, and no such file...
—SA
Sergey Alexandrovich Kryukov 4-Dec-15 10:36am    
A 5, but... I don't know where it goes... :-)
—SA
CPallini 4-Dec-15 15:19pm    
Thank you.
chandrAN2& 4-Dec-15 11:04am    
i didn't get what you are telling

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900