|
发表于 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"是怎么得来的啊?请明示好吗? |
|