或者
问答详情页顶部banner图
您的位置:首页 >开发 > 软件开发 > 电商系统 > linux 如何挂载移动硬盘

linux 如何挂载移动硬盘

提问者:小小虾  |   分类:电商系统  |   浏览245次  |   悬赏分:0积分 2017-06-19 09:49:02

linux 如何挂载移动硬盘

最佳答案 发布于2017-06-19 14:36:13
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 了解更多开源相关,去LUPA社区看看吧。
本回答由小曹推荐
  • 小曹

    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 了解更多开源相关,去LUPA社区看看吧。

    2017-06-19 16:23:24
    评论0  |   0
问答详情中间banner