Chinaunix首页 | 论坛 | 博客
  • 博客访问: 121948
  • 博文数量: 90
  • 博客积分: 1370
  • 博客等级: 中尉
  • 技术积分: 1005
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-20 20:37
文章分类

全部博文(90)

文章存档

2012年(90)

分类: IT业界

2012-01-08 18:14:57

/etc/init.d/volmgt start
volcheck
特殊用
/etc/init.d/volmgt stop
mount -F pcfs /dev/diskette /mnt

磁盘文件系统
Solaris定义了3种文件系统类型:
ufs – UNIX文件系统。是Solaris缺省的文件系统。
hsfs – 高密度CD-ROM文件系统,是只读文件系统。
pcfs – PC文件系统,支持DOS格式化的软盘。
如何取出cdrom(在设备忙状态下)
ps -cf | grep vol 查看设备正在运行的进程号.
kill -9 进程号 杀掉进程
/usr/sbin/vold start cd-rom和floppy的管理程序
在用完软驱,一定要先umount软驱,在取软盘

sun官方解决方法
CD-ROM and floppy disk devices are not mounting on the Solaris OE. What could be the reason? vold is the daemon that should be running on your system to allow CD-ROMs and floppies to mount automatically. For the floppy mount process you must type volcheck after inserting the floppy; it is more semi-automatic. The CD-ROM should mount by itself after a few seconds (10-15). The great killer of vold is WABI. WABI and vold cannot be run at the same time. If you have ever run WABI on your system, check this first: more /etc/vold.conf Look for the following section (this is the way it should look to work): # Devices to use
use cdrom drive /dev/rdsk/c*s2 dev_cdrom.so cdrom%d
use floppy drive /dev/rdiskette[0-9] dev_floppy.so floppy%d Make sure the floppy line is uncommented. If you change this file, make sure you stop then restart vold to make the change takes effect. The directories /cdrom and /floppy should be empty. Eject the CD-ROM or floppy and check the /floppy or /cdrom directory. If it is not empty, you probably had remnants of something that was mounted in the past. Remove the remnants.
  • Is vold running? % ps -ef | grep vold NO? Start it: % /etc/init.d/volmgt start
    YES? Continue.
  • Insert a CD-ROM or floppy.
    For a floppy ONLY type: % volcheck
  • Did it mount the CD-ROM or Floppy?
    % cd /cdrom
    OR % cd /floppy
    % ls -la
    Look for the link that vold creates: For floppies:
    lrwxrwxrwx 1 root nobody 16 Dec 18 13:50 floppy0 ->
    ./unnamed_floppy/
    drwxrwxrwx 3 nobody nobody 512 Dec 18 09:10 unnamed_floppy/ For CD-ROMs:
    lrwxrwxrwx 1 root nobody 15 Dec 18 13:50 cdrom0 -> ./disksuite_4_0/
    dr-xr-xr-x 2 root sys 2048 Oct 25 1995 disksuite_4_0/ If the link is not there, vold did not mount it.
  • Does it mount manually? STOP vold first: % /etc/init.d/volmgt stop For CD-ROM:
    % mount -F hsfs -o ro /dev/dsk/c0t6d0s0 /cdrom % ls -la /cdrom
    Is it there now? For floppies it's trickier. You need to know several things about the
    floppy:
    • Is there a filesystem on it? What kind of filesystem? pcfs or ufs?
    • To read the same floppy on different system, follow the steps below on the system on which you wish to read floppy: Ok, % mount -F ufs /dev/diskette0 /floppy
      Or, % mount -F pcfs /dev/diskette0 /floppy % ls -la /floppy Is it there now?
  • Will it still not mount? Try different media. For CD-ROMs be sure to use a Sun CD-ROM. If your CD-ROM uses a caddy, try another caddy. For a floppy, try another one, such as a free commercial PC floppy that arrives in the mail. (That would be pcfs, of course.)
阅读(1574) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~