How to create new mount-point in Linux Operating System
Q: I have installed Linux Operating System in my Virtual Box test environment but now I m facing space crunch on system after configuration.Is it possible that I can create new mount-point in Linux?.
Ans: Yes. It is possible that you can create new mount-point after configuration. Below are the steps to follow.
Step 1: First shut down the Virtual Box.
Step 2: Add new disk to the virtual box of any size you want to add.
Step 3: Start the Virtual Box.
Step 4: Now create & configure partition.(Here my partition name is /dev/sdg/)
#fdisk /dev/sdg
n
p
1
w
#fdisk /dev/sdg
p
where,
P=> Print the partition.N => For creating new partition.
1=> For creating primary partition.
w => For saving created partition.
Step 5: Now format the created partition.
#/sbin/mkfs -t ext3 /dev/sdg1
Step 6: Assign a label to the created partition.
/sbin/e2label /dev/sdg1 /u01
You can check the label using below command:
#/sbin/tune2fs -l /dev/sdg1 |grep volume
Step 7: Now add below entry in fstab file.
#vi /etc/fstab
LABEL=/u01 /u01 ext3 defaults 1 2
Step 8: Now create new partition in root directory as below command and grant rights to the owner.
#pwd
/root
#mkdir /u01
#chown -R oracle:dba /u01
Step 9: Finally mount the created mount-point.
#mount /dev/sdg1 /u01
You can view the newly created partition using below command:
df -h
Thanks for reading this post ! Please comment if you like the post.
Thank you for your comment !