Linux - File System
About
File system in a Linux Context.
Articles Related
File System Hierarchy Standard (FHS)
Red Hat is committed to the Filesystem Hierarchy Standard (FHS), a collaborative document that defines the names and locations of many files and directories.
The FHS document is the authoritative reference to any FHS-compliant file system, but the standard leaves many areas undefined or extensible. The complete standard is available at http://www.pathname.com/fhs
| Directory | Description |
|---|---|
| /dev/ | contain file system entries which represent devices that are attached to the system. |
| /etc/ | is reserved for configuration files that are local to the machine. No binaries are to be put in /etc/. Any binaries that were once located in /etc/ should be placed into /sbin/ or possibly /bin/ |
| /lib/ | should contain only shared libraries that are needed to execute the binaries in /bin/ and /sbin/. These shared library images are particularly important for booting the system and executing commands within the root file system. |
| /mnt/ | The /mnt/ directory is for temporarily mounted file systems, such as CD-ROMs and floppy disks. |
| … | more ..... |
Supported file systems
The supported file systems include (but are not limited to):
- EXT2
- EXT3
- NFS
- ISO 9660
- MSDOS
- VFAT
The file system after an installation of OEL is an ext2fs
How to
Create a file system on a partition
[root@di-obia-01 ~]# mkfs.ext3 -c /dev/sdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
65536000 inodes, 131070310 blocks
6553515 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
4000 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000
Checking for bad blocks (read-only test): done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Mount it
In order to access any file system, it is first necessary to mount it. By mounting a file system, you direct Red Hat Linux to make a specific partition (on a specific device) available to the system.