ÔÚpc»úÉÏʹÓÃUNIX£¬ÓÉÓÚpcÉϵÄÓ²Å̶àΪIDE½Ó¿ÚµÄ¹Ê£¬Ö»½éÉÜIDE½Ó¿ÚµÄÓ²ÅÌ¡£
³£³£ÎÒÃÇÓжà¿éunixÓ²ÅÌ,ÐèÒª°Ñ½øÐÐÎļþ¶Ô¿½Ê±,»òµ±Ò»¿éʹÓÃÓ²Å̵ĿÉÓÿռ䲻¶àʱҲ¿ÉÒÔÔÙ½ÓÒ»¿éÓ²ÅÌ×öΪÎļþϵͳʹÓÃ.
ÔÚSCO UNIX 5.0.5 ÖУ¬ÏµÍ³ÒѾ´æÔÚÓ²ÅÌÉ豸hd10(½Óµ½IDE0ÉϵĴÓÉ豸)£¬Ôòhd10ÎÞÐèÅäÖá£
Ó²Å̵ÄÉ豸ÃûΪhd00,hd10µÈµÈ£¬hd00Ϊ½Óµ½IDE0µÄÖ÷É豸£¬hd10Ϊ½Óµ½IDE0ÉϵĴÓÉ豸.
¶øÎÒÃÇ¿´µ½Ï±ߵÄÉ豸¶øÊÇ
brw------- 1 sysinfo sysinfo 1, 47 Mar 26 11:56 hd0a£¨hd00µÄ»î¶¯·ÖÇø£©
brw-r----- 1 dos sysinfo 1, 48 Mar 26 11:56 hd0d£¨hd00µÄDOS·ÖÇø£©
brw------- 1 sysinfo sysinfo 1, 15 Mar 26 11:56 hd01£¨hd00µÄµÚÒ»¸ö·ÖÇø£©
brw------- 1 sysinfo sysinfo 1, 23 Mar 26 11:56 hd02£¨hd00µÄµÚ¶þ¸ö·ÖÇø£©
brw------- 1 sysinfo sysinfo 1, 31 Mar 26 11:56 hd03£¨hd00µÄµÚÈý¸ö·ÖÇø£©
brw------- 1 sysinfo sysinfo 1, 39 Mar 26 11:56 hd04£¨hd00µÄµÚËĸö·ÖÇø£©
br--r----- 1 root backup 1, 79 Mar 26 11:56 hd11£¨hd10µÄµÚÒ»¸ö·ÖÇø£©
br--r----- 1 root backup 1, 87 Mar 26 11:56 hd12£¨hd10µÄµÚ¶þ¸ö·ÖÇø£©
br--r----- 1 root backup 1, 95 Mar 26 11:56 hd13£¨hd10µÄµÚÈý¸ö·ÖÇø£©
br--r----- 1 root backup 1,103 Mar 26 11:56 hd14 (hd10µÄµÚËĸö·ÖÇø£©
°ÑµÚ¶þ¿éUNIXÓ²ÅÌÁ¬µ½»úÆ÷ÉÏ,×¢ÒâÇ°±ß˵¹ýÕâ¿éÓ²ÅÌÓ¦Á¬µ½IDE0ÉÏ,²¢ÇÒΪ´ÓÅÌ.
ÓÃ#divvy /dev/hd10 (×¢:divvy Ϊ·Ö¸î´ÅÅÌÃüÁî)
°ÑµÚ¶þ¿éUNIXÓ²ÅÌÉϵÄÎļþϵͳע²áµ½µ±Ç°UNIXϵͳÉÏ.
ÏÔʾΪ
+-------------------+------------+--------+---+-------------+------------+
| Name | Type | New FS | # | First Block | Last Block |
+-------------------+------------+--------+---+-------------+------------+
| | EAFS | no | 0 | 0| 19999|
| | NON FS | no | 1 | 20000| 117999|
| | HTFS | no | 2 | 118000| 4209019|
| | NOT USED | no | 3 | -| -|
| | NOT USED | no | 4 | -| -|
| | NOT USED | no | 5 | -| -|
| | NON FS | no | 6 | 4209020| 4209029|
| | WHOLE DISK | no | 7 | 0| 4217030|
+-------------------+------------+--------+---+-------------+------------+
4209030 1K blocks for divisions, 8001 1K blocks reserved for the system
n[ame] Name or rename a division.
c[reate] Create a new file system on this division.
t[ype] Select or change filesystem type on new filesystems.
p[revent] Prevent a new file system from being created on this division.
s[tart] Start a division on a different block.
e[nd] End a division on a different block.
r[estore] Restore the original division table.
Enter your choice or q to quit:
ÆäÖÐNameΪÎļþϵͳÔÚµ±Ç°UNIXÖеÄÉ豸Ãû¡££¨ÓÉÓÚµÚ¶þ¿éunixÅÌδÔÚϵͳÖÐ×¢²á£¬ËùÒÔ¿´²»µ½É豸Ãû£©
Type ΪÎļþϵͳÀàÐÍ£¬³£¼ûÓÐEAFS£¬HTFS.
New FS ±êʶÊÇ·ñΪн¨µÄÎļþϵͳ£¬ÎÒÃÇÓõÄÊÇUNIXÓ²ÅÌ£¬ÎļþϵͳÒѾ·ÖºÃ£¬ËùÒÔ²»ÒªÐ½¨Îļþϵͳ£¬³ý·ÇÕæµÄÏëÖØн¨Á¢Îļþϵͳ£¬²»¹ýÔÎļþϵͳÖеÄÄÚÈݱ»¸²¸Ç¡£
#ΪunixÎļþϵͳµÄ±àºÅ
First Block, Last Block Ϊ¸÷ÎļþϵͳµÄÆðʼÓë½áÊ¿éºÅ¡£
ÎÒÃÇʹÓõڶþ¿éUNIXÓ²ÅÌ£¬Í¨³£¶¼²»»áÈ¥¸Ä±äÔÀ´Ó²Å̵ÄÎļþϵͳ´óСµÄ¡£Ö»Òª°ÑµÚ¶þ¿éUNIXÅ̵ÄÎļþϵͳע²áµ½µ±Ç°ÏµÍ³ÉϾͺÃÁË¡£
Ò»°ãÀ´Ëµ0#ÎļþϵͳÀàÐÍΪEAFS,ÊÇunixÅ̵ÄÒýµ¼Çø£¬Ò»°ãÀ´ËµÎÒÃÇÓò»ÉÏ¡£ËùÒÔ²»ÓÃΪËüÃüÃû¡£
1#ÎļþϵͳÀàÐÍΪNON FS,ÊÇunixÅ̵Ľ»»»Çø£¬ÎÒÃÇÒ²Óò»ÉÏ¡£²»ÓÃΪËüÃüÃû
2#ÎļþϵͳÀàÐÍΪHTFS,ÊÇunixÅ̵ĸù·ÖÇø£¬Èç¹ûµÚ¶þ¿éunixÅÌÉÏ£¬Ö»Óиù·ÖÇøÎÒÃǾÍʹÓÃÕâ¸ö·ÖÇø¡£
ÆäËüÎļþϵͳÀàÐÍΪHTFSµÄ·ÖÇø¶¼Êǵ¥µÄ·ÖÇø£¬ÎÒÃÇÒ²¿ÉÒÔÀûÓá£
¾¹ýÉϱ߷ÖÎö£¬ÎÒÃÇΪ2#·ÖÇø£¬ÃüÃû£¨Ò²¾ÍÏ൱ÓÚÔÚµ±Ç°unixϵͳÖÐ×¢²áÁË£¬µÚ¶þ¿éÓ²Å̵ĸù·ÖÇøÒÔ±ãʹÓã©¡£
¼üÈën,»Ø³µ¡£
ÏÔʾ
which division? (0 through 7)?
£¨ÃüÃûÄĸö·ÖÇø£©
¼üÈë2£¬»Ø³µ¡£
ÏÔʾ
what do you want to call it?
£¨ÄãÏë½ÐËüʲô£©
ÊäÈëSROOT£¨ÒÀϲºÃ×ÔÐÐÃüÃû£©
ÏÔʾÈçͼ£¬¿É¼ûÒѾÃüÃûΪ2#·ÖÇø¡£
+-------------------+------------+--------+---+-------------+------------+
| Name | Type | New FS | # | First Block | Last Block |
+-------------------+------------+--------+---+-------------+------------+
| | EAFS | no | 0 | 0| 19999|
| | NON FS | no | 1 | 20000| 117999|
| SROOT | HTFS | no | 2 | 118000| 4209019|
| | NOT USED | no | 3 | -| -|
| | NOT USED | no | 4 | -| -|
| | NOT USED | no | 5 | -| -|
| | NON FS | no | 6 | 4209020| 4209029|
| | WHOLE DISK | no | 7 | 0| 4217030|
+-------------------+------------+--------+---+-------------+------------+
4209030 1K blocks for divisions, 8001 1K blocks reserved for the system
n[ame] Name or rename a division.
c[reate] Create a new file system on this division.
t[ype] Select or change filesystem type on new filesystems.
p[revent] Prevent a new file system from being created on this division.
s[tart] Start a division on a different block.
e[nd] End a division on a different block.
u[ndo] Undo the last change.
r[estore] Restore the original division table.
Enter your choice or q to quit:
±¾ÀýÖÐÖ»ÓÐ2#·ÖÇøÐèÃüÃû¡£
¹Ê°´q¼ü»Ø³µÍ˳ö.
ϵͳÌáʾ£¨ÊÇ°²×°Ê¹ÉúЧ£¬Êǻص½Ö÷²Ëµ¥ÖØвÙ×÷£¬»¹ÊÇÍ˳ö²»ÉúЧ£©
i[nstall] Install the division set-up shown
r[eturn] Return to the previous menu
e[xit] Exit without installing a division table
Please enter your choice:
¼üÈëi,»Ø³µ£¬Ê¹ÉúЧ¡£
ʹÓÃlÃüÁî¿´ÊÇ·ñÉú³ÉÉ豸ÃûSROOTÉ豸Îļþ¡£
# l /dev/SROOT
brw-r----- 1 sysinfo sysinfo 1,106 May 28 11:30 /dev/SROOT
Õâ¸ö/dev/SROOT ¾ÍÊǵڶþ¿éunixÅ̵ĸù·ÖÇø£¬ÕâÑù¾Í¿ÉÒÔÓÃmountÃüÁËü×°ÒªunixϵͳÉÏÁË¡£
Äã¿ÉÒÔ½¨Ò»¸öĿ¼×÷ΪËüµÄÒýÈëµã¡£ÎÒÃÇ¿ÉÒÔÔÚ¸ùϽ¨Ò»SROOTĿ¼
#cd /
#mkdir SROOT
°Ñ/dev/SROOT ¾ÍÊǵڶþ¿éunixÅ̵ĸù·ÖÇøÒýÈëµ½/SROOTĿ¼ÉÏ¡£
# mount /dev/SROOT /SROOT
# l /SROOT (Áеڶþ¿éunixÅ̵ĸù·ÖÇøÎļþ)
ÕâÑù¾Í¿ÉÒÔ°ÑËüµ±×÷Õý³£µÄÎļþϵͳʹÓÃÁË¡£
Óë¹âÇýÒ»Ñù¡£
ÓÃumountжÔØÓ²ÅÌ
#umount /SROOT