一、FAT格式的U盘

插入U盘

[root@localhost ~]# dmesg | grep usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usb usb1: New USB device found, idVendor=1d6b, idProduct=
usb usb1: New USB device strings: Mfr=, Product=, SerialNumber=
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.-.el6.x86_64 ehci_hcd
usb usb1: SerialNumber: ::0b.
usb usb1: configuration # chosen from choice
usb usb2: New USB device found, idVendor=1d6b, idProduct=
usb usb2: New USB device strings: Mfr=, Product=, SerialNumber=
usb usb2: Product: OHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.-.el6.x86_64 ohci_hcd
usb usb2: SerialNumber: ::06.0
usb usb2: configuration # chosen from choice
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.:USB HID core driver
usb -: new high speed USB device number using ehci_hcd
usb -: New USB device found, idVendor=, idProduct=
usb -: New USB device strings: Mfr=, Product=, SerialNumber=
usb -: Product: DataTraveler 3.0
usb 1-1
: Manufacturer: Kingston
usb -: SerialNumber: 60A44C3FACC9F21109990161
usb -: configuration # chosen from choice
usbcore: registered new interface driver usb-storage
usb-storage: device found at
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
usb -: USB disconnect, device number
[root@localhost ~]# fdisk -l
Disk /dev/sdb: 15.5 GB, bytes
heads, sectors/track, cylinders
Units = cylinders of * = bytes
Sector size (logical/physical): bytes / bytes
I/O size (minimum/optimal): bytes / bytes
Disk identifier: 0xcad4ebea Device Boot Start End Blocks Id System
/dev/sdb4 * 1 1882 15109293 c W95 FAT32 (LBA)
[root@localhost ~]# mkdir /mnt/usb
[root@localhost ~]# mount /dev/sdb4 /mnt/usb/
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root 50G 880M 46G % /
tmpfs .9G .9G % /dev/shm
/dev/sda1 485M 33M 427M % /boot
/dev/mapper/VolGroup-lv_home 65G 180M 62G % /home
/dev/sdb4 15G 5.3G 9.2G 37% /mnt/usb

二、NTFS格式挂载

我自己的移动硬盘为NTFS格式,共3个分区

连接上之后dmesg | grep usb可以看到USB设备已经连接了。

然后centos6.5默认是不识别NTFS分区的(微软专利,得谈合作),所以需要安装NTFSde rpm包

然后我就在https://pkgs.org/下载了fuse-ntfs-3g-2013.1.13-2.el6.rf.x86_64.rpm,然后装了glibc也死活不行,

然后又去https://pkgs.org/下载了fuse-ntfs-3g-2013.1.13-2.el6.rf.x86_64.rpm,执行

yum install -y fuse-ntfs-3g-2013.1.-.el6.rf.x86_64.rpm

然后搞定了。哎!不能求新丫!!!

modprobe usb-storage    #fdisk看不到就执行这条命令
fdisk -l
mount  /dev/sdb2 /mnt/usb/
mount -t ntfs-3g /dev/sdb2 /mnt/usb/
mount.ntfs /dev/sdb2 /mnt/usb/

以上3个命令都可以,只不过不指定mount文件系统的时候系统会多花1s的时间去查看到底是啥系统。

centos6挂载U盘的更多相关文章

  1. centos6.4 挂载新盘并移动mysql数据目录

    1 centos 挂载新盘并格式化 以vmware workstation12 中安装的centos6. 虚拟机为例进行演示 关机,添加硬盘 开机,格式化硬盘,并挂载 通过命令查看硬盘 fdisk – ...

  2. CentOS6.4x84挂载U盘

    root用户登录 1. 查看磁盘情况: fdisk -l 信息如下: [root@CentOS6 ~]# fdisk -l Disk /dev/sda: 128.8 GB, 128849018880 ...

  3. virtualBox linux centos 挂载u盘 解决乱码

    linux 挂载u盘 环境:虚拟机virtualBox5.2.8 linux centos6.5 64bit 第一步:插入u盘 第二步:virtualBox 设置启用u盘 提示:如果不知道哪个是你u盘 ...

  4. mint17.3挂载u盘出现错误:mount:unknown filesystem type 'exfat'

    mint17.3挂载u盘出现错误:mount:unknown filesystem type 'exfat' 安装exfat-fuse: sudo apt-get install exfat-fuse

  5. centos7 挂载数据盘

    centos 挂载数据盘1.运行 fdisk -l 命令查看数据盘.注意:在没有分区和格式化数据盘之前,使用 df -h 命令是无法看到数据盘的. 如果执行了 fdisk -l 命令后,没有发现 /d ...

  6. Red hat 5挂载U盘

    装在虚拟机上的Linux 一.挂载U盘                                                                                  ...

  7. linux挂载U盘(转载)

    一.Linux挂载U盘:1.插入u盘到计算机,如果目前只插入了一个u盘而且你的硬盘不是scsi的硬盘接口的话,那它的硬件名称为:sda1.2.在mnt目录下先建立一个usb的目录(如:[root@lo ...

  8. 阿里云CENTOS服务器挂载数据盘

    阿里云Linux云服务器数据盘默认是未做分区和格式化的,使用前需要先挂载数据盘.步骤如下: 1.查看数据盘 在没有分区之前,使用   1 df -h 2.命令,是无法查看到数据盘的,可以使用   1 ...

  9. linux挂载U盘,及乱码问题解决

    1. 首先使用切换到root用户. 2. 使用fdisk -l命令查看磁盘信息,找到u盘(能够依据显示的大小确定) 3. 在/mnt下创建挂载点,比如创建usb目录:mkdir /mnt/usb 4. ...

随机推荐

  1. 定义 S4 泛型函数

    在前面的例子中,我们可以看出 S4 比 S3 更正式,因为 S4 类有类的正式定义.同样, S4 的泛型函数也更加正式.在一个关于形状的例子中,我们定义了一系列具有继承关系的 S4 类,只是继承关系的 ...

  2. 关于java中ArrayList的快速失败机制的漏洞——使用迭代器循环时删除倒数第二个元素不会报错

    一.问题描述 话不多说,先上代码: public static void main(String[] args) throws InterruptedException { List<Strin ...

  3. 101. Symmetric Tree -- 判断树结构是否对称

    Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For e ...

  4. link @import区别 src href的区别

    先说页面引入css的四种方式吧 1 在头部写在style里面 2 行内样式 tyle= 3 外部引入 link和@import的区别 link属于XHTML的标签,而@import只是css提供的一种 ...

  5. MD5加密源码!

    import java.security.*; class MD5{ public final static String MD5(String s){ char hexDigits[] = {'0' ...

  6. JS获取当前时间到30天之后的日期区间

    <!doctype html> <html> <head> <meta charset="utf-8"> <title> ...

  7. 高级浏览器-SRWare Iron 29.0.1600.0 版本发布

    SRWare Iron是德国一安全公司srware改造的Chrome(铬)命名为铁(iron)的浏览器.于2008年9月18日首次发布. 据官方介绍,Iron浏览器砍掉了Chromium原程序中的很多 ...

  8. jQuery 参数详解

    url: 要求为String类型的参数,发送请求的地址.如果没有填写, 默认发送当前页的url type: 要求为String类型的参数,请求方式(post或get)默认为get. 注意其他http请 ...

  9. 5.4完成其他模块的xadmin后台注册

    courses  adminx.py from .models import Course, Lesson, Video, CourseResource import xadmin class Cou ...

  10. git 基础学习笔记

    配置ssh 打开命令行或者git bash 输入 创建git库 git init 检查当前状态 $ git status On branch master nothing to commit, wor ...