Professional Documents
Culture Documents
5 LINUX
5 LINUX
Theory: In Linux, there are basically two methods a disk or drive can be partitioned. One way is
by using the standard partitioning method, and the other is by using the LVM partitioning
method.
A standard partition is a method in Linux a drive/disk is splitted/partitioned. Disks topology in
Linux is in the form of (sda, sdb, sdc, sdn..), from first disk to the last disk respectively, and can
be partitioned in a standard method as (sda1, sda2, sdb1, sdb2, sdn1, sdn2, etc).
The utility parted allows users to:
● View the existing partition table
● Change the size of existing partitions
● Add partitions from free space or additional hard drives
If you want to view the system's disk space usage or monitor the disk space usage, “File
Systems”.
By default, the parted package is included when installing Red Hat Enterprise Linux. To start
parted, log in as root and type the command parted /dev/sda at a shell prompt (where /dev/sda is
the device name for the drive you want to configure).
If you want to remove or resize a partition, the device on which that partition resides must not be
in use. Creating a new partition on a device which is in use—while possible—is not
recommended.
For a device to not be in use, none of the partitions on the device can be mounted, and any swap
space on the device must not be enabled.
As well, the partition table should not be modified while it is in use because the kernel may not
properly recognize the changes. If the partition table does not match the actual state of the
mounted partitions, information could be written to the wrong partition, resulting in lost and
overwritten data.
Mahavir Education Trust's
Screenshots(Results):
Mahavir Education Trust's
Conclusion: Linux commands for for managing Storage drives in Linux environment
implementation successfully in Linux.