- 论坛徽章:
- 0
|
挂接就是将分离的文件系统附加到文件系统分成结构中。文件系统要附加到某个挂接点,也就是目录。 \r\n挂接和卸载文件系统发生在系统启动和关闭时。 \r\n系统启动时,将读取/etc/vfstab文件。这个文件记录系统要挂接的文件系统。因此/etc/vfstab文件中的文件系统将自动挂接。也可以从命令行方式下人工挂接文件系统。 \r\n\r\n不加参数的mount显示系统目前已经挂接的文件系统。 \r\n# mount \r\n/ on /dev/dsk/c0t3d0s0 read/write/setuid/largefiles/logging on Mon Nov 18 \r\n17:58:19 1998 \r\n/usr on /dev/dsk/c0t3d0s6 read/write/setuid/largefiles/logging on Mon Nov 18 \r\n17:58:19 1998 \r\n/proc on /proc read/write/setuid on Mon Nov 18 17:58:19 1998 \r\n/dev/fd on fd read/write/setuid on Mon Nov 18 17:58:19 1998 \r\n/var on /dev/dsk/c0t3d0s1 nolargefiles/read/write/setuid on Mon Nov 18 17:58:19 \r\n1998 \r\n/opt on /dev/dsk/c0t3d0s5 setuid/read/write/largefiles on Mon Nov 18 17:58:20 \r\n1998 \r\n/tmp on swap read/write on Mon Nov 18 17:58:20 1998 \r\n/pns on dbserver:/export/pse soft/nosuid/remote on Mon Nov 18 19:04:36 1998 \r\n\r\nnolargefiles参数将使文件系统中所有新建的文件小于2G字节。 \r\n# mount -o nolargefiles /dev/dsk/c0t3d0s7 /export/home \r\n\r\n使用这个参数可能出现错误,原因是由于文件系统包含了大于2G的文件 \r\n\r\n要挂接在/etc/vfstab中已有的某个文件系统时,只需要用命令 \r\n# mount /export/home \r\n\r\n/etc/vfstab文件格式 \r\n#device device mount FS fsck mount mount \r\n#to mount to fsck point type pass at boot ops \r\n#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes - \r\n/proc - /proc proc - no - \r\nfd - /dev/fd fd - no - \r\nswap - /tmp tmpfs - yes - \r\n/dev/dsk/c0t3d0s0 /dev/rdsk/c0t3d0s0 / ufs 1 no - \r\n/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 1 no - \r\n/dev/dsk/c0t3d0s3 /dev/rdsk/c0t3d0s3 /export ufs 5 yes - \r\n/dev/dsk/c0t3d0s7 /dev/rdsk/c0t3d0s7 /export/home ufs 5 yes - \r\n/dev/dsk/c0t3d0s5 /dev/rdsk/c0t3d0s5 /opt ufs 8 yes - \r\n/dev/dsk/c0t3d0s1 - - swap - no - \r\n\r\n\r\numount卸载文件系统 \r\n# umount /dev/dsk/c0t3d0s7 \r\n或 \r\n# umount /export/home \r\n如果文件系统中某个文件正在使用,则不能卸载这个文件系统。 \r\n\r\n\r\n总结:如何增加一个新的硬盘 \r\n1. Set up hardware, including setting switches and attaching cables. \r\nFollow 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. \r\n3. Partition the disk. \r\n4. Create the new file systems as required. \r\n5. Edit the /etc/vfstab file as required. \r\n6. Reboot the system. \r\n\r\n\r\n光驱、软驱的使用 \r\nSolaris有个服务进程管理光驱和软驱,当光盘或软盘放入机器中,系统会自动的挂接上,挂接的目录是: \r\nMedia Location \r\nCD-ROM /cdrom/cdrom_name \r\nDiskette /floppy/floppy_name \r\n\r\n如: \r\n#cd /cdrom/cdrom0 \r\n\r\n管理进程叫卷管理服务器,其脚本位于/etc/init.d/volmgt。 |
|