解決CentOS下mount失敗

來源:互聯網
上載者:User

解決CentOS下mount失敗

0、安裝ntf-3g
1、插上硬碟
2、fdisk -l 查看
找到硬碟

3、掛載
mount -t ntfs-3g /dev/sdb1 /mnt/vserver
4、拷貝

將vserver下的所有檔案拷貝到cgshiso目錄下
5. 卸載 umount /mnt/vserver 否則檔案會造成丟失

【問題】umount失敗
注意不能在那個掛載的檔案夾下umount

【問題】mount失敗
Mount is denied because the NTFS volume is already exclusively opened.The volume may be already mounted, or another software may use it which could be identified for example by the help of the ‘fuser’ command.
我在掛載NTFS檔案系統的移動硬碟時輸入sudo mount /dev/sdb1 /mnt/sdb 時出現了以上的錯誤,通過錯誤語句的輸出可以知道NTFS卷被拒絕是因為已經執行開啟,可能已經被掛載或者有應用程式正在使用它,可以使用fuser命令顯示正在使用指定的file,file system或者socket的進程資訊。

如#fuser -m -u /dev/sdb1 使用-m -u顯示正在使用/dev/sdb1的進程PID以及使用者名稱稱,如我輸入上述命令後顯示的情況

表明是PID為31301的進程正在使用它,如果命令為fuser -m -u /deev/sdb1,那麼顯示為/dev/sdb1: 31301(root)表示root使用者的31301進程正在使用/dev/sdb1,可以使用kill命令殺死該進程,kill 31301,此時在使用mount命令就不會出錯了。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.