linux 访问挂载外接存储

查看本身的外接硬盘的盘符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/

便可

相关文章
相关标签/搜索