網站首頁 編程語言 正文
解決vmware上ubuntu無法共享文件夾問題
解決vmware上ubuntu無法共享文件夾問題(ubuntu22.04)
第一步:設置共享文件夾
第二步:安裝open-vm-tools
sudo apt install open-vm-tools*
第三步:掛載文件夾先查看設置的文件夾有沒有起效
vmware-hgfsclient
如果出現有掛載對應的文件夾就起效
創建目錄并掛載
sudo mkdir /mnt/hgfs
手動掛載/自動掛載
手動掛載方法
但是每次重啟都得掛載一遍,比較麻煩
sudo vmhgfs-fuse .host:/VMshare /mnt/hgfs
自動掛載方法
sudo cp /etc/fstab /etc/fstab.bak
sudo vim /etc/fstab
在最后一行插入這樣一句
.host:/VMshare /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0
VMshare是自己設置的文件夾名稱,/mnt/hgfs掛載點,fuse.vmhgfs-fuse掛載方法
最后保存退出(先別走!)
由于配置自動掛載文件容易配置錯誤導致系統進入emergency mode,最好要備份好fstab文件,并且做好虛擬機快照,或者搜索在emergency mode的恢復方法
然后cd到/mnt/hgfs里就能看到共享的文件了,有可能需要管理員權限
如果你在此之前安裝過官方的vmtool或者舊版本的open-vm-tools最好先卸載干凈
sudo vmware-uninstall-tools.pl
sudo apt-get remove open-vm-tools
sudo apt-get remove --auto-remove open-vm-tools
sudo apt-get purge open-vm-tools
sudo apt-get purge --auto-remove open-vm-tools
參考引用:
https://www.cnblogs.com/nanopeng/p/7017351.html
https://blog.csdn.net/weixin_43445661/article/details/109497763
https://blog.csdn.net/weixin_44565095/article/details/95937794
原文鏈接:https://www.cnblogs.com/MaRcOGO/archive/2022/07/10/16463460.html
相關推薦
- 2022-07-09 Android開發中Flutter組件實用技巧_Android
- 2023-05-16 pyinstaller打包遇到的問題解決_python
- 2023-01-31 基于C#實現獲取本地磁盤目錄_C#教程
- 2022-04-05 Python?Opencv基于透視變換的圖像矯正_python
- 2022-04-19 python 讀寫yaml
- 2022-12-13 C++?Boost?StringAlgorithms超詳細講解_C 語言
- 2023-01-29 Python操作lxml庫實戰之Xpath篇_python
- 2022-06-28 EF?Core項目中不同數據庫需要的安裝包介紹_實用技巧
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支