ChinaUnix.net
 >> ChinaUnix.net > Solaris

在Sun Blade 100上使用优盘小记

作者:linuxe     发表时间:2002/12/03 03:51pm

[这个贴子最后由linuxe在 2002/12/03 04:28pm 编辑]

插入优盘前
root@dbcon # ls /dev/usb
hid0           hid1           hub0


插入后
root@dbcon # ls /dev/usb
hid0           hid1           hub0           mass-storage0

root@dbcon # ls -l /dev/usb
total 8
lrwxrwxrwx 1 root  root   50 Oct  8 16:42 hid0 -> ../../devices/pci@1f,0/usb@c,3/keyboard@2:keyboard
lrwxrwxrwx 1 root  root   44 Nov 19 21:08 hid1 -> ../../devices/pci@1f,0/usb@c,3/mouse@4:mouse
lrwxrwxrwx 1 root  root   37 Oct  8 16:42 hub0 -> ../../devices/pci@1f,0/usb@c,3:devctl
lrwxrwxrwx 1 root  root   47 Dec  3 12:40 mass-storage0 -> ../../devices/pci@1f,0/usb@c,3/storage@1:devctl

root@dbcon # ls -l /dev/dsk
total 48
lrwxrwxrwx 1 root  root   38 Oct  8 16:41 c0t0d0s0 -> ../../devices/pci@1f,0/ide@d/dad@0,0:a
lrwxrwxrwx 1 root  root   38 Oct  8 16:41 c0t0d0s1 -> ../../devices/pci@1f,0/ide@d/dad@0,0:b
lrwxrwxrwx 1 root  root   38 Oct  8 16:41 c0t0d0s2 -> ../../devices/pci@1f,0/ide@d/dad@0,0:c
lrwxrwxrwx 1 root  root   38 Oct  8 16:41 c0t0d0s3 -> ../../devices/pci@1f,0/ide@d/dad@0,0:d
lrwxrwxrwx 1 root  root   38 Oct  8 16:41 c0t0d0s4 -> ../../devices/pci@1f,0/ide@d/dad@0,0:e
lrwxrwxrwx 1 root  root   38 Oct  8 16:41 c0t0d0s5 -> ../../devices/pci@1f,0/ide@d/dad@0,0:f
lrwxrwxrwx 1 root  root   38 Oct  8 16:41 c0t0d0s6 -> ../../devices/pci@1f,0/ide@d/dad@0,0:g
lrwxrwxrwx 1 root  root   38 Oct  8 16:41 c0t0d0s7 -> ../../devices/pci@1f,0/ide@d/dad@0,0:h
lrwxrwxrwx 1 root  root   37 Oct  8 16:41 c0t1d0s0 -> ../../devices/pci@1f,0/ide@d/sd@1,0:a
lrwxrwxrwx 1 root  root   37 Oct  8 16:41 c0t1d0s1 -> ../../devices/pci@1f,0/ide@d/sd@1,0:b
lrwxrwxrwx 1 root  root   37 Oct  8 16:41 c0t1d0s2 -> ../../devices/pci@1f,0/ide@d/sd@1,0:c
lrwxrwxrwx 1 root  root   37 Oct  8 16:41 c0t1d0s3 -> ../../devices/pci@1f,0/ide@d/sd@1,0:d
lrwxrwxrwx 1 root  root   37 Oct  8 16:41 c0t1d0s4 -> ../../devices/pci@1f,0/ide@d/sd@1,0:e
lrwxrwxrwx 1 root  root   37 Oct  8 16:41 c0t1d0s5 -> ../../devices/pci@1f,0/ide@d/sd@1,0:f
lrwxrwxrwx 1 root  root   37 Oct  8 16:41 c0t1d0s6 -> ../../devices/pci@1f,0/ide@d/sd@1,0:g
lrwxrwxrwx 1 root  root   37 Oct  8 16:41 c0t1d0s7 -> ../../devices/pci@1f,0/ide@d/sd@1,0:h
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s0 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:a
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s1 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:b
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s2 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:c
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s3 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:d
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s4 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:e
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s5 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:f
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s6 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:g
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s7 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:h

由以上可见,Solaris8系统已识别优盘。但mount的多次都不行,只好老实查man了。

最后:

root@dbcon # mount -F pcfs /dev/dsk/c1t0d0s0:c /mnt
root@dbcon #
root@dbcon # ls -l /mnt
total 100
drwxrwxrwx   1 root     other       2048 Nov 22 17:10 SE-105
drwxrwxrwx   1 root     other       2048 Nov 22 17:10 SE-M01
drwxrwxrwx   1 root     other       2048 Oct 23 01:42 Tables
drwxrwxrwx   1 root     other       2048 Aug 12 14:56 Tools
-rwxrwxrwx   1 root     other      42766 Dec  3 12:13 vxlic_bak021204
root@dbcon #
root@dbcon # umount /mnt
root@dbcon #

ok :)


此文章相关评论:
该文章有40个相关评论如下:(点这儿可以发表评论)
南非蜘蛛 发表于: 2002/12/03 04:05pm
太好了,我一直就等这篇文章那
 
race 发表于: 2002/12/03 04:10pm
你的运气真好,能让系统自动识到了
 
南非蜘蛛 发表于: 2002/12/03 04:12pm
[quote][b]下面引用由[u]race[/u]在 [i]2002/12/03 04:10pm[/i] 发表的内容:[/b]
你的运气真好,能让系统自动识到了
[/quote]
难道老大你的,没有识别吗?
 
wsy1017 发表于: 2002/12/03 04:16pm
你的优盘是啥牌子,BLADE2000能用吗????
 
南非蜘蛛 发表于: 2002/12/03 04:17pm
我得活动硬盘是argosy的,好像也可以
 
linuxe 发表于: 2002/12/03 04:18pm
[这个贴子最后由linuxe在 2002/12/03 04:34pm 编辑]

谢谢斑竹鼓励:)

那台Blade 100装的是Solaris 8  02/2, 打过Cluster补丁集。

 
linuxe 发表于: 2002/12/03 04:21pm
[quote][b]下面引用由[u]wsy1017[/u]在 [i]2002/12/03 04:16pm[/i] 发表的内容:[/b]
你的优盘是啥牌子,BLADE2000能用吗????
[/quote]

狮王32M的。

对不起,我这里没有Blade 2000:(

 
windowsnt 发表于: 2002/12/03 04:26pm
为什么还要加:c呢?
 
linuxe 发表于: 2002/12/03 04:33pm
[quote][b]下面引用由[u]windowsnt[/u]在 [i]2002/12/03 04:26pm[/i] 发表的内容:[/b]
为什么还要加:c呢?
[/quote]

我觉得这就是关键点吧。

:c 表示pcfs(dos文件系统)的第一个分区,

如果盘上只有一个分区的话也就是它了,

如果优盘有多个分区的话,依次就是 :c, :d, :e .......

 
南非蜘蛛 发表于: 2002/12/03 04:35pm
你可以分两个区,验证一下吗?
 
linuxe 发表于: 2002/12/03 04:39pm
不好意思啦。可能是我对文档的理解有误吧。我还不知道如何将优盘分两个区。
 
race 发表于: 2002/12/03 04:41pm
我的不是优盘,只是一个CF卡和读卡器,/dev/dsk下没有识别,另外一个杂牌子的USB外置盘可以识别。机器是BLADE2000
 
linuxe 发表于: 2002/12/03 04:43pm
[这个贴子最后由linuxe在 2002/12/03 04:50pm 编辑]

man pcfs

Name
pcfs - DOS formatted file system

Synopsis
#include <sys/param.h>
#include <sys/mount.h>
#include <sys/fs/pc_fs.h>

int mount(const char *spec, const char *dir, int mflag, &laquo;pcfs", structpcfs_args, struct *pc_argp, sizeof (struct pcfs_args));

Description
pcfs is a file system type that allows users direct access to files on DOS formatted disks from within the SunOS operating system. Once mounted, pcfs provides standard SunOS file operations and semantics. That is, users can create, delete, read, and write files on a DOS formatted disk. They can also create and delete directories and list files in a directory.

The pcfs file system contained on the block special file identified by spec is mounted on the directory identified by dir. spec and dir are pointers to pathnames. mflag specifies the mount options. The MS_DATA bit in mflag must be set. Mounting a pcfs file system requires a pointer to a structure containing mount flags and local timezone information, *pc_argp:

struct pcfs_args {


int timezone;
/* seconds west of Greenwich */
int daylight;
/* type of dst correction */ int flags; };
The information required in the timezone and daylight members of this structure is described in ctime(3C) . flags can contain the PCFS_MNT_FOLDCASE flag. Fold names read from the file system to lowercase.

Mounting File Systems
Use the following command to mount pcfs from diskette:

mount -F pcfs device-special directory-name

You can use:

mount directory-name

if the following line is in your /etc/vfstab file: device-special - directory-namepcfs - no rw

Use the following command to mount pcfs from non-diskette media:

mount -F pcfs device-special:logical-drive directory-name

You can use:

mount directory-name

if the following line is in your /etc/vfstab file:

device-special:logical_drive - directory-name pcfs - no rw

device-special specifies the special block device file for the diskette (/dev/disketteN) or the entire hard disk (/dev/dsk/cNtNdNp0 for a SCSI disk, and /dev/dsk/cNdNp0 for IDE disks) or the PCMCIA pseudo-floppy memory card (/dev/dsk/cNtNdNsN).

logical-drive specifies either the DOS logical drive letter (c through z) or a drive number (1 through 24). Drive letter c is equivalent to drive number 1 and represents the Primary DOS partition on the disk; drive letters d through z are equivalent to drive numbers 2 through 24, and represent DOS drives within the Extended DOS partition. Note that device-special and logical-drive must be separated by a colon.

directory-name specifies the location where the file system is mounted.

[u]For example, to mount the Primary DOS partition from a SCSI hard disk, use:

mount -F pcfs /dev/dsk/cNtNdNp0:c /pcfs/c

To mount the first logical drive in the Extended DOS partition from an IDE hard disk, use:

mount -F pcfs /dev/dsk/cNdNp0:d /pcfs/d [/u]

To mount a DOS diskette in the first floppy drive, if Volume Management is not running (see vold(1M) ) use:

mount -F pcfs /dev/diskette /pcfs/a

If Volume Management is running, then running volcheck(1) will automatically mount the floppy and some removable disks for the user.

To mount a PCMCIA pseudo-floppy memory card, with Volume Management not running (or not managing the PCMCIA media), use:

mount -F pcfs /dev/dsk/cNtNdNsN /pcfs

Conventions
Files and directories created through pcfs have to comply with either the DOS short file name convention or the long file name convention introduced with Windows 95. The DOS short file name convention is of the form filename[.ext], where filename generally consists of from one to eight upper-case characters, while the optional ext consists of from one to three upper-case characters.

The long file name convention is much closer to Solaris file names. A long file name can consist of any any characters valid in a short file name, lowercase letters, non-leading spaces, the characters +,;=[], any number of periods, and can be up to 255 characters long. Long file names have an associated short file name for systems that do not support long file names (such as earlier releases of Solaris). The short file name is not visible if the system recognizes long file names. pcfs generates a unique short name automatically when creating a long file name.

Given a long file name such as This is a really long

filename.TXT,
the short file name will generally be of the form THISIS~N.TXT, where N is a number. So, this long file name will probably get the short name THISIS~1.TXT, or THISIS~2.TXT if THISIS~1.TXT already exits (or THISIS~3.TXT if both exist, and so forth). If you need to use pcfs file systems on systems that do not support long file names, you may want to continue following the short file name conventions. See EXAMPLES.
When creating a file name, pcfs creates a short file name if it fits the DOS short file name format, otherwise it creates a long file name. This is because long file names take more directory space. In fact, since the root directory of a pcfs file system is fixed size, long file names in the root directory should be avoided if possible.

When displaying file names, pcfs shows them exactly as they are on the media (so short names show up as all uppercase, and long file names retain their case). The old behavior of pcfs was to fold all names to lowercase, which can be forced with the PCFS_MNT_FOLDCASE mount option. All file name searches within pcfs, however, are treated as if they were uppercase, so readme.txt and ReAdMe.TxT refer to the same file.

To format a diskette or a PCMCIA pseudo-floppy memory card in DOS format in the SunOS system, use either the fdformat -d or the DOS FORMAT command.

Boot Partitions
On IA systems, hard drives may contain an fdisk partition reserved for the Solaris boot utilities. These partitions are special instances of pcfs. You can mount an IA boot partition with the command:

mount -F pcfs device-special:boot directory-name

or you can use:

mount directory-name

if the following line is in your /etc/vfstab file:

device-special:boot - directory-name pcfs - no rw

device-special specifies the special block device file for the entire hard disk (/dev/dsk/cNtNdNp0)

directory-name specifies the location where the file system is mounted.

All files on a boot partition are owned by super-user. Only the super-user may create, delete, or modify files on a boot partition.

Examples
Example 1: Sample Displays of File Names

If you copy a file financial.data from a UNIX file system to pcfs, it will show up as financial.data in pcfs, but will probably show up as FINANC~1.DAT in systems that do not support long file names.

The following file names are not legal short file names, but are legal long file names :

test.sh.orig

data+

.login
Other systems that do not support long file names may well see:

TESTSH~1.ORI
DATA~1
LOGIN~1
The short file name is generated from the initial characters of the long file name, so it is better to differentiate names in the first few characters. For example, these names:

WorkReport.January.Data

WorkReport.February.Data

WorkReport.March.Data

result in these short names, which are not very distinguishable:

WORKRE~1.DAT
WORKRE~2.DAT
WORKRE~13.DAT
These names, however:

January.WorkReport.Data

February.WorkReport.Data

March.WorkReport.Data

result in the more descriptive short names:

JANUAR~1.DAT
FEBRUA~1.DAT
MARCHW~1.DAT
Files
/usr/lib/fs/pcfs/mount
pcfs mount command

/usr/kernel/fs/pcfs
32-bit kernel module

/usr/kernel/fs/sparcv9/pcfs
64-bit kernel module

See Also
chgrp(1) , chown(1) , dos2unix(1) , eject(1) , fdformat(1) , unix2dos(1) , volcheck(1) , mount(1M) , mount_pcfs(1M) , vold(1M) , ctime(3C) , vfstab(4) , pcmem(7D)

Warnings
Do not physically eject a DOS floppy while the device is still mounted as pcfs. If Volume Management is managing a device, use the eject(1) command before physically removing media.

When mounting pcfs on a hard disk, make sure the first block on that device contains a valid fdisk partition table.

Because pcfs has no provision for handling owner-IDs or group-IDs on files, chown(1) or chgrp(1) may generate various errors. This is a limitation of pcfs, but it should not cause problems other than error messages.

Notes
The following characters are the only ones allowed in pcfs short file names and extensions:

0-9
A-Z
$#&@!%()-{}<>`_^~|'
SunOS and DOS use different character sets and have different requirements for the text file format. Use the dos2unix(1) and unix2dos(1) commands to convert files between them.

pcfs offers a convenient transportation vehicle for files between Sun Workstations and PCs. Since the DOS disk format was designed for use under DOS, it is quite inefficient to operate under the SunOS system. Therefore, it should not be used as the format for a regular local storage. Use ufs instead for local storage within the SunOS system.

Although long file names can contain spaces (just as in UNIX file names), some utilities may be confused by them.

This implementation of pcfs conforms to the behavior exhibited by Windows 95 version 4.00.950.

Bugs
pcfs should handle the disk change condition in the same way that DOS does, so that the user does not need to unmount the file system to change floppies.

When listing or searching a directory, pcfs does not include files with the hidden or system bits set.

 
sunmarmot 发表于: 2002/12/03 04:44pm
嘿嘿!!这可是好多人期待的东东啊
 
zpdpd 发表于: 2002/12/03 05:11pm
是啊
 
iricyan 发表于: 2002/12/03 06:44pm
终于解决了!
又长知识了!
不过,优盘和USB硬盘应该是同一种处理的方法吧!
 
jorsa 发表于: 2002/12/03 06:46pm
太棒了,和我的优盘一模一样,来试试
 
iricyan 发表于: 2002/12/03 07:01pm
希望有人能试试,然后把结果share!
 
jjm 发表于: 2002/12/03 10:01pm
不知道U10支持不?
 
fanfan 发表于: 2002/12/03 11:35pm
我的优盘是爱国者的,按楼主的步骤试了一下,mount上之后没东西,而且也拷不进去东西,说什么:operation not applicable.不知什么原因
 
sunuser 发表于: 2002/12/04 09:52am
"由以上可见,Solaris8系统已识别优盘"
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s0 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:a

    是不是插入优盘后发现usb新设备后,即说明优盘可用?
   

 
linuxe 发表于: 2002/12/04 09:55am
[quote][b]下面引用由[u]fanfan[/u]在 [i]2002/12/03 11:35pm[/i] 发表的内容:[/b]
我的优盘是爱国者的,按楼主的步骤试了一下,mount上之后没东西,而且也拷不进去东西,说什么:operation not applicable.不知什么原因
[/quote]

请列出下列相关信息,可以吗?
ls -l /dev/usb
ls -l /dev/dsk
及你试过的mount命令

 
jorsa 发表于: 2002/12/04 10:13am
我的郎科32M无驱高速形成功,BLADE100,SOLARIS8

拔下前一定要unmount么
但这样似乎要每次使用都mount, 可否让它象光pan一样插上就可用呢

 
linuxe 发表于: 2002/12/04 10:52am
[这个贴子最后由linuxe在 2002/12/04 10:56am 编辑]

[quote][b]下面引用由[u]sunuser[/u]在 [i]2002/12/04 09:52am[/i] 发表的内容:[/b]
"由以上可见,Solaris8系统已识别优盘"
lrwxrwxrwx 1 root  root   51 Dec  3 12:14 c1t0d0s0 -> ../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:a
    是不是插入优盘后发现usb新设备后,即 ...
[/quote]

我的理解是这样吧。

我觉的与下面ls -l /dev/usb的结果比较,
lrwxrwxrwx   1 root     root          47 Dec  3 12:40 mass-storage0 -> ../../devices/pci@1f,0/usb@c,3/storage@1:devctl
可以确认,在我用的那台Blade100上,mass-storages0与c1t0d0s0是指同一个设备。

 
linuxe 发表于: 2002/12/04 11:37am
[quote][b]下面引用由[u]jorsa[/u]在 [i]2002/12/04 10:13am[/i] 发表的内容:[/b]
我的郎科32M无驱高速形成功,BLADE100,SOLARIS8
拔下前一定要unmount么
但这样似乎要每次使用都mount, 可否让它象光pan一样插上就可用呢
[/quote]

现在好象还不行吧。

我也希望不要每次都须umount :)

 
YT 发表于: 2002/12/04 10:38pm
支持!
在WIN 2K下面都是先UMOUNT再拔的,
觉得小心为上!
 
fanfan 发表于: 2002/12/04 11:35pm
[quote][b]下面引用由[u]linuxe[/u]在 [i]2002/12/04 09:55am[/i] 发表的内容:[/b]
请列出下列相关信息,可以吗?
ls -l /dev/usb
ls -l /dev/dsk
及你试过的mount命令
[/quote]

blade1000{fanfan}% ls -l /dev/usb
total 12
lrwxrwxrwx   1 root     root          48 Aug 24 10:49 hid0 -> ../../devices/pci@8,700000/usb@5,3/mouse@3:mouse
lrwxrwxrwx   1 root     root          54 Aug 24 10:49 hid1 -> ../../devices/pci@8,700000/usb@5,3/keyboard@4:keyboard
lrwxrwxrwx   1 root     root          48 Sep 13 11:09 hid2 -> ../../devices/pci@8,700000/usb@5,3/mouse@1:mouse
lrwxrwxrwx   1 root     root          54 Sep 13 11:09 hid3 -> ../../devices/pci@8,700000/usb@5,3/keyboard@2:keyboard
lrwxrwxrwx   1 root     root          41 Dec 25  2001 hub0 -> ../../devices/pci@8,700000/usb@5,3:devctl
lrwxrwxrwx   1 root     root          51 Dec  4 23:06 mass-storage0 -> ../../devices/pci@8,700000/usb@5,3/storage@3:devctl
blade1000{fanfan}% ls -l /dev/dsk
total 96
lrwxrwxrwx   1 root     root          42 Dec 25  2001 c0t6d0s0 -> ../../devices/pci@8,700000/scsi@6/sd@6,0:a
lrwxrwxrwx   1 root     root          42 Dec 25  2001 c0t6d0s1 -> ../../devices/pci@8,700000/scsi@6/sd@6,0:b
lrwxrwxrwx   1 root     root          42 Dec 25  2001 c0t6d0s2 -> ../../devices/pci@8,700000/scsi@6/sd@6,0:c
lrwxrwxrwx   1 root     root          42 Dec 25  2001 c0t6d0s3 -> ../../devices/pci@8,700000/scsi@6/sd@6,0:d
lrwxrwxrwx   1 root     root          42 Dec 25  2001 c0t6d0s4 -> ../../devices/pci@8,700000/scsi@6/sd@6,0:e
lrwxrwxrwx   1 root     root          42 Dec 25  2001 c0t6d0s5 -> ../../devices/pci@8,700000/scsi@6/sd@6,0:f
lrwxrwxrwx   1 root     root          42 Dec 25  2001 c0t6d0s6 -> ../../devices/pci@8,700000/scsi@6/sd@6,0:g
lrwxrwxrwx   1 root     root          42 Dec 25  2001 c0t6d0s7 -> ../../devices/pci@8,700000/scsi@6/sd@6,0:h
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t1d0s0 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf0a0abf,0:a
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t1d0s1 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf0a0abf,0:b
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t1d0s2 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf0a0abf,0:c
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t1d0s3 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf0a0abf,0:d
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t1d0s4 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf0a0abf,0:e
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t1d0s5 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf0a0abf,0:f
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t1d0s6 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf0a0abf,0:g
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t1d0s7 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf0a0abf,0:h
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t2d0s0 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020379a03dd,0:a
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t2d0s1 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020379a03dd,0:b
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t2d0s2 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020379a03dd,0:c
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t2d0s3 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020379a03dd,0:d
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t2d0s4 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020379a03dd,0:e
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t2d0s5 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020379a03dd,0:f
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t2d0s6 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020379a03dd,0:g
lrwxrwxrwx   1 root     root          70 Dec 25  2001 c1t2d0s7 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020379a03dd,0:h
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t0d0s0 -> ../../devices/pci@8,700000/scsi@6,1/sd@0,0:a
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t0d0s1 -> ../../devices/pci@8,700000/scsi@6,1/sd@0,0:b
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t0d0s2 -> ../../devices/pci@8,700000/scsi@6,1/sd@0,0:c
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t0d0s3 -> ../../devices/pci@8,700000/scsi@6,1/sd@0,0:d
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t0d0s4 -> ../../devices/pci@8,700000/scsi@6,1/sd@0,0:e
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t0d0s5 -> ../../devices/pci@8,700000/scsi@6,1/sd@0,0:f
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t0d0s6 -> ../../devices/pci@8,700000/scsi@6,1/sd@0,0:g
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t0d0s7 -> ../../devices/pci@8,700000/scsi@6,1/sd@0,0:h
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t1d0s0 -> ../../devices/pci@8,700000/scsi@6,1/sd@1,0:a
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t1d0s1 -> ../../devices/pci@8,700000/scsi@6,1/sd@1,0:b
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t1d0s2 -> ../../devices/pci@8,700000/scsi@6,1/sd@1,0:c
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t1d0s3 -> ../../devices/pci@8,700000/scsi@6,1/sd@1,0:d
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t1d0s4 -> ../../devices/pci@8,700000/scsi@6,1/sd@1,0:e
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t1d0s5 -> ../../devices/pci@8,700000/scsi@6,1/sd@1,0:f
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t1d0s6 -> ../../devices/pci@8,700000/scsi@6,1/sd@1,0:g
lrwxrwxrwx   1 root     root          44 Feb 27  2002 c2t1d0s7 -> ../../devices/pci@8,700000/scsi@6,1/sd@1,0:h
lrwxrwxrwx   1 root     root          55 Dec  3 22:01 c4t0d0s0 -> ../../devices/pci@8,700000/usb@5,3/storage@3/disk@0,0:a
lrwxrwxrwx   1 root     root          55 Dec  3 22:01 c4t0d0s1 -> ../../devices/pci@8,700000/usb@5,3/storage@3/disk@0,0:b
lrwxrwxrwx   1 root     root          55 Dec  3 22:01 c4t0d0s2 -> ../../devices/pci@8,700000/usb@5,3/storage@3/disk@0,0:c
lrwxrwxrwx   1 root     root          55 Dec  3 22:01 c4t0d0s3 -> ../../devices/pci@8,700000/usb@5,3/storage@3/disk@0,0:d
lrwxrwxrwx   1 root     root          55 Dec  3 22:01 c4t0d0s4 -> ../../devices/pci@8,700000/usb@5,3/storage@3/disk@0,0:e
lrwxrwxrwx   1 root     root          55 Dec  3 22:01 c4t0d0s5 -> ../../devices/pci@8,700000/usb@5,3/storage@3/disk@0,0:f
lrwxrwxrwx   1 root     root          55 Dec  3 22:01 c4t0d0s6 -> ../../devices/pci@8,700000/usb@5,3/storage@3/disk@0,0:g
lrwxrwxrwx   1 root     root          55 Dec  3 22:01 c4t0d0s7 -> ../../devices/pci@8,700000/usb@5,3/storage@3/disk@0,0:h

我用的命令是
mount -F pcfs /dev/dsk/c4t0d0s0:c /usb_dir
mount: /dev/dsk/c4t0d0s0:c is not a DOS filesystem.
有时mount上看到的是乱码

 
xiekai80328 发表于: 2002/12/05 00:14am
谢谢
 
YT 发表于: 2002/12/05 01:40am
[quote][b]下面引用由[u]fanfan[/u]在 [i]2002/12/04 11:35pm[/i] 发表的内容:[/b]
blade1000{fanfan}% ls -l /dev/usb
total 12
lrwxrwxrwx   1 root     root          48 Aug 24 10:49 hid0 -> ../../devices/pci@8,700000/usb@5,3/mouse@3:mouse
lrwxrwxrwx   1 root     root           ...
[/quote]
乱码?
字体不支持?
 
linuxe 发表于: 2002/12/05 09:33am
[quote][b]下面引用由[u]fanfan[/u]在 [i]2002/12/04 11:35pm[/i] 发表的内容:[/b]
blade1000{fanfan}% ls -l /dev/usb
total 12
lrwxrwxrwx   1 root     root          48 Aug 24 10:49 hid0 -> ../../devices/pci@8,700000/usb@5,3/mouse@3:mouse
lrwxrwxrwx   1 root     root           ...
[/quote]

请试试
mount -F pcfs /dev/dsk/c4t0d0s2:c /usb_dir

 
sunuser 发表于: 2002/12/05 10:25am
  找了一个ecom优盘。下面是我安装优盘的过程,请楼主指点!
插入后在/dev/dsk和/dev/usb下,发现新设备。
# pwd
/dev/dsk
# ls -l|grep usb
 lrwxrwxrwx   1 root     root          55 Dec  5 09:40 c4t0d0s0 -> ../../devices/
pci@8,700000/usb@5,3/storage@1/disk@0,0:a
lrwxrwxrwx   1 root     root          55 Dec  5 09:40 c4t0d0s1 -> ../../devices/
pci@8,700000/usb@5,3/storage@1/disk@0,0:b
lrwxrwxrwx   1 root     root          55 Dec  5 09:40 c4t0d0s2 -> ../../devices/
pci@8,700000/usb@5,3/storage@1/disk@0,0:c
lrwxrwxrwx   1 root     root          55 Dec  5 09:40 c4t0d0s3 -> ../../devices/
pci@8,700000/usb@5,3/storage@1/disk@0,0:d
lrwxrwxrwx   1 root     root          55 Dec  5 09:40 c4t0d0s4 -> ../../devices/
pci@8,700000/usb@5,3/storage@1/disk@0,0:e
lrwxrwxrwx   1 root     root          55 Dec  5 09:40 c4t0d0s5 -> ../../devices/
pci@8,700000/usb@5,3/storage@1/disk@0,0:f
lrwxrwxrwx   1 root     root          55 Dec  5 09:40 c4t0d0s6 -> ../../devices/
pci@8,700000/usb@5,3/storage@1/disk@0,0:g
lrwxrwxrwx   1 root     root          55 Dec  5 09:40 c4t0d0s7 -> ../../devices/
pci@8,700000/usb@5,3/storage@1/disk@0,0:h                                      
# cd /dev/usb
# ls -l
total 8
lrwxrwxrwx   1 root     root          54 Aug 14 11:29 hid2 -> ../../devices/pci@
8,700000/usb@5,3/keyboard@4:keyboard
lrwxrwxrwx   1 root     root          48 Aug 14 11:29 hid3 -> ../../devices/pci@
8,700000/usb@5,3/mouse@3:mouse
lrwxrwxrwx   1 root     root          41 Aug 13 18:32 hub0 -> ../../devices/pci@
8,700000/usb@5,3:devctl
lrwxrwxrwx   1 root     root          51 Dec  5 09:40 mass-storage0 -> ../../dev
ices/pci@8,700000/usb@5,3/storage@1:devctl                                    
# mount -F pcfs /dev/dsk/c4t0d0s0:c /mnt
mount: I/O error                            
请楼主指点!

   

 
jorsa 发表于: 2002/12/05 10:49am
由于没有管理员权限,我只好不umount直接拔了
下次再用(同样没有再次mount),可以看到目录里的东西
,也可以删除,但是我cp一大堆文件到一半就i/o error. 吓了一跳,以为怀了,但到pc上没问题.
不死心,回来再试,只要一cp or mkdir就i/o error, 有何办法
 
YT 发表于: 2002/12/05 01:32pm
接口不好吧?
呵呵
找凤凰MM帮你接这个!
 
jorsa 发表于: 2002/12/05 02:18pm
凤凰MM? who
 
linuxe 发表于: 2002/12/05 03:19pm
[quote][b]下面引用由[u]sunuser[/u]在 [i]2002/12/05 10:25am[/i] 发表的内容:[/b]
找了一个ecom优盘。下面是我安装优盘的过程,请楼主指点!
插入后在/dev/dsk和/dev/usb下,发现新设备。
# pwd
/dev/dsk
...
[/quote]

不好意思啦,谈不上指点。关于优盘我也没有太多的经验,只是我的运气好了点而已:em51:

请试试先devfsadm后,再mount.
也请试试
mount -F pcfs /dev/dsk/c4t0d0s2:c /mnt
或 c4t0d0s2:d ... 等  

 
linuxe 发表于: 2002/12/05 03:25pm
[quote][b]下面引用由[u]jorsa[/u]在 [i]2002/12/05 02:18pm[/i] 发表的内容:[/b]
凤凰MM? who
[/quote]

套句山话:“本坛人都知道呀”:emn22:

http://www.chinaunix.net/cgi-bin/bbs/topic.cgi?forum=3&topic=17472&show=0

 
jorsa 发表于: 2002/12/05 03:59pm
linuxe
你有没试国我那样不umount直接拿下再插上用
挨,没有root权限就是不爽
 
linuxe 发表于: 2002/12/05 04:10pm
用root试过。

拔出后,下次再mount就不成了,提示原来那个mount point已在用。

所以还是umount的好些吧。

 
jorsa 发表于: 2002/12/05 05:54pm
挨, 我是直第二次也不mount直接用
 
YT 发表于: 2002/12/07 02:36am
[quote][b]下面引用由[u]jorsa[/u]在 [i]2002/12/05 05:54pm[/i] 发表的内容:[/b]
挨, 我是直第二次也不mount直接用
[/quote]
我琢磨你这话有5分钟,楞是没有明白。。。 :emn17:
 
 

Copyright © ChinaUnix.net  *  转载请注明出处及作者