虚拟机优盘拷贝文件
插入优盘先
xrisk123@ubuntu:~$ sudo -i #切换到主用户
root@ubuntu:~# fdisk -l #查看u盘是否被识别,识别的U盘是在哪个位置
Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = 扇区 of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000bcfa
设备 启动 起点 终点 块数 Id 系统
/dev/sda1 * 2048 39845887 19921920 83 Linux
/dev/sda2 39847934 41940991 1046529 5 扩展
/dev/sda5 39847936 41940991 1046528 82 Linux 交换 / Solaris
Disk /dev/sdb: 2000.4 GB, 2000398933504 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029167 sectors
Units = 扇区 of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disk identifier: 0xa694e4aa
设备 启动 起点 终点 块数 Id 系统
/dev/sdb1 2048 3907026943 1953512448 7 HPFS/NTFS/exFAT
root@ubuntu:~# mkdir /mnt/empty
root@ubuntu:~# mount /dev/sdb1 /mnt/empty #挂载不了 说是可能已经挂载了或者在占用
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@ubuntu:~# fuser -m /dev/sdb1 #在占用的进程号?不懂
/dev/sdb1: 3437
root@ubuntu:~# ls /media/nicole #发现自动挂到这里了
544YDD Ubuntu 14.04.5 LTS i386
root@ubuntu:~# cp -r /media/nicole/544YDD/oldpc/SMART.txt /mnt/empty
root@ubuntu:~# ls /mnt/empty
SMART.txt
取消挂载
root@ubuntu:~# umount /media/nicole umount:/media/xrisk123:未挂载 root@ubuntu:~# umount /media/nicole/544YDD root@ubuntu:~# ls /media/nicole Ubuntu 14.04.5 LTS i386 #u盘不见了
点完发现Seagnate RSS BUP Slim SL前面的对号不见了
U盘出现在本地电脑
fdisk -l 结果解读
https://blog.csdn.net/beckdon/article/details/22064173
网络文件下载