查看本身的外接硬盤的盤符bash
sudo fdisk -l
找到之後,建立一個文件夾ide
好比:/:code
sudo mkdir mnt
而後進行掛載進程
sudo mount /dev/sdb1 /mnt
而後訪問/mnt 外接硬盤就被掛載到/mnt下it
若是mount 時出現錯誤class
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.file
此時,查看佔用外接存儲的進程PIDcommand
sudo fuser -m -u /dev/sdb1
殺死這個進程db
sudo kill 2217
而後從新掛載di
sudo mount /dev/sdb1 /mnt
成功之後就能夠操做了
sudo cp /mnt/* /opt/myfile/
出現omitting directory錯誤
sudo cp -r /mnt/* /opt/myfile/
便可