[ 永遠的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)
 

★  樊強制作 歡迎分享  ★