分享
 
 
 

利用diskadd在UnixWare 7下新增硬盘与档案系统

王朝system·作者佚名  2008-05-21
窄屏简体版  字體: |||超大  

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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有