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

what is computer network and their types ?

   what is network ? -  A network is a group of two or more computer systems, which are connected together. It also consist of a collection of computers, printers, scanner and other devices that are liked together. Networking has single purpose to share information as fast as possible.   The basic types of network- 1) LAN - LAN stands for Local Area Network. It is used to network computers within a limited area like office, school by using the network media. 2) CAN - Campus Area Network is an interconnection of local area networks within limited geographical area. campus network can be additional to the set of wireless connections. connects several buildings to the same network. Example, corporate office campus, university. 3) MAN - MAN means Metropolitan Area Network, which optimized for a larger geographic area than a LAN, ranging from several blocks of buildings to entire city. 4) WAN - WAN is Wide Area Network that is network connection of wide area such as the w...

Levels of Software Testing

   Levels of Software Testing There are various testing levels one of which is unit testing in which the smallest testable part of an application is testing for correctness. In integration testing we check the system when we linking  the various modules.  In system testing we check the system as a whole from customers’ viewpoint. Acceptance testing tries to check whether the system is acceptable by most of the users. Alpha testing is carried out at developer’s site and beta is at customer’s site. A Testers workbench is a virtual environment used to verify the correctness or soundness of a design or model. 11 step testing process is a experience based practical approach for solution to a test assignment.     UNIT TESTING -        Unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation. Unit testing is often...

PL / SQL IN DBMS

                                          PL / SQL   Pl/SQL    state Loops in PL/SQL   Built in Function     Cursor Management     Exception INTRODUCTION   PL/SQL stands for Procedural Language/SQL. PL/SQL extends SQL by adding constructs found in procedural languages,  resulting in a structural language that is more powerful than  SQL.PL/SQL is not case sensitive. ‘C’ style comments (/* ……… */)  may be used in PL/SQL programs whenever required.   All PL/SQL programs are made up of blocks, each block performs  a logical action in the program. A PL/SQL block consists of three parts  1. Declaration section   2. Executable section   3. Exception handling section  Only the executable section is required. The other sections are  optional.  A PL/SQL block h...