首 页 | 精品电影 | 音乐天堂 | 在线游戏 | Flash MTV | 三湘书屋 | 幽默笑话 | 三湘图库 | 美女写真 | IT知识库 | QQ贴图 | 加入书签

网页制作网络编程图形图象操作系统冲浪宝典软件教学网络安全认证考试通信技术电子商务业内动态书籍教程原码

最近更新 文章分类 多媒体类 精品软件

本站搜索:
您的位置:三湘时空 -> IT知识库 -> 文章分类 -> Solaris教程 -> Solaris系统管理培训(第十四章:文件系统挂接)  
Solaris系统管理培训(第十四章:文件系统挂接)


文章类别:Solaris教程 来源: 作者: 发表日期:2005-10-4 字体:[ ]

小游戏 | 在线影院 | 幽默笑话 | 源码下载 | Flash MTV | 音乐试听 | 书屋 | 美女写真

挂接就是将分离的文件系统附加到文件系统分成结构中。文件系统要附加到某个挂接点,也就是目录。 
挂接和卸载文件系统发生在系统启动和关闭时。 
系统启动时,将读取/etc/vfstab文件。这个文件记录系统要挂接的文件系统。因此/etc/vfstab文件中的文件系统将自动挂接。也可以从命令行方式下人工挂接文件系统。 

不加参数的mount显示系统目前已经挂接的文件系统。 
# mount 
/ on /dev/dsk/c0t3d0s0 read/write/setuid/largefiles/logging on Mon Nov 18 
17:58:19 1998 
/usr on /dev/dsk/c0t3d0s6 read/write/setuid/largefiles/logging on Mon Nov 18 
17:58:19 1998 
/proc on /proc read/write/setuid on Mon Nov 18 17:58:19 1998 
/dev/fd on fd read/write/setuid on Mon Nov 18 17:58:19 1998 
/var on /dev/dsk/c0t3d0s1 nolargefiles/read/write/setuid on Mon Nov 18 17:58:19 
1998 
/opt on /dev/dsk/c0t3d0s5 setuid/read/write/largefiles on Mon Nov 18 17:58:20 
1998 
/tmp on swap read/write on Mon Nov 18 17:58:20 1998 
/pns on dbserver:/export/pse soft/nosuid/remote on Mon Nov 18 19:04:36 1998 

nolargefiles参数将使文件系统中所有新建的文件小于2G字节。 
# mount -o nolargefiles /dev/dsk/c0t3d0s7 /export/home 

使用这个参数可能出现错误,原因是由于文件系统包含了大于2G的文件 

要挂接在/etc/vfstab中已有的某个文件系统时,只需要用命令 
# mount /export/home 

/etc/vfstab文件格式 
#device device mount FS fsck mount mount 
#to mount to fsck point type pass at boot ops 
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes - 
/proc - /proc proc - no - 
fd - /dev/fd fd - no - 
swap - /tmp tmpfs - yes - 
/dev/dsk/c0t3d0s0 /dev/rdsk/c0t3d0s0 / ufs 1 no - 
/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 1 no - 
/dev/dsk/c0t3d0s3 /dev/rdsk/c0t3d0s3 /export ufs 5 yes - 
/dev/dsk/c0t3d0s7 /dev/rdsk/c0t3d0s7 /export/home ufs 5 yes - 
/dev/dsk/c0t3d0s5 /dev/rdsk/c0t3d0s5 /opt ufs 8 yes - 
/dev/dsk/c0t3d0s1 - - swap - no - 


umount卸载文件系统 
# umount /dev/dsk/c0t3d0s7 
或 
# umount /export/home 
如果文件系统中某个文件正在使用,则不能卸载这个文件系统。 


总结:如何增加一个新的硬盘 
1. Set up hardware, including setting switches and attaching cables.  
Follow the instructions included with the new disk. 2. Reboot the system using the command boot -r. This command will restart the system using the reconfigure (-r) option. 
3. Partition the disk.  
4. Create the new file systems as required.  
5. Edit the /etc/vfstab file as required.  
6. Reboot the system. 


光驱、软驱的使用 
Solaris有个服务进程管理光驱和软驱,当光盘或软盘放入机器中,系统会自动的挂接上,挂接的目录是: 
Media Location 
CD-ROM          /cdrom/cdrom_name 
Diskette /floppy/floppy_name 

如: 
#cd /cdrom/cdrom0 

管理进程叫卷管理服务器,其脚本位于/etc/init.d/volmgt。 
上一篇:Solaris系统管理培训(第十二章:磁盘、分区和格式化) 下一篇:Solaris系统管理培训(第十三章:文件系统介绍)
本栏目热门文章
·如何在 solaris 中使用 auto mount 来 mount 2005-10-4
·format命令 2005-10-4
·Solaris 8 (Intel 平台版本)安装指南 --5.如何添 2005-10-4
·Solaris网络配置 2005-10-4
·Solaris 8 (Intel 平台版本)安装指南 --1.入门指 2005-10-4
·配置NIS集成autofs环境 2005-10-4
·Solaris 8 (Intel 平台版本) 设备配置指南 2005-10-4
·Solaris 8 Intel平台版本CD 上的软件包说明(第2张) 2005-10-4
·Solaris 8 (Intel 平台版本)安装指南 --6.故障排 2005-10-4
·Solaris 8 (Intel 平台版本)安装指南 --2.使用S 2005-10-4
新近更新文章
·Solaris7 交流 -- 重新配置系统核心 2005-10-4
·Solaris7 交流 --- 进程管理、进程控制及cron处理 2005-10-4
·Solaris7 交流 --- swap管理(SWAP的用处) 2005-10-4
·NFS简介 2005-10-4
·Solaris 常见问题及解决方法 2005-10-4
·quota 命令 2005-10-4
·ifconfig命令 2005-10-4
·format命令 2005-10-4
·fsck命令 2005-10-4
·route命令 2005-10-4
首 页 | 软件发布 | 广告联系 | 下载帮助 | 意见反馈 | 网站地图
  CopyRight? 2002-2004 WWW.SXSKY.NET? All Rights Reserved
三湘时空 站长QQ:82675303 Email: