- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
mount与umount
Moduel 4 Performing Mounts and Umounts Note – While system administrators typically use the /usr/sbin/mount command, the system boot scripts use the /sbin/mount command. 介绍/etc/vfstab文件: /etc/vfstab列出系统启动时自动mount的文件, 除/etc/mnttab与/var/run之外; /etc/vfstab文件分出七个区域: device to mount 被mount的设备与伪设备 device to fsck The raw or character device e.g. /dev/rdsk下的 对于伪设备如:/proc 或 fd 这项可写 - mount point mount 的路径 FS type 文件系统类型 fsck pass 指示在系统启动时是否fsck检测;0不检1表示fsck为系统正常启动运行 大于1时表示把此设备加入fsck运行列表,fsck可同时检测8个设备, mountall命令忽略此项 mount at boot yes 要求启动时自动mount,no 则不 Note – For / (root), /usr, and /var (if it is a separate file system) file systems, the mount at boot field value is specified as no. The kernel mounts these file systems as part of the boot sequence before the mountall command is run. The mount command explicitly mounts the file systems / (root) and /usr as specified in the /etc/rcS.d/S30rootusr.sh script and the /var file system as specified in the /etc/rcS.d/S70buildmnttab script. mount options A comma-separated list of options passed to the mount command. A dash (-) indicates the use of default mount options. 介绍/etc/mnttab文件: 此文件是一个只读文件,当mount一项时,会在此文件中入一条,umount后也会在此文件中删除相应项; 包括五项区域: mount point 挂接点 Device Name 设备名,块设备是文件系统的物理名称; Mount Options 文件系统上生效的挂载选项列表 dev=number 主从设备号 Date and time mounted mount的日期时间 使用mount mount /dev/dsk/c#d#t#s# /mountpoint 不加参数时,使用以下默认属性: read/write Indicates whether reads and writes are allowed on the file system. setuid Permits the execution of setuid programs in the file system. intr/nointr Allows and forbids keyboard interrupts to kill a process that is waiting for an operation on a locked file system. nologging Indicates that logging is not enabled for the ufs file system. largefiles Allows for the creation of files larger than 2 Gbytes. A file system mounted with this option can contain files larger than 2 Gbytes. xattr Supports extended attributes not found in standard UNIX at
文档评论(0)