LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2791|回复: 23

solaris下u盘得安装

[复制链接]
发表于 2005-1-13 16:05:50 | 显示全部楼层 |阅读模式
我得系统是solaris 8, 现在不知道怎么使用u盘啊,哪位大哥来救救急啊
我在网上搜了好久,都没有看到比较详细得solaris 上安装u盘得文档。
我把u盘插上去以后,用命令 dmesg |grep USB 看到:
USB-device: storage@3, scsa2usb0 at bus address 4
说明u盘应该已经被系统找到了,但是我不知道它是如何挂载得。
有没有哪位大哥说明一下如何使用呢?
发表于 2005-1-16 22:18:43 | 显示全部楼层
楼上的兄弟,我很抱歉这么久才回你的帖子。但我一直在为解决你的问题而努力着。关于U盘的问题,我查过很多帖子,也亲自做过很多试验,但我一直没找到什么规律,也就是说,我直到现在,都不能总结出什么时候,在什么情况下,可以使用什么样的USB设备。所以,我想借这个回帖,请你再耐心等待一下,我和这里的朋友会尽力帮你解决这个问题,希望我们共同进步。
回复 支持 反对

使用道具 举报

发表于 2005-1-17 10:24:00 | 显示全部楼层
可惜我的U盘已经坏了,还没时间去换,垃圾台电的 ……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-17 15:43:18 | 显示全部楼层
非常的感谢corrs, 谢谢版主的热心帮助,关于u盘,其实我自己也查过很多资料,但是一直都没有找到详细的资料,所以才发帖上来问问看有没有人有过类似的经验。看到你的回帖,我很感动,我感觉不能在这里被动的等待你们的回帖,我也会继续寻找解决的办法,如果我有什么进展,一定把我的经验贴出来大家一起探讨,进步。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-22 16:11:28 | 显示全部楼层
The Current Sun Blade and SunFire machines running Solaris 8 with USB
keyboards and mice also supports USB pen drives formatted to FAT32.This
allows a quick and easy way to get files to and from site, or onto your
laptop, etc.

To mount, do the following:

1) Determine if the machine is USB capable.




> prtconf -pv | grep 000c03


      Reporting:


      "class-code: 000c0300"


            you have the UHCI USB controller (typical for Solaris x86).


      "class-code: 000c0310"


            you have the OHCI USB controller; this controller is typically
USB 1.1 at 12 mbit/sec (which allows, practically, about 1 mbyte per
second).


      "class-code: 000c0320"


             you have the EHCI (USB v2) controller.

      If it reports nothing, you don't have USB support.


2) Insert the USB pen drive and check for messages from the scsa2usb
driver:

> dmesg | grep scsa2usb

      Reporting something of the form:

      Sep 25 01:14:09 eunice scsi: [ID 193665 kern.info] sd45 at scsa2usb0:
      target 0 lun 0

      Sep 25 01:14:09 eunice genunix: [ID 408114 kern.info]
      /pci@8,700000/usb@5,3/hub@3/storage@1 (scsa2usb0) online

Removing the pen drive will add a line of the form:

      Sep 25 01:14:09 eunice genunix: [ID 408114 kern.info]
      /pci@8,700000/usb@5,3/hub@3/storage@1 (scsa2usb0) offline



3) Determine which SCSI channel the USB device is mapping to, using the pci
device string from the previous step..

> ls -alrt /dev/rdsk | grep "pci@8,700000/usb@5,3/hub@3/storage@1"

      Reporting:


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s7 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:h,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s6 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:g,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s5 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:f,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s4 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:e,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s3 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:d,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s2 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:c,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s1 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:b,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s0 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:a,raw


What we are interested in here is the controller, target, and disk (c4t0d0
).


4) Now we can mount the pen drive. The slice and subslice appears to depend
on how and where the USB pen drive was formatted. For a pen drive formatted
to FAT32 on a Windows PC, use slice 0, subslice 1.

> mount -F pcfs /dev/dsk/c4t0d0s0:1 /mnt

You can now read and write data to the pen drive.


5) Remember to unmount the pen device BEFORE removing it from the machine.

> umount /mnt

but when i perform the forth step , it shows:
mount: /dev/dsk/c3t0d0s0:1 is already mounted, /mnt is busy, or allowable
number of mount points exceeded

And then I entered command "mount" to see all mounted devices, but no
/dev/dsk/c3* in the mounted list.
Then I tried to umount /mnt and it reported :
umount: warning: /mnt not in mnttab
umount: /mnt not mounted

any problem?
回复 支持 反对

使用道具 举报

发表于 2005-3-16 17:52:49 | 显示全部楼层
Post by frankie
The Current Sun Blade and SunFire machines running Solaris 8 with USB
keyboards and mice also supports USB pen drives formatted to FAT32.This
allows a quick and easy way to get files to and from site, or onto your
laptop, etc.

To mount, do the following:

1) Determine if the machine is USB capable.




> prtconf -pv | grep 000c03


      Reporting:


      "class-code: 000c0300"


            you have the UHCI USB controller (typical for Solaris x86).


      "class-code: 000c0310"


            you have the OHCI USB controller; this controller is typically
USB 1.1 at 12 mbit/sec (which allows, practically, about 1 mbyte per
second).


      "class-code: 000c0320"


             you have the EHCI (USB v2) controller.

      If it reports nothing, you don't have USB support.


2) Insert the USB pen drive and check for messages from the scsa2usb
driver:

> dmesg | grep scsa2usb

      Reporting something of the form:

      Sep 25 01:14:09 eunice scsi: [ID 193665 kern.info] sd45 at scsa2usb0:
      target 0 lun 0

      Sep 25 01:14:09 eunice genunix: [ID 408114 kern.info]
      /pci@8,700000/usb@5,3/hub@3/storage@1 (scsa2usb0) online

Removing the pen drive will add a line of the form:

      Sep 25 01:14:09 eunice genunix: [ID 408114 kern.info]
      /pci@8,700000/usb@5,3/hub@3/storage@1 (scsa2usb0) offline



3) Determine which SCSI channel the USB device is mapping to, using the pci
device string from the previous step..

> ls -alrt /dev/rdsk | grep "pci@8,700000/usb@5,3/hub@3/storage@1"

      Reporting:


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s7 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:h,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s6 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:g,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s5 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:f,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s4 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:e,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s3 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:d,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s2 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:c,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s1 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:b,raw


      lrwxrwxrwx 1 root root 65 Sep 23 15:24 c4t0d0s0 ->
../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:a,raw


What we are interested in here is the controller, target, and disk (c4t0d0
).


4) Now we can mount the pen drive. The slice and subslice appears to depend
on how and where the USB pen drive was formatted. For a pen drive formatted
to FAT32 on a Windows PC, use slice 0, subslice 1.

> mount -F pcfs /dev/dsk/c4t0d0s0:1 /mnt

You can now read and write data to the pen drive.


5) Remember to unmount the pen device BEFORE removing it from the machine.

> umount /mnt

but when i perform the forth step , it shows:
mount: /dev/dsk/c3t0d0s0:1 is already mounted, /mnt is busy, or allowable
number of mount points exceeded

And then I entered command "mount" to see all mounted devices, but no
/dev/dsk/c3* in the mounted list.
Then I tried to umount /mnt and it reported :
umount: warning: /mnt not in mnttab
umount: /mnt not mounted

any problem?



我试过你的方法啦,也成功啦,但mount的U盘设备号我是找的,你的方法我有点不明白,尤其第一步到第二步,"scsa2usb"是怎么得来的啊?请明示好吗?
回复 支持 反对

使用道具 举报

发表于 2005-3-23 09:31:38 | 显示全部楼层
再问下,solaris下能用ntfs文件格式的U盘吗?
回复 支持 反对

使用道具 举报

发表于 2005-3-29 10:59:58 | 显示全部楼层
在 solaris下,U盘能做到即插即用吗?谢谢指教
回复 支持 反对

使用道具 举报

发表于 2005-3-29 15:25:40 | 显示全部楼层
今天特意问了SUN的讲师,据说SOL 10有个叫vold的进程,类似于WIN系统的发现新硬件,有了它,插上U盘后会自动MOUNT的。


以上说法没得到证实,请试过的朋友回个帖子告诉大家结果,谢谢。
回复 支持 反对

使用道具 举报

发表于 2005-3-30 13:58:27 | 显示全部楼层
恩,把信的原文贴给大家:


Here's how I use usb storage on solaris.

After you plug your usb storage, restart vold, then the usb storage
should be attached to /rmdisk/rmdisk0/.
you can use "mount" command to see where it is mounted.

Let me know if you have questions.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表