免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 8951 | 回复: 29
打印 上一主题 下一主题

如何在solaris10中读取U盘(USB设备)中的文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-20 09:56 |只看该作者 |倒序浏览
我是一个solaris10的新手,在尝试读取USB设备中的文件时,只找到设备但无法读取其中文件,请教各位高手指点迷津

论坛徽章:
0
2 [报告]
发表于 2006-01-20 10:22 |只看该作者
找到设备,mount上去,就可以了

论坛徽章:
0
3 [报告]
发表于 2006-01-20 11:51 |只看该作者

论坛徽章:
0
4 [报告]
发表于 2006-01-20 11:57 |只看该作者
我是通过以下方式找到usb设备的,不知道对不对?同时,无法通过mount命令将设备添加到指定目录中,请帮个忙怎样解决。
# cfgadm
Ap_Id                          Type         Receptacle   Occupant     Condition
usb0/1                         unknown      empty        unconfigured ok
usb0/2                         usb-storage  connected    configured   ok
usb1/1                         unknown      empty        unconfigured ok
usb1/2                         unknown      empty        unconfigured ok
# mount [-r] usb0/2 /cjj
用法:
mount [-v | -p]
mount [-F FSType] [-V] [current_options] [-o specific_options]
        {专用 | mount_point}
mount [-F FSType] [-V] [current_options] [-o specific_options]
        专用 mount_point
mount -a [-F FSType ] [-V] [current_options] [-o specific_options]
        [mount_point ...]

论坛徽章:
0
5 [报告]
发表于 2006-01-20 12:01 |只看该作者
如何在Solaris下使用USB存储设备?
[S11|S10u1]: OpenSolaris可以自动检测并mount USB存储设备上的文件系统。

[S10]: 如果该USB设备已经存在文件系统,且Solaris支持该文件系统,可以直接mount该文件系统。以FAT32文件系统为例,首先要了解USB设备的路径:

   # rmformat
   Looking for devices...
   1. Logical Node: /dev/rdsk/c3t0d0p0
   Physical Node: /pci@0,0/pci1028,151@1d,7/storage@4/disk@0,0
   Connected Device: HTS42404 0M9AT00
   Device Type: Removable
然后,直接mount该设备:

   # mount -F pcfs /dev/dsk/c3t0d0p0:c /mnt

论坛徽章:
0
6 [报告]
发表于 2006-01-20 12:08 |只看该作者
多谢版主指教,但我按照以上方法却未找到U盘,不知是不是要安装驱动程序或是USB2.0,请赐教
# rmformat
正在查找设备...
No removable devices found or no media in the device.

论坛徽章:
0
7 [报告]
发表于 2006-01-20 12:53 |只看该作者
ls -lsa /dev/dsk |grep usb,  see if you can found the usb device, if not, that means the driver has problem?

论坛徽章:
0
8 [报告]
发表于 2006-01-20 13:38 |只看该作者
现在可以找到该设备了,但是mount不上它不知是什么意思,是不是过程中出错?请赐教
通过安装DDK.2.0后,可以识别USB设备了,安装情况如下:
# tar xvf DDK.2.0.tar
# cd DDK.2.0
# cp usbskel.conf /usr/kernel/drv
# cp usbskel /usr/kernel/drv

# rmformat
正在查找设备...
     1. Logical Node: /dev/rdsk/c2t0d0p0
        Physical Node: /pci@0,0/pci147b,402@1f,2/storage@2/disk@0,0
        Connected Device: HB-I1-C  F5               %z!Y
        Device Type: Removable
# mount -F pcfs /dev/dsk/c2t0d0p0:c /mnt
mount: No such device or address
#

论坛徽章:
0
9 [报告]
发表于 2006-01-20 16:26 |只看该作者
不知版主是否可以对以上情况做出一些说明,我将感激不尽

论坛徽章:
0
10 [报告]
发表于 2006-01-20 16:35 |只看该作者
不好意思,刚才没有看到.楼主可以不用选C可以试着用
mount -F pcfs /dev/dsk/c2t0d0p0:a /mnt等等试着看一下.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP