linux挂载目录及解除挂载

root@ltktix0docker01 fit2cloud]# mount -l | grep nv    #查看与nv相关的挂载

nv19887003:/files_uat on /opt/fit2cloud type nfs (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.188.116.15,mountvers=3,mountport=1234,mountproto=udp,local_lock=none,addr=10.188.116.15)
nv19887003:/files_uat on /opt type nfs (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.188.116.15,mountvers=3,mountport=1234,mountproto=udp,local_lock=none,addr=10.188.116.15)

[root@ltktix0docker01 fit2cloud]# umount /opt/      #解除 /opt目录的挂载

[root@ltktix0docker01 fit2cloud]# mount -l | grep nv 
nv19887003:/files_uat on /opt/fit2cloud type nfs (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.188.116.15,mountvers=3,mountport=1234,mountproto=udp,local_lock=none,addr=10.188.116.15)

[root@ltktix0docker01 fit2cloud]# mount nv19887003:/files_uat  /opt/         #挂载nv19887003:/files_uat 到 /opt 下

[root@ltktix0docker01 fit2cloud]# mount -l | grep nv
nv19887003:/files_uat on /opt/fit2cloud type nfs (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.188.116.15,mountvers=3,mountport=1234,mountproto=udp,local_lock=none,addr=10.188.116.15)
nv19887003:/files_uat on /opt type nfs (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.188.116.15,mountvers=3,mountport=1234,mountproto=udp,local_lock=none,addr=10.188.116.15)
 

 

 

你可能感兴趣的:(linux)