现在该可移动设备获得了哪个驱动器号?
两种定位方式git Bash中的U盘:
$ cat /proc/partitions
主要次要#blocks名称win-mounts
8 0 500107608 sda
8 1 1048576 sda1
8 2 131072 sda2
8 3 496305152 sda3 C:\
8 4 1048576 sda4
8 5 1572864 sda5
8 16 0 数据库
8 32 0 标准差
8 48 0 sdd
8 64 0 标准差
8 80 3952639 自卫队
8 81 3950592 sdf1 E:\
$挂载
C:/Program Files/Git on / type ntfs (binary,noacl,auto)
C:/Program Files/Git/usr/bin on /bin type ntfs (binary,noacl,auto)
C:/Users/se2982/AppData/Local/Temp on /tmp type ntfs (binary,noacl,posix=0,usertemp)
C: on /c type ntfs (binary,noacl,posix=0,user,noumount,auto)
E: on /e type vfat (binary,noacl,posix=0,user,noumount,auto)
G: on /g type ntfs (binary,noacl,posix=0,user,noumount,auto)
H: on /h type ntfs (binary,noacl,posix=0,user,noumount,auto)
...所以;本例中可能的驱动器号 => /e(或 E:\,如果必须的话),当知道 C、G 和 H 是其他东西时(在 Windows 中)。