- 论坛徽章:
- 0
|
- UnixWare 7提供diskadd命令, 让新增硬碟与档案系统(file system)的工作变的更容易.
- 以下范例为安装一颗新硬碟於UnixWare 7环境上, 同时规划两个档案系统
- # diskadd 1
- (UnixWare 7认定本身作业系统硬碟代号为0, 因此第一颗新增的硬碟代号为1)
-
- UX:diskadd: INFO: You have invoked the System V disk management (s5dm)
- diskadd utility.
-
- The purpose of this utility is to set up additional disk drives.
- This utility can destroy the existing data on the disk. Do you wish
- to continue? (Type y for yes or n for no followed by ENTER): y
- (请选择 y 继续)
-
- The recommended default partitioning for your disk is:
-
- a 100% "UNIX System" partition.
-
- To select this, please type "y". To partition your disk
- differently, type "n" and the "fdisk" program will let you
- select other partitions. y
- (磁区设定, 若无其他磁区, 请直接使用100%的UNIX系统磁区)
-
- Surface analysis of your disk is recommended but not required.
- Do you wish to skip surface analysis? (y/n) y
- (是否跳过硬碟表层检查, 强烈建议选择 y , 否则将耗费大量时间)
-
- You will now be queried on the setup of your disk. After you
- have determined which slices will be created, you will be
- queried to designate the sizes of the various slices.
-
- How many slices/filesystems do you want created on the disk (1 - 13)? 2
- (询问将於此硬碟上建立的档案系统数目, 本范例为 2个档案系统)
-
- Please enter the absolute pathname (e.g., /home3) for
- slice/filesystem 1 (1 - 32 chars)? /home3
- (提供第一个档案系统所挂载的目录名称)
-
- Enter the filesystem type for this slice (vxfs,ufs,s5,sfs), type 'na'
- if no filesystem is needed, or press to use the default (vxfs):
- (选取第一个档案系统的档案系统格式, 请直接接受预设值vxfs)
-
- Specify the block size from the following list
- (1024, 2048, 4096, 8192), or press to use the first one:
- (询问本档案系统的block size, 请直接接受预设值)
-
- Should /home3 be automatically mounted during a reboot?
- Type "no" to override auto-mount or press to enable the option:
- (询问是否开机时, 将自动把本档案系统挂载, 一般均为直接接受预设值)
-
- Please enter the absolute pathname (e.g., /home3) for
- slice/filesystem 2 (1 - 32 chars)? /usr2
- (询问第二个档案系统所挂载的目录名称)
-
- Enter the filesystem type for this slice (vxfs,ufs,s5,sfs), type 'na'
- if no filesystem is needed, or press to use the default (vxfs):
- (选取第二个档案系统的档案系统格式, 请直接接受预设值vxfs)
-
- Specify the block size from the following list
- (1024, 2048, 4096, 8192), or press to use the first one:
- (询问本档案系统的block size, 请直接接受预设值)
-
- Should /usr2 be automatically mounted during a reboot?
- Type "no" to override auto-mount or press to enable the option:
- (询问是否开机时, 将自动把本档案系统挂载, 一般均为直接接受预设值)
-
- You will now specify the size in cylinders of each slice.
- (One megabyte of disk space is approximately 1 cylinders.)
- There are now 3074 cylinders available on your disk.
- The filesystem type you have chosen is limited to 1048576 cylinders.
- How many cylinders would you like for /home3 (0 - 3074)?
- Press for 0 cylinders: 274
- (设定第一个档案系统的大小, 请依照实际状况而定)
-
- There are now 2800 cylinders available on your disk.
- The filesystem type you have chosen is limited to 1048576 cylinders.
- How many cylinders would you like for /usr2 (0 - 2800)?
- Press for 0 cylinders: 2800
- (设定第二个档案系统的大小, 请依照实际状况而定)
-
- You have specified the following disk configuration:
- A /home3 filesystem with 274 cylinders (274.0 MB)
- A /usr2 filesystem with 2800 cylinders (2800.0 MB)
-
- Is this allocation acceptable to you (y/n)? y
- (询问是否接受这样的设定)
-
- Filesystems will now be created on the needed slices
-
- Creating the /home3 filesystem on /dev/rdsk/c0b0t1d0s1
- Allocated approximately 70112 inodes for this file system. Specify a
- new value or press to use the default:
- (询问第一个档案系统将建立的inodes数目, 请直接接受预设值)
-
- Creating the /usr2 filesystem on /dev/rdsk/c0b0t1d0s2
- Allocated approximately 716768 inodes for this file system. Specify a
- new value or press to use the default:
- (询问第二个档案系统将建立的inodes数目, 请直接接受预设值)
-
- UX:diskadd: INFO: Diskadd for Disk Drive 2 DONE at Fri Sep 05 14:47:16 EDT 1997
- (确定后, 系统会自动规划磁区, 格式化硬碟与建立档案系统, 并提示已经建立完毕)
- (请利用df 或 mount 指令检查刚刚建立的档案系统)
- # df
- / (/dev/root ): 4628818 blocks 616572 files
- /proc (/proc ): 0 blocks 342 files
- /stand (/dev/dsk/c0b0t0d0sa): 42954 blocks 79 files
- /dev/fd (/dev/fd ): 0 blocks 0 files
- /home (/dev/dsk/c0b0t0d0s4): 13026 blocks 1736 files
- /home2 (/dev/dsk/c0b0t0d0sc): 13068 blocks 1740 files
- /system/processor (/processorfs ): 0 blocks 0 files
- /tmp (/tmp ): 14680 blocks 32123 files
- /var/tmp (/var/tmp ): 61424 blocks 32765 files
- /home3 (/dev/dsk/c0b0t1d0s1): 523908 blocks 69852 files
- /usr2 (/dev/dsk/c0b0t1d0s2): 5372640 blocks 716348 files
复制代码 |
|