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

Popular posts from this blog

All about Hyper-V in windows 10

   Windows Client-Side Hypervisor  l The client-side Hypervisor known as Client Hyper-V was introduced in Windows 8 Operating system. In Windows 10,  t he Client-side Hyper-V has got its features enhanced. Need for client Hyper-V - l Client Hyper-V is used to test or perform demo of operating system features or particular application software.  l Client Hyper-V can also be used to Run a legacy application that are not supported by Windows 10 .  It is used for User support and Troubleshooting. Features of Client Hyper-V are :   l Client Hyper-V supports 32 bit or 64-bit Virtual Machines.  l Used for storage migration or can also be used to create a virtual storage pool.  l Client Hyper-V uses VHD with maximum limit 2TB or VHDX with maximum limit of 64 TB software disk files.  l It can use local software Disk or LAN based storage also known as NAS Network Attached Storage.  l Client Hyper-V supports Import and Export of the VMs to Ser...

Operating System

   Introduction to OS  - An operating system is system software that manages computer hardware  and software resources and provide common services for computer programs. For hardware functions  such as input, output and memory allocation, the operating system acts as an intermediary between the programs and the computer hardware.  The two types of major software are System Software and Application Software. An operating system performs following functions : - Device Management - Memory and file storage management - Process management - User application program management -Error management - CPU scheduling  - Providing interface between user and computer system foe interaction. Types of operating system Based on user interface , an operating system is classified as: Graphical User Interface(GUI) - Provides interface having icons, menus etc. to the user to interact with the computer. for example, windows, Linux etc.  Command Line Interface(CLI) ...