阿里雲官方文檔:https://help.aliyun.com/document_detail/25452.html?spm=5176.2020520101.0.0.19ac4df5vlFqjHhtml
解決 umount /dev/vdb1 報錯的問題阿里雲
(In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
fuser -m /dev/vdb1
/dev/vdb1: 26086c
沒有想到還真的有個進程在使用。
只能查查是和什麼程序了:
ps -ef |grep 26086cspa
root 7347 4480 0 15:29 pts/2 00:00:00 grep 26086c [root@pan Desktop]# ps -ef |grep 26086 root 7457 4480 0 15:29 pts/2 00:00:00 grep 26086 root 26086 1 0 13:40 pts/1 00:00:09 konqueror http://www.vmware.com/info?id=520
殺死所有進程
kill -9 26086
嘻嘻~再umount的時候能夠了。
umount /dev/vdb1
按文檔執行掛載操做code
最後設置開機自動掛載
編輯/etc/fstab文件,再最後面添加
htm