Linux mounts mobile hard disk

 

Table of contents

1. Steps 

2. Possible problems

3. Uninstall the mount point

4. If you mount the u disk


1. Steps 

cd /
或者
cd ~
都行,不过最好用~ 使其在home 目录下方便路径的引用。
sudo fdisk -l

Appear

设备        起点       末尾       扇区   大小 类型
/dev/sda1   2048 1953456127 1953454080 931.5G Microsoft 基本数据

Create a mount point (create a folder according to your preferences)

sudo mkdir /opt/yingpan

mount 

sudo mount -t ntfs-3g /dev/sda1 /opt/yingpan

2. Possible problems

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.

Solve (note that it is best to add sudo or the process under root will not be displayed)

sudo fuser -m -u /dev/sda1

show 

/dev/sda1:            8843(root)

Execute the following statement to kill the process 

sudo kill 8843

Remount, OK

sudo mount -t ntfs-3g /dev/sda1 /opt/yingpan

3. Uninstall the mount point

The reference is as follows 

sudo umount /dev/sda1

4. If you mount the u disk

can directly

sudo mount /dev/sda1 /opt/lingyun

If the error in the second report is the same, it can be solved according to the process

Guess you like

Origin blog.csdn.net/allrubots/article/details/126215294
Recommended