在挂载之前需要确定下列三种信息:
- 要挂载对象的文件系统类型;
- 要挂载对象的设备名称;
- 确定挂载点。
要将U盘内容拷贝到Ubuntu
服务器中,可以通过以下步骤完成:
1.检查U盘:通过lsblk命令查看U盘设备文件。这个命令会列出所有可用的存储设备及其分区。U盘通常会显示为/dev/sdb1
或/dev/sdc1
等,具体取决于您的系统和已连接的设备数量。
root@user:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 63.3M 1 loop /snap/core20/1828
loop1 7:1 0 91.9M 1 loop /snap/lxd/24061
loop2 7:2 0 49.9M 1 loop /snap/snapd/18357
loop3 7:3 0 40.4M 1 loop /snap/snapd/20671
loop4 7:4 0 63.9M 1 loop /snap/core20/2182
sda 8:0 0 1.8T 0 disk /home/data
sdb 8:16 0 1.8T 0 disk /data
sdc 8:32 0 119.2G 0 disk
└─sdc1 8:33 0 119.2G 0 part
sr0 11:0 1 1024M 0 rom
nvme0n1 259:0 0 953.9G 0 disk
├─nvme0n1p1 259:1 0 1.1G 0 part /boot/efi
├─nvme0n1p2 259:2 0 2G 0 part /boot
└─nvme0n1p3 259:3 0 950.8G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 100G 0 lvm /
这个 sdc1
就是我们的目标U盘了,然后我们创建个文件夹做挂载关联
mount /dev/sdc1 /mnt/thinkplus
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
# 再来一次,怕没连上
mount /dev/sdc1 /mnt/thinkplus
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.
然后就复制粘贴就好了
sudo cp -r /mnt/thinkplus/Data ~/
最后将U盘卸载掉
sudo umount /mnt/thinkplus