热度 1|
1、U盘的挂载
1.插入U盘。
2.用fdisk -l查看磁盘信息
[root@EmbedSky /mnt]# fdisk -l
=======================================================================
Disk /dev/sda: 7933 MB, 7933526016 bytes
136 heads, 3 sectors/track, 37978 cylinders
Units = cylinders of 408 * 512 = 208896 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1697 37979 7401600 c Win95 FAT32 (LBA)
=======================================================================
3.在mnt目录下建一个usb目录(这个可随意)
[root@localhost mnt]# mkdir usb
4.挂载U盘
[root@localhost mnt]# mount /dev/sdb1 /mnt/usb/
5.进入/mnt/usb 即可看到U盘的内容了。
6.卸载U盘
[root@localhost usb]# umount -l /dev/sdb
/*********************************************************************************
*********************************************************************************/
2、光盘的挂载与U盘相似:
1.插入光盘。
2.挂载光盘
[root@localhost mnt]# mount /dev/cdrom /mnt/cdrom/
3.卸载光盘
[root@localhost usb]# umount -l /dev/cdrom
4.弹出光盘
[root@localhost usb]# eject