Creating Partitions in Rhel LINUX

Creating partitions in rhel 6:-
#fdisk –l =to show attached hard drives
#all the information’s about the hdd are saved in dev directory.
#/dev/sda,sdb,sdc,sdb,sdd or any so it is sata
#/dev/hd,hd,hd,hd, or any so it is ID type of hard drives
To make partitions in /dev/sdb:-
#fdisk /dev/sdb
#command m for help:-
#n= for create new partition
#p=to print all the partition
#n
#e for extended in 1 hdd we can make 4 partitions it can be primary partitions make also make 3 primary partitions then we can create 1 extended partition and then make logical partitions from it.
#p=for partition
#by ignoring next step
#+100M (to make 100MB of new partition)
#p=for print
#p
#it shows all the info if partition id
#wq=to quit with saving
# to synchronize partitons table
#partprobe=helps us to update our new make partitions immediately.
#to format partition
#mkfs.ext4 /dev/sdb1(new created partition)
#to make it usable mounting is must:-
#mkdir /my
#mount /dev/sdb1/my/
#cd /my/=to go in your mount place
#we have successfully mount new partitions and make it usable
#to permanent that new partition:-
#mount=it seems mounted but it is not permanent mounted for use if we restart our computer it get umount
#to permanent that partitions
#cat /etc/fstab
#we have to make entry of that new partition in it
#gedit /etc/fstab
/dev/sdb1                           /my                        ext4                      defaults                0 0  (first 0 for dump and for recovery  1 for check ,second 0 for fs check file system check)
#it requires restart to make permanent
#mount
#we have Successfully mounted new partition.

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