1833431 Members
3573 Online
110052 Solutions
New Discussion

Change mount point name

 
Dario_4
Frequent Advisor

Change mount point name

Hello,

I wuold like to change the name of this mount point /home/db/db /home/db/bug

Is this possible ?
How to do it ?

The disk is mounted and mirrored.

Thanks a lot
7 REPLIES 7
PIYUSH D. PATEL
Honored Contributor

Re: Change mount point name

Hi,

umount the filesystem.

Create the new directory bug
#mkdir /home/db/bug

#mount /dev/vg02/lvol2 /home/db/bug

Edit /etc/fstab and change the dir mount point from /home/db/db to /home/db/bug to mount it automatically during next reboot.

Piyush
Helen French
Honored Contributor

Re: Change mount point name

Yes, it is possible. Try this:

1) find out and get rid of all processes using this file system (lsof, fuser)
2) un mount the file system (umount)
3) Create the new mount_point (mkdir)
4) Mount the file system back to new mount_point.
5) Edit /etc/fstab (if needed this change permanently)
Life is a promise, fulfill it!
Justo Exposito
Esteemed Contributor

Re: Change mount point name

Hi Dario,

Try this:

1.- Umount the filesystem.
2.- Create the new directory.
3.- Change the /etc/fstab
4.- mount -a

Regards,

Justo.
Help is a Beatiful word
S.K. Chan
Honored Contributor

Re: Change mount point name

Make sure no users are accessing /home/db/db. Then you would simply do ..
# cd /
# umount /home/db/db
# mkdir /home/db/bug
# vi /etc/fstab
====> change the entry appropriately
# mount -a
# bdf
====> check it
# rmdir /home/db/db
Sanjay_6
Honored Contributor

Re: Change mount point name

Hi Dario,

unmount the filesystem mounted at that point,

/home/db/db

Make the changes in /etc/fstab and then remount the filesystem after creating the mount dir if it does not exist,

mkdir /home/db/bug

mount -a

Hope this helps.

Regds
Justo Exposito
Esteemed Contributor

Re: Change mount point name

Hi Again,

Please assign points to the answer the people that help you use his time for help you.

This member has assigned points to 12 of 140 responses to his/her questions.

Regards,

Justo.
Help is a Beatiful word
harry d brown jr
Honored Contributor

Re: Change mount point name


Unmount /home/db/bug

mv /home/db/bug /home/db/NEWNAME

mount /home/db/db /home/db/NEWNAME

change /etc/fstab

live free or die
harry
Live Free or Die