插入优盘前:
[root@centOS5 mnt]# fdisk -l Disk /dev/hdd: 21.4 GB, bytes
heads, sectors/track, cylinders
Units = cylinders of * = bytes Device Boot Start End Blocks Id System
/dev/hdd1 * Linux
/dev/hdd2 + Linux swap / Solaris
/dev/hdd3 Linux
插入优盘后:
Disk /dev/hdd: 21.4 GB, bytes
heads, sectors/track, cylinders
Units = cylinders of * = bytes Device Boot Start End Blocks Id System
/dev/hdd1 * Linux
/dev/hdd2 + Linux swap / Solaris
/dev/hdd3 Linux Disk /dev/sda: MB, bytes
heads, sectors/track, cylinders
Units = cylinders of * = bytes Device Boot Start End Blocks Id System
/dev/sda1 b W95 FAT32
[root@centOS5 mnt]#
挂载优盘:
1.建立挂载点目录:[root@centOS5 mnt]# mkdir /mnt/usb/
2.挂载:
[root@centOS5 mnt]# mount -t vfat /dev/sda1 /mnt/usb/
mount: /dev/sda1 already mounted or /mnt/usb/ busy
mount: according to mtab, /dev/sda1 is mounted on /media/kingston
[root@centOS5 mnt]#
说明插入优盘后centos5.6会自动挂载到/meida/kingston目录
3.卸载自动挂载点
[root@centOS5 mnt]# umount /dev/sda1
[root@centOS5 mnt]# ls /media/
[root@centOS5 mnt]#
4.挂载到自定义的挂载点
[root@centOS5 mnt]# mount -t vfat /dev/sda1 /mnt/usb/
[root@centOS5 mnt]# cd /mnt/usb/
[root@centOS5 usb]# ls
-- 视频显示 MPP文档 video 毕业实习鉴定表.doc
E-album(电子相册) SecureCRT 数据结构测试试卷.doc 简历(张闪闻) .doc
E-album(电子相册).zip tftp 新建文件夹
[root@centOS5 usb]#