File System Management

fileshare

This page gives basic information about Redhat Linux file system management.

Disk Druid: The only tool used for partitioning management at the time of installation

Partitioning management utilities available after installation:

 

  • fdisk
  • parted
  • sfdisk

 

 

Total partitions allowed is 63. From the fifth, it will be extended partition.

A limitation of fdisk is that it will recognize only up to 16 partitions. But we can apply size in MB or even GB.

In “parted” tool we can specify size only in cylindrical units.

# fdisk -l : Displays the number of devices and partitions.

# fdisk /dev/sda : To create a new partition in sda

 

  • n = new partition
  • p = Primary partition
  • Leave starting block as default
  • To create a 5 MB partition, use the value +500M
  • w = save the partition

 

 


The partition will be identified only after rebooting the system.

# partprobe : This is to inform kernal about the new partition without rebooting the system.

The command mkfs is used to format a disk

File Systems:

RHL ext3 (up to 4 TB)
RHL ext2
Other reiscnfs
SGA xfs
IBM ffs

The feature “journaling” is supported by ext3

# mkfs.ext3 /dev/sda9 : Command to format sda9 with ext3 file system

# df -h : Free space in every mounted file system will be displayed

Once formatted the partition could be mounted using the command
# mkdir /temp
# mount /dev/sda9 /temp

This is only a temporary mounting. For a permanent setup it had to be done using fstab.

Be the first to comment on "File System Management"

Leave a comment