免费注册 查看新帖 |

Chinaunix

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

[SCO UNIX] 请教一个mount问题。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-05-09 14:41 |只看该作者 |倒序浏览
mount了一个nfs到一个目录,而没有umount,而这个nfs机器的重新启动了,s这时再umoun这个目录就会提示设备busy,不知道除了重新机器外还有什么办法把这个目录释放出来(就像在mount到一个目录后,有很多用户在mount目录下操作,我怎么样能强umount这个目录)






好久没来了,忘得差不多了。又从头再来。

论坛徽章:
0
2 [报告]
发表于 2004-05-09 14:44 |只看该作者

请教一个mount问题。

fsck -y

论坛徽章:
0
3 [报告]
发表于 2004-05-09 15:01 |只看该作者

请教一个mount问题。

不行。

论坛徽章:
0
4 [报告]
发表于 2004-05-09 16:40 |只看该作者

请教一个mount问题。

????没人知道

论坛徽章:
0
5 [报告]
发表于 2004-05-09 18:38 |只看该作者

请教一个mount问题。

用C语言中和mount命令函数可以强制挂接和强行缷掉 我记得以前我做过这样的程序 用UNIX系统中的mount 不上 而用C语言开发的程序中mount可以 你试试吧 

论坛徽章:
0
6 [报告]
发表于 2004-05-10 01:22 |只看该作者

请教一个mount问题。

fsck 后面带你的设备名,如:fsck /dev/home

论坛徽章:
0
7 [报告]
发表于 2004-05-10 10:19 |只看该作者

请教一个mount问题。

fsck -- check and repair filesystems (generic)
   
Synopsis

   fsck [-F FSType] [-V] [-m] [special . . .]
   
   fsck [-F FSType] [-V] [current_options] [-o specific_options] [special
   . . .]
   
   fsck [-F FSType] [-V] [-PLbyw] [special . . .]
   
Description

   fsck audits and interactively repairs inconsistent conditions for
   filesystems. If the filesystem is inconsistent the user is prompted
   for concurrence before each correction is attempted. It should be
   noted that some corrective actions will result in some loss of data.
   The amount and severity of data loss may be determined from the
   diagnostic output. The default action for each correction is to wait
   for the user to respond yes or no.
   
   The filesystem should be unmounted when fsck is used. If this is not
   possible, care should be taken that the system is quiescent and that
   it is rebooted immediately afterwards if the filesystem is a critical
   one, for example root.
   
   current_options are options supported by the s5-specific module of
   fsck. Other FSTypes do not necessarily support these options.
   specific_options indicate suboptions specified in a comma-separated
   list of suboptions and/or keyword-attribute pairs for interpretation
   by the FSType-specific module of the command.
   
   special represents a block or character special device (for example,
   /dev/rdsk/*, where the value of * is machine dependent). It is
   preferable that a character special device be used. fsck will not work
   on a block device if it is mounted. If special is not supplied, fsck
   looks through /etc/vfstab and executes fsck for all character specials
   in the ``fsckdev'' field of /etc/vfstab for which there is a numeric
   entry in the ``fsckpass'' field.
   
  Command options
  
   -F
          Specify the FSType on which to operate. If -F FSType is not
          specified heuristics similiar to those used by fstyp(1M) are
          used to determine the file system type.
            __________________________________________________________
         
          NOTE: This command executes faster if it is not required to
          autodetect file system types. If you are uncertain about the
          FSType, you can use the fstyp command to determine it.
            __________________________________________________________
         
   -V
          Echo the complete command line, but do not execute the command.
          The command line is generated by using the options and
          arguments provided by the user and adding to them information
          derived from /etc/vfstab. This option should be used to verify
          and validate the command line.
   -m
          Check but do not repair. This option checks that the filesystem
          is suitable for mounting.
   -o
          Specify FSType-specific options.
   -P
          Automatically audits and interactively repairs inconsistent
          conditions for all filesystems in /etc/vfstab in parallel. It
          uses the ``fsckpass'' field of /etc/vfstab to create a list of
          filesystems that need checking on separate disks. The
          filesystems are then scheduled for checking such that each disk
          has one filesystem being checked on that disk at a given time.
          -P supports the following suboptions:
        -L
               Requests that the ouput is arranged in order by
               filesystem.
        -b
               Prints the filesystem output in a brief terse format. Upon
               success, the command prints one line, per filesystem,
               which is a summary of fsck information.
        -y
               Assumes a "yes" response to all questions, and the
               interactive mode is circumvented.
        -w
               Averts confusion stemming from several different
               filesystems requesting interactive responses. Runs as
               expected upon success (either verbose or brief). If it
               fails, the parent fsck process collects the failure
               information, but defers any corrections until the rest of
               the filesystems have been checked.
         
Files

   /etc/vfstab
          list of default parameters for each filesystem
         
References

   fsck_bfs(1M), fsck_dosfs(1M), fsck_s5(1M), fsck_sfs(1M), fsck_ufs(1M),
   fsck_vxfs(1M), fstyp(1M), mkfs(1M), vfstab(4)
   
Notices

   This command may not be supported for all filesystem types.
   
   This command has been updated to handle files greater than 2GB.
     _________________________________________________________________
   
   ?2002 Caldera International, Inc. All rights reserved.
   UnixWare 7 Release 7.1.3 - 30 October 2002

论坛徽章:
0
8 [报告]
发表于 2004-05-11 11:59 |只看该作者

请教一个mount问题。

其它unix系统有一个-f参数强行umount,sco unix不知道还有其它什么方式没有。

论坛徽章:
0
9 [报告]
发表于 2004-05-11 12:09 |只看该作者

请教一个mount问题。

cd /
再umount

论坛徽章:
0
10 [报告]
发表于 2004-05-11 16:00 |只看该作者

请教一个mount问题。

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP