U盘的挂载
1.插入U盘。
2.用fdisk -l查看磁盘信息
[root@localhost usb]# fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1012 8024467+ 83 Linux
/dev/sda3 1013 1044 257040 82 Linux swap
Disk /dev/sdb : 511 MB, 511558144 bytes
16 heads, 61 sectors/track, 1023 cylinders
Units = cylinders of 976 * 512 = 499712 bytes
上面红色显示的即为U盘。
3.在mnt目录下建一个usb目录(这个可随意)
[root@localhost mnt]# mkdir usb
4.挂载U盘
[root@localh