How to Change mount point name in Linux
Here is steps to change to mount point name /home to /m01.
[root@moshe bea]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_moshe-lv_root
50G 9.6G 38G 21% /
tmpfs 1.9G 288K 1.9G 1% /dev/shm
/dev/sda1 485M 52M 408M 12% /boot
/dev/mapper/vg_moshe-lv_home
633G 198M 600G 1% /home
Step 1 :
[root@moshe ~]# umount /home
Step 2:
[root@moshe ~]# mkdir /m01
Step 3:
Modify /home to /m01 in the file /etc/fstab.
root@moshe ~]# vi /etc/fstab
[root@moshe ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Feb 12 09:27:54 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_moshe-lv_root / ext4 defaults 1 1
UUID=93acbca6-0fdf-4798-9312-6303540cb185 /boot ext4 defaults 1 2
/dev/mapper/vg_moshe-lv_home /m01 ext4 defaults 1
2
Here is steps to change to mount point name /home to /m01.
[root@moshe bea]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_moshe-lv_root
50G 9.6G 38G 21% /
tmpfs 1.9G 288K 1.9G 1% /dev/shm
/dev/sda1 485M 52M 408M 12% /boot
/dev/mapper/vg_moshe-lv_home
633G 198M 600G 1% /home
Step 1 :
[root@moshe ~]# umount /home
Step 2:
[root@moshe ~]# mkdir /m01
Step 3:
Modify /home to /m01 in the file /etc/fstab.
root@moshe ~]# vi /etc/fstab
[root@moshe ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Feb 12 09:27:54 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_moshe-lv_root / ext4 defaults 1 1
UUID=93acbca6-0fdf-4798-9312-6303540cb185 /boot ext4 defaults 1 2
/dev/mapper/vg_moshe-lv_home /m01 ext4 defaults 1
2
No comments:
Post a Comment