Ubuntu如何掛載U盤


1. 以root用戶登陸

2. 查看當前掛載

fdisk -l

 

 

 

 

 

 

一般情況未掛載的硬盤都在最后,這里是/dev/sdb1 選擇綠框

3.新建一個目錄來掛載硬盤 掛載到MNT/usb

root@h-Default-string:~# cd /mnt
root@h-Default-string:/mnt# mkdir /mnt/usb

 

4.掛載命令

root@h-Default-string:/mnt# mount /dev/sdb1 /mnt/usb

 

5.不出問題就會掛載成功。

6.卸載u盤:在使用完u盤后,在拔出前需要先鍵入卸載U盤命令

umount /mnt/usb 

 

遇到的問題,有進程占用硬盤,我們需要找到進程並kill 

root@h-Default-string:/mnt# mount /dev/sdb1 /mnt/usb
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.
root@h-Default-string:/mnt# Mount is denied because the NTFS volume is already e                 xclusively opened.

 

1) 查看進程

root@h-Default-string:/mnt# fuser -m -u /dev/sdb1
/dev/sdb1:            1977(root)

2)結束進程

root@h-Default-string:/mnt# mount /dev/sdb1 /mnt/usb
root@h-Default-string:/mnt# kill 1977

 

3)重新掛載一次

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM