Monday, September 8, 2014

Step by Step creating partition in Red Hat Linux / How to create partition in Red Hat Linux environment ?

Create a 500MB new partition and should be mounted under /mountpoint as ext4 type.

Answer:

# fdisk -cul (for viewing the partition information)
# fdisk -cu /dev/vda
# m (for help)
# n (for new partition)
# e (for all spaces extended partition)
# Not p (because primary partition limit only 4)
# 3 (for partition number)
# Enter (for first cylinder)
# Enter (for last cylinder)
# w (for save)
# reboot (for rebooting the machine)

After rebooting the machine:    

# fdisk -cul (for viewing partition)
# fdisk -cu /dev/vda
# m (for help)
# n (for new partition)
# l (for logical partition)
# Enter (for first cylinder)
# +500M Enter (for last cylinder)
# w (for save)
# reboot (for rebooting the machine)

After rebooting the machine:    

# fdisk -cul (for viewing partition)
# mkfs.ext4 /dev/vda5
# mkdir -p /mountpoint (p for focely created one directory in another)
# mount /dev/vda5 /coss/new/
# df -h (for mounting information)
# vim /etc/fstab (for permanently mount)

  /dev/vda5         /mountpoint          ext4                       defaults               0 0

# mount -a

# df -h

No comments:

Post a Comment

Featured Post

Managing CA Certificates on Red Hat Linux 9: Understanding update-ca-trust extract

  Managing CA Certificates on RHEL9 RHEL8 OracleLinux9 OracleLinux8 In today's digital landscape, securing communications and verifying ...