阅读336 返回首页    go 京东网上商城


linux挂载U盘

fdisk -l 

/dev/sda1   *           1           6       48163+  83  Linux
/dev/sda2               7         515     4088542+  83  Linux
/dev/sda3             516         776     2096482+  82  Linux swap / Solaris
/dev/sda4             777        2610    14731605    5  Extended
/dev/sda5             777        2610    14731573+  83  Linux

Disk /dev/sdb: 7985 MB, 7985954816 bytes
231 heads, 28 sectors/track, 2411 cylinders
Units = cylinders of 6468 * 512 = 3311616 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               2        2412     7794688    b  W95 FAT32
如果是fat格式的U盘,挂载命令:mount  -t  vfat  /dev/sdb1  /mnt/udisk
如果是ntfs格式的U盘,挂载命令:mount  -t  ntfs-3g  /dev/sdb1  /mnt/udisk
如果没有/mnt/udisk文件夹,可以创建一个
mkdir /mnt/udisk
即可~

但是注意,ntfs格式要挂载的话,需要下载一个ntfs-3g-2011.4.12-5.el5.i386.rpm包,安装一下~
百度一下这个包名,去CSDN下载...

最后更新:2017-11-11 11:34:07

  上一篇:go  dev下的shm目录
  下一篇:go  linux du命令