1、挂载CD
这个很简单的:
#cd /media
#mkdir mycd //先建一个挂载的文件夹
#mount /dev/cdrom /media/mycd //这就挂载了一个CD
2、挂载U盘
挂u盘之前,运行命令cat /proc/partitions,看看现在系统中有哪些分区。插上u盘以后,再次运行上述命令,看看多出来什么分区:
或用fdisk –l查看分区信息
然后:
卸载时如果说忙碌的话可强制卸载,命令为:
umount -l /mnt/usb
如果想要支持汉字显示,则用-o参数
mount -t vfat -o iocharset=gb2312 /dev/sdb /mnt/usb
Redhat9的字体显示的确比不上windows,都是中文支持的问题,这主要是mount分区的时候没有使用iocharset参数,并不是linux对中文支持的问题。可以采用下列类似命令:
mount -t vfat -o iocharset=cp936 /dev/sda1 /mnt/usb
mount -t vfat -o iocharset=gb2312 /dev/sda1 /mnt/usb
mount -t ntfs -o iocharset=cp936 /dev/sda1 /mnt/usb
mount -t msdos -o iocharset=gb2312 /dev/sda1 /mnt/usb
问题:
有时候vm不能自动检测到U盘
同时在控制面板中组件服务->服务中开启VM的相关功能: