- 论坛徽章:
- 0
|
USB接口的移动硬盘是被当作SCSI设备对待的。
一、插入移动硬盘之前应该先用# fdisk -l看硬盘信息
移动硬盘应该是/dev/sda,硬盘是/dev/hda
二、在/mnt下建目录挂载点,如下:
# mkdir -p /mnt/usbhd1
# mkdir -p /mnt/usbhd2
三、挂载
# mount -t ntfs /dev/sda1 /mnt/usbhd1
# mount -t vfat /dev/sda2 /mnt/usbhd2
对ntfs格式的移动存储磁盘分区应用 -t ntfs ,对fat格式的移动存储磁盘分区应用 -t vfat
如果遇到汉字显示为乱码,用下面命令:
# mount -t ntfs -o iocharset=cp936 /dev/sda1 /mnt/usbhd1
# mount -t vfat -o iocharset=cp936 /dev/sda2 /mnt/usbhd2
四、若不用时卸载,用如下命令:
#umount /dev/sda1
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/99982/showart_1993069.html |
|