插入优盘前:
1 [root@centOS5 mnt]# fdisk -l 2 3 Disk /dev/hdd: 21.4 GB, 21474836480 bytes 4 255 heads, 63 sectors/track, 2610 cylinders 5 Units = cylinders of 16065 * 512 = 8225280 bytes 6 7 Device Boot Start End Blocks Id System 8 /dev/hdd1 * 1 13 104391 83 Linux 9 /dev/hdd2 14 144 1052257+ 82 Linux swap / Solaris 10 /dev/hdd3 145 2610 19808145 83 Linux
插入优盘后:
1 Disk /dev/hdd: 21.4 GB, 21474836480 bytes 2 255 heads, 63 sectors/track, 2610 cylinders 3 Units = cylinders of 16065 * 512 = 8225280 bytes 4 5 Device Boot Start End Blocks Id System 6 /dev/hdd1 * 1 13 104391 83 Linux 7 /dev/hdd2 14 144 1052257+ 82 Linux swap / Solaris 8 /dev/hdd3 145 2610 19808145 83 Linux 9 10 Disk /dev/sda: 7916 MB, 7916748800 bytes 11 125 heads, 58 sectors/track, 2132 cylinders 12 Units = cylinders of 7250 * 512 = 3712000 bytes 13 14 Device Boot Start End Blocks Id System 15 /dev/sda1 1 2133 7729924 b W95 FAT32 16 [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.卸载自动挂载点
1 [root@centOS5 mnt]# umount /dev/sda1 2 [root@centOS5 mnt]# ls /media/ 3 [root@centOS5 mnt]#
4.挂载到自定义的挂载点
1 [root@centOS5 mnt]# mount -t vfat /dev/sda1 /mnt/usb/ 2 [root@centOS5 mnt]# cd /mnt/usb/ 3 [root@centOS5 usb]# ls 4 2012-12-13 视频显示 MPP文档 video 毕业实习鉴定表.doc 5 E-album(电子相册) SecureCRT 数据结构测试试卷.doc 简历(张闪闻) .doc 6 E-album(电子相册).zip tftp 新建文件夹 7 [root@centOS5 usb]#