ubuntu下进行u盘的挂载查看
当我们插入优盘之后,打开命令行(ctrl+alt+t),输入指令 sudo fdisk -l
即可以查看到我们的u盘的状态 (主要看分区还有文件系统)
Disk /dev/sdb: 16.0 GB, 16039018496 bytes
256 heads, 24 sectors/track, 5098 cylinders, total 31326208 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
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdb1 * 32 31326206 15663087+ c W95 FAT32 (LBA)
然后假如我们的优盘是fat32格式的
输入指令:mount -t vfat /dev/sdb1 /media
如果是NTFS格式的话
输入指令:mount -t nfs /dev/sdb1 /media
这样就把u盘挂载到media目录了(注意/dev/sdb1 是指u盘的分区 ,你的可能不同)
最后我们只要使用命令:cd /media 再 ls 就ok 了
(注意以上操作需要root权限)
想要卸载u盘也很简单: