How To Create Or Delete Partition In Linux Rhel-5

In This Tutorial We Are Going To Learn How To Create Partition in Rhel-5

Firstly Login With Localhost : Root

And Now Check The Partitions how Many Partition Are There

Suppose /dev/sda1 And /dev/sda2 Prtition And Now I Want To Create The /dev/sda3 Partition

Step 1 – fdisk -l{To Check The Partition How Many Partition Are There}
Step 2 – fdisk /dev/sda {To Create Partition}
N {for New Partition}
P{For Primary Partition
3{partition Number}
+500M{size Of Partition How Much Size Of Partition We Want To Create}
p{To Check The Partition Is Created Or Not}
W{For Save}
Partprobe /dev/sda{To refresh The Drive Or Hard Disk}

This Is How We Create Partition In Linux Rhel-5

Now I Will Tell You How To Delete This Partition

Step 1 – fdisk -l {To Check The Partition How Many Partition Are There}
Step 2 – fdisk /dev/sda
D{for Delete The Partition}
3{number Of {Partition Which one you Want To Delete}
P{For Check The Partition Is Deleted Or Not}
w{For Save}
Partprobe /dev/sda {For Refresh The drive Or Hard Disk}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s