Friday, April 20, 2012

Rename a linux mount point


Unmount the existing mount point (that you want to rename) :
#umount /prodapp




Change the label on the filesystem to the new mount point name:
#tune2fs -L /u01 /dev/sdb2

add the entries to /etc/fstab:
replace the entries of /prodapp with new mount point

Create the mount point named /u01
mkdir /u01

mount the new folder /u01:
mount  /u01

remove the folder /prodapp:
rmdir -rf /prodapp

No comments: