Skip to main content

Accessing Linux File system(Red Hat Linux)

  Storage Management Concept

• A file system is an organized structure of data-holding files

and directories residing on a storage device, such as a

physical disk or partition. The process of adding a new file

system to the existing directory tree is called mounting. 


The directory where the new file system is mounted is referred

to as a mount point. Hard disks and storage devices are

normally divided up into smaller chunks called partitions.


 Mount point & File System

• A file system is an organized structure of data-holding files

and directories residing on a storage device, such as a

physical disk or partition. The process of adding a new file

system to the existing directory tree is called mounting. The

directory where the new file system is mounted is referred

to as a mount point. Hard disks and storage devices are

normally divided up into smaller chunks called partitions.


• Partition can be assigning same file system or different file

system; it depends on partition purpose. Storage devices

are represented by a special file type called block device.

The block device is stored in the /dev directory. In Red Hat

Enterprise Linux, the first SCSI, SATA, or USB hard drive

detected is /dev/sda, the second is /dev/sdb, and so on.


• The first partition on /dev/sdais /dev/sda1, the second

partition is /dev/sda2, and so on.


• Partition can be assigning same file system or different file

system; it depends on partition purpose. Storage devices

are represented by a special file type called block device.

The block device is stored in the /devdirectory.

• In Red Hat Enterprise Linux, the first SCSI, SATA, or USB

hard drive detected is /dev/sda, the second is /dev/sdb, and

so on. The first partition on /dev/sdais /dev/sda1, the second

partition is /dev/sda2, and so on.

 Logical Volume

• You can manage your disk partition with LVM (Logical

Volume management) concept. LVM has special feature

that you resize the existing partition.

• One or more block devices can be aggregated into a

storage pool called a volume group. Disk space is made

available with one or more logical volumes.

 Examining File System

• To get an overview about the file system, mount points and

the amount of free space available you can use df and du

command. df command will give you total disk space, used

disk space and free disk space. du command is used for get

more details information about space used. df and du can

be used by –h or –H to get the output in human readable

format.

 Mounting File System

• The Linux mount command is used to mount USBs, DVDs,

SD cards, partition and other types of storage devices on a

computer running the Linux operating system. The mount

command allows the root user to manually mount a file

system. The first argument of the mount command specifies

the file system to mount. The second argument specifies

the target directory where the file system is made available

after mounting it.

• Automatically Mounting of Removal Devices.

o If you are logged in Graphical Desktop Environment, it will

automatically mount the removal devices.

 The removal storage devices is mounted at

/run/media/UserName/Label.

o Before removing the device, you should unmount the

device.

• Unmounting File System

o The shutdown and reboot procedures unmount all file

system automatically.

o Unmounting is not possible if mounted file system is in use.

o The # lsof command lists all open files.

 # umount /mnt

used disk space and free disk space.

 Searching files

• A system administrator needs tools to search file with

certain criteria.

• In Linux there is several methods of searching or finding

files and directory.

• The “locate” and “find” command as well ls command we

can used for locating a files or directory. “updated”

command will update the database of locate manually. By

default, database update automatically everyday.

• In Linux there is several methods of searching or finding

files and directory.

• The “locate” and “find” command as well ls command we

can used for locating a files or directory. “updated”

command will update the database of locate manually. 


By default, database update automatically every day. The locate

command searches a pre-generated database for file

names or file paths and returns the results immediately.

• Locate Command 

o “updatedb” command will update the database of locate

manually. By default, database update automatically every

day.

o The locate command searches a pre-generated database

for file names or file paths and returns the res

Comments