ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux下优盘或者移动硬盘的挂载方法

linux下优盘或者移动硬盘的挂载方法

Linux操作系统 作者:dxm2025 时间:2015-01-15 12:21:40 0 删除 编辑

linux下优盘或者移动硬盘的挂载方法

在虚拟机上安装的Linux    

如果想让linux识别U盘,需要把鼠标先定位在虚拟机的linux里面,然后插入优盘,优盘才会被linux识别,再用fdisk -l 来查看U盘的情况。

/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包,安装一下~

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30015039/viewspace-1402653/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-11-09

  • 博文量
    169
  • 访问量
    233179