During the installation of Linux, you might use the default name for mount points appearing. Once the installation of Linux is complete, suppose you want to start with the Database installation. But you can see that /home mount point has the maximum space and you don't want to install the database in the location /home instead you want the database to be installed in the path /u01.In such case, you can easily rename mount point /home to /u01 using ftab.
Please follow the steps mentioned below in order to rename the mount point. In my case, I will be renaming /home to /u01
1. First login as root user on Linux.
2. Move to /etc directory by issuing command cd /etc as shown in below screenshot
3.Open the fstab file using any text editor. I used nano text editor for the same (nano fstab).
After entering the command nano fstab, the contents of fstab will be displayed
4. Now replace the /home wherever seen in in the fstab file with /u01 ( the new name of the mount point )
Once you have edited press ctrl + x and then Y to save the changes in the file
5. After saving the file run the command umount /home -l to forcefully unmount /home directory
6 .Then mount the newly created directory by issuing the command mount /u01
7. Now if you see the mount name by issuing the df -h command, you will be able to see the new name i.e. /u01 as shown in below screenshot
Comments
RSS feed for comments to this post