[ 永远的UNIX::UNIX技术资料的宝库 ]   GB | BIG5

首页 > 系统管理 > 其它 > 正文
IRIX 6.5 系统管理 (二) 分区配置文档
本文出自:不详 作者: (2002-04-20 08:00:01)

一、系统分区:
DATA 24# hinv                                          查看系统硬件配置
1 180 MHZ IP27 Processor
CPU: MIPS R10000 Processor Chip Revision: 2.6
FPU: MIPS R10010 Floating Point Chip Revision: 0.0
Main memory size: 256 Mbytes
Instruction cache size: 32 Kbytes
Data cache size: 32 Kbytes
Secondary unified instruction/data cache size: 2 Mbytes
Integral SCSI controller 0: Version QL1040B (rev. 2), single ended
  Disk drive: unit 1 on SCSI controller 0                     硬盘所在物理位置
  Disk drive: unit 2 on SCSI controller 0
  Disk drive: unit 3 on SCSI controller 0
  Disk drive: unit 4 on SCSI controller 0
  Disk drive: unit 5 on SCSI controller 0
Integral SCSI controller 1: Version QL1040B (rev. 2), single ended
CDROM: unit 6 on SCSI controller 1
IOC3 serial port: tty1
IOC3 serial port: tty2
IOC3 parallel port: plp1
Integral Fast Ethernet: ef0, version 1, module 1, slot MotherBoard, pci 2
Origin 200 base I/O, module 1 slot 1
IOC3 external interrupts: 1
DATA 22# fx -x
fx version 6.5, Apr 30, 1998
fx: "device-name" = (dksc)
fx: ctlr# = (0)                                                    
fx: drive# = (1) 2                                            输入要分区硬盘的单元号
fx: lun# = (0)
...opening dksc(0,2,0)
...drive selftest...OK
Scsi drive type == SGI     IBM  DGHS09Y    0190

----- please choose one (? for help, .. to quit this menu)-----
[exi]t             [d]ebug/           [l]abel/           [a]uto
[b]adblock/        [exe]rcise/        [r]epartition/
fx> r

----- partitions-----
part  type        blocks            Megabytes   (base+size)
  7: xfs        4096 + 17777424       2 + 8680
  8: volhdr        0 + 4096           0 + 2
 10: volume        0 + 17781520       0 + 8682

capacity is 17781520 blocks

----- please choose one (? for help, .. to quit this menu)-----
[ro]otdrive           [o]ptiondrive         [e]xpert
[u]srrootdrive        [re]size
fx/repartition> e                                             修改分区

Warning: you will need to re-install all software and restore user data
from backups after changing the partition layout.  Changing partitions
will cause all data on the drive to be lost.  Be sure you have the drive
backed up if it contains any user data.  Continue? yes
Enter .. when done
fx/repartition/expert: change partition = (0)2                分区号
before:  type xfs        block       0,         0 MB
                         len:        0 blks,    0 MB
fx/repartition/expert: partition type = (xfs)                 分区类型
fx/repartition/expert: base in megabytes = (0) 2              此分区开始位置
fx/repartition/expert: size in megabytes (max 8680) = (0) 1000      分区大小
 after:  type xfs        block    4096,         2 MB
                         len:  2048000 blks, 1000 MB
fx/repartition/expert: change partition = (3)
before:  type xfs        block       0,         0 MB
                         len:        0 blks,    0 MB
fx/repartition/expert: partition type = (xfs)
fx/repartition/expert: base in megabytes = (0) 1002           1002是2号分区的终止位置
fx/repartition/expert: size in megabytes (max 7680) = (0) 1000
 after:  type xfs        block 2052096,      1002 MB
                         len:  2048000 blks, 1000 MB
fx/repartition/expert: change partition = (4)
before:  type xfs        block       0,         0 MB
                         len:        0 blks,    0 MB
fx/repartition/expert: partition type = (xfs)
fx/repartition/expert: base in megabytes = (0) 2002
fx/repartition/expert: size in megabytes (max 6680) = (0) 2000
 after:  type xfs        block 4100096,      2002 MB
                         len:  4096000 blks, 2000 MB
fx/repartition/expert: change partition = (5) 7               修改7号分区
before:  type xfs        block    4096,         2 MB
                         len:  17777424 blks, 8680 MB
fx/repartition/expert: partition type = (xfs)
fx/repartition/expert: base in megabytes = (2) 4002
fx/repartition/expert: size in megabytes (max 4680) = (8680) 4680
 after:  type xfs        block 8196096,      4002 MB
                         len:  9584640 blks, 4680 MB
fx/repartition/expert: change partition = (8)                 8号分区不能改变
before:  type volhdr     block       0,         0 MB
                         len:     4096 blks,    2 MB
fx/repartition/expert: partition type = (volhdr)
fx/repartition/expert: base in megabytes = (0)
fx/repartition/expert: size in megabytes (max 8682) = (2)
fx/repartition/expert: change partition = (9)                 ctrl-c退出修改分区命令
----- partitions-----
part  type        blocks            Megabytes   (base+size)
  2: xfs        4096 + 2048000        2 + 1000
  3: xfs     2052096 + 2048000     1002 + 1000
  4: xfs     4100096 + 4096000     2002 + 2000
  7: xfs     8196096 + 9584640     4002 + 4680
  8: volhdr        0 + 4096           0 + 2
 10: volume        0 + 17781520       0 + 8682

capacity is 17781520 blocks

----- please choose one (? for help, .. to quit this menu)-----
[ro]otdrive           [o]ptiondrive         [e]xpert
[u]srrootdrive        [re]size
fx/repartition> r
r is ambiguous: rootdrive, resize

----- partitions-----
part  type        blocks            Megabytes   (base+size)
  2: xfs        4096 + 2048000        2 + 1000
  3: xfs     2052096 + 2048000     1002 + 1000
  4: xfs     4100096 + 4096000     2002 + 2000
  7: xfs     8196096 + 9584640     4002 + 4680
  8: volhdr        0 + 4096           0 + 2
 10: volume        0 + 17781520       0 + 8682

capacity is 17781520 blocks

----- please choose one (? for help, .. to quit this menu)-----
[ro]otdrive           [o]ptiondrive         [e]xpert
[u]srrootdrive        [re]size
fx/repartition> ..

----- please choose one (? for help, .. to quit this menu)-----
[exi]t             [d]ebug/           [l]abel/           [a]uto
[b]adblock/        [exe]rcise/        [r]epartition/
fx> l

----- please choose one (? for help, .. to quit this menu)-----
[sh]ow/         [sy]nc          [se]t/          [c]reate/
fx/label> sy                                                  重写label,重新分区后,必须重写label

writing label info to dksc(0,2,0)

----- please choose one (? for help, .. to quit this menu)-----
[sh]ow/         [sy]nc          [se]t/          [c]reate/
fx/label> ..

----- please choose one (? for help, .. to quit this menu)-----
[exi]t             [d]ebug/           [l]abel/           [a]uto
[b]adblock/        [exe]rcise/        [r]epartition/
fx> exi
注:    8、10号分区不能改变,1号分区是swap区。

二、创建文件系统和文件系统的安装:
硬盘分区结束,创建文件系统并安装,分区才能使用。
1.使用mkfs命令创建文件系统。
DATA #mkfs dks0d5s7                      对第5块硬盘的7区创建文件系统
meta-data=dks0d5s7               isize=256    agcount=9, agsize=246909 blks
data     =                       bsize=4096   blocks=2222178, imaxpct=25
         =                       sunit=0      swidth=0 blks
log      =internal log           bsize=4096   blocks=1000
realtime =none                   extsz=65536  blocks=0, rtextents=0
unwritten flagging is enabled
2.安装文件系统:
#mount /dev/dsk/dks0d5s7 /home
编辑/etc/fstab文件,加入:
/dev/dsk/dks0d5s7 /home xfs rw,raw=/dev/rdsk/dks0d5s7 0 0
#df -k
Filesystem             Type  kbytes     use     avail  %use Mounted on
/dev/root               xfs  3913932  1651484  2262448  43  /
/dev/dsk/dks0d3s2       xfs  8884320   153000  8731320   2  /aa
/dev/dsk/dks0d5s7       xfs  8884712      160  8884552   1  /home   查看是否安装正确 (http://www.fanqiang.com)
    进入【UNIX论坛

相关文章
IRIX 6.5 系统管理 (一) 安装及配置 (2002-04-19 08:02:00)
 

★  樊强制作 欢迎分享  ★