When I want to change mount point in '/etc/fstab' in RHEL, if found it use Label to identified partition disk.
[root@tatshuya]# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/opt /opt ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
LABEL=/boot /boot ext2 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda6 swap swap defaults 0 0
I want to change '/opt' to '/oracle'.
*** List existing label
[root@tatshuya]# e2label /dev/sda7
/opt
*** Change to new lable
[root@tatshuya]# e2label /dev/sda7 /oracle
*** List new label
[root@tatshuya]# e2label /dev/sda7
/oracle
-- TaTsHuYa --
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment