linux U盘挂载

1. 查看U盘在哪个分区

cheng@cheng-VirtualBox:~$ sudo fdisk -l

Disk /dev/sda: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xab0ad061


Device     Boot    Start      End  Sectors Size Id Type
/dev/sda1  *        2048 79691775 79689728  38G 83 Linux
/dev/sda2       79693822 83884031  4190210   2G  5 Extended
/dev/sda5       79693824 83884031  4190208   2G 82 Linux swap / Solaris




Disk /dev/sdb: 7.2 GiB, 7759462400 bytes, 15155200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0000209b


Device     Boot Start      End  Sectors  Size Id Type

/dev/sdb1  *       63 15149294 15149232  7.2G  c W95 FAT32 (LBA)       //我的U盘

发现我的U盘分区是 /dev/sdb1 fat32 格式

2.挂载

cheng@cheng-VirtualBox:~$ sudo mount -t vfat /dev/sdb1 /mnt

3. 查看 /mnt下内容


cheng@cheng-VirtualBox:/mnt$ ls
AccessPort133      LOST.DIR   scommv22.zip         System Volume Information
AccessPort133.zip  mypicture  Sparkpad_server.apk  vpn.txt
Browser.apk        release    sscom_串口调试       zkungfu.txt
ComPro.exe         scommv22   sscom_串口调试.rar   zkungfu VPN配置.pcf

猜你喜欢

转载自blog.csdn.net/cym_anhui/article/details/80563868