Linux - File System

Linux - File System

About

File system in a Linux Context.

A file system is created on a partition

File System Hierarchy Standard (FHS)

File System Hierarchy Standard (FHS)

Supported file systems

The supported file systems include (but are not limited to):

The file system after an installation of OEL is an ext2fs

Metadata

On Linux System, the metadata are written in an Linux File System - inode (index node) (index node).

How to

Create

mkfs.ext3 -c /dev/sdb1
# or
mkfs -t ext4 /dev/sda3
# or
mkfs -t xfs /dev/sda3
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.

where:

See

When listing a partition, you should be able to see it

Example with parted. Below you can see that the file system is xfs on each partition.

parted -l
Model: Msft Virtual Disk (scsi)
Disk /dev/sda: 191GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  525MB  524MB  primary  xfs          boot
 2      525MB   191GB  191GB  primary  xfs

Mount

In order to access any file system, it is first necessary to mount it (ie mount the partition) to make it available.

Example:

mkdir /mountpoint
mount /dev/sda3 /mountpoint

Then you need to add it to fstab to got the mount on reboot.

Documentation / Reference





Discover More
Card Puncher Data Processing
Data Storage - Storage area network (SAN)

A storage area network (SAN) is an architecture to attach remote computer storage devices (such as disk arrays, tape libraries, and optical jukeboxes) to servers in such a way that the devices appear as...
Linux - /proc/sys/fs/ directory - configuration files of the file system

Common groups of information and parameters concerning the kernel are are set with the help of configuration files and grouped into directories and subdirectories within the /proc/ directory. /proc/sys/fs/...
Linux - Adding storage depends of LVM

When you need to add disk storage to a linux environement, the tasks depend of if you want to use or not the Linux Logical Volume Manager.. Without LVM, a filesystem is created inside a partition....
Linux - Adding storage without LVM

When you add a disk device to your system, you need to add this storage in your Linux environment When you improve the disk capacity of your Virtual Vmware Machine, you just need to configure the device...
Linux - Disk (storage devices)

in Linux. It contains partitions that contains file system that are mounted to be made available to the OS. A disk name is the following syntax without the Partition number but to understand the...
Windows Disk
Linux - Disk Partition (logical disk)

Hard disks can be divided into one or more logical disks called partition. This division is described in the partition table found in sector 0 of the disk. The partition is the last part of...
Linux - FSTAB (file systems table)

When a Linux system is newly-installed, all the disk partitions defined and/or created during the installation are configured to be automatically mounted whenever the system boots. However, what happens...
Linux - Kernel parameters (configuration files)

Kernel parameters are the configuration of the Linux kernel (ie linux). sysctl is the command line tool that manage the kernel parameters. See If you want to change the kernel parameter values,...
Linux - Mounting File Systems (CDROM, NFS, SMB, )

All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at /. These files can be spread out over several devices. The mount command serves to attach the file...
Bash Liste Des Attaques Ovh
Linux - Stat (File status)

This page is the file metadata (also known as file status) on the linux file system Principally, the stat command display the file metadata. find command man where: Through the --printf=FORMAT...



Share this page:
Follow us:
Task Runner