Disk Add
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-10-07 13:56:31
 

1. root·Î ·Î±×ÀÎÇÑ ÈÄ ¾Æ·¡¿Í °°Àº ¸í·É¾î¸¦ »ç¿ëÇÏ¿© ½Ã½ºÅÛÀ» ´Ù¿î½ÃŲ´Ù.
# init 0
¶Ç´Â
# halt
2. ½Ã½ºÅÛÀÇ Àü¿øÀ» ²ô°í »õ µð½ºÅ©¸¦ ¿¬°áÇÑ´Ù.
3. ½Ã½ºÅÛÀÇ Àü¿øÀ» ÄÑ°í "stop" key¿Í "a" key¸¦ µ¿½Ã¿¡ ´Ã·¯ ok »óÅ·Π½Ã½ºÅÛÀ»
³»¸° ÈÄ ¾Æ·¡ÀÇ ¸í·ÉÀ» »ç¿ëÇÏ¿© ¸®ºÎÆà ÇÑ´Ù.
ok boot -r
4. ½Ã½ºÅÛÀÌ ºÎÆõÈÈÄ root·Î ·Î±×ÀÎ ÇÏ¿© ¾Æ·¡¿Í °°ÀÌ format ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.
# format
format¸í·É¾î¸¦ ½ÇÇàÇÏ¸é ½Ã½ºÅÛ¿¡ ¿¬°áµÈ Çϵåµð½ºÅ©°¡ 0¹ø ºÎÅÍ ¼±ÅÃÇÒ¼ö ÀÖµµ
·Ï ³ª¿­µÇ¾î º¸¿© Áø´Ù. »õ·Î¿¬°áÇÑ µð½ºÅ© ¹øÈ£¸¦ ¼±ÅÃÇÑÈÄ enterÅ°¸¦ Ä£´Ù.
5. ¾Æ·¡¿Í °°ÀÌ format> prompt°¡ º¸¿©Áö¸é "partition"À̶ó°í Ä£ÈÄ enterÅ°¸¦ Ä£´Ù.
format> partition
6. prompt°¡ partition>À¸·Î º¯°æµÇ¸é, print¸¦ ½ÇÇàÇÏ¿© ÇöÀç µð½ºÅ©ÀÇ ¿ë·®À» È®ÀÎ
ÇÑ´Ù.
partition> print
Current partition table (unnamed):
Total disk cylinders available: 2036 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wm 0 - 2035 1002.09MB (2036/0/0) 2052288
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
print°á°ú¿¡¼­ 2¹ø part°¡ Àüü µð½ºÅ©ÀÇ ¿ë·®À» º¸¿© ÁÖ¸ç, À§ÀÇ °á°ú¿¡¼­ º¸¸é
Àüü µð½ºÅ© ¿ë·®Àº 1002.09MBÀÌ°í 2036°³ÀÇ cylinder¸¦ °¡Áö°í ÀÖÀ½À» ¾Ë¼ö ÀÖ´Ù
7. »ç¿ëÇÒ slice(part)¿Í °¢ slice¿¡ ÇÒ´çÇÒ µð½ºÅ© »çÀÌÁ °áÁ¤ÇÏ°í ¾Æ·¡¿Í °°ÀÌ
¼±ÅÃÀ» ÇÑ´Ù.
Àüü µð½ºÅ© ¿ë·®À» 2°³ÀÇ slice·Î ³ª´©°í 4°ú 5¹ø slice¸¦ »ç¿ëÇÏ°íÀÚ ÇÒ¶§;
partition> 4
Part Tag Flag Cylinders Size Blocks
4 unassigned wm 0 0 (0/0/0) 0

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 0
Enter partition size[0b, 0c, 0.00mb]: 1018c
partition> print
Current partition table (unnamed):
Total disk cylinders available: 2036 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 2035 1002.09MB (2036/0/0) 2052288
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 - 1017 501.04MB (1018/0/0) 1026144
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> 5
Part Tag Flag Cylinders Size Blocks
5 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 1018
Enter partition size[0b, 0c, 0.00mb]: 1018c
partition> print
Current partition table (unnamed):
Total disk cylinders available: 2036 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 2035 1002.09MB (2036/0/0) 2052288
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 - 1017 501.04MB (1018/0/0) 1026144
5 unassigned wm 1018 - 2035 501.04MB (1018/0/0) 1026144
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

8. partition ÀÌ ³¡³ª¸é labelÀ» ½ÇÇà ÇÑ´Ù.
partition> label
label ÀÛ¾÷À» °è¼Ó ÇÒ °ÍÀÎÁö¸¦ ¹°¾î º¸¸é "yes" ¶ó°í Ä¡°í
label ÀÛ¾÷ÀÌ ´Ù ³¡³ª¸é "quit" À» 2¹ø Ãļ­ format »óÅ¿¡¼­ ºüÁ® ³ª¿Â´Ù.
9. ¾Æ·¡¿Í °°ÀÌ newfs¸¦ ½ÇÇàÇÏ¿© UNIX filesystemÀ» »õ µð½ºÅ©ÀÇ °¢ slice¿¡ ¸¸µç´Ù
# newfs /dev/rdsk/c#t#d#s#
"c#t#d#s#" Àº »õ µð½ºÅ©ÀÇ °¢ slice¿¡ ÇØ´çÇÏ´Â µð¹ÙÀ̽º À̸§À» ¾´´Ù.
»õ µð½ºÅ©°¡ coltroller 0¿¡ ¿¬°áµÇ¾î ÀÖ°í targer ¹øÈ£ 0À» »ç¿ëÇÏ°í ÀÖ´Ù¸é
À§ÀÇ format¿¡ÀÇÇØ »ý¼ºµÈ µð½ºÅ© device´Â c0t0d0s4¿Í c0t0d0s5°¡ µÈ´Ù.
10. newfs ÀÛ¾÷ÀÌ ³¡³ª¸é »õ filesystemÀ» mountÇÏ¿© »ç¿ëÇÑ´Ù.
** ¸í·É¾î¸¦ ÀÌ¿ëÇÏ¿© filesystemÀ» mountÇÒ¶§ :
# mount -F ufs /dev/dsk/c#t#d#s#
** /etc/vfstabÀ» »ç¿ëÇÏ¿© mount ÇÒ¶§¿¡´Â ¾Æ·¡¿Í °°ÀÌ vfstab¿¡ Á¤ÀÇÇÑ ÈÄ,
/dev/dsk/c#t#d#s# /dev/rdsk/c#t#d#s# ufs 2 yes -
¾Æ·¡ÀÇ ¸í·ÉÀ» »ç¿ëÇÑ´Ù.
# mount
½Ã½ºÅÛÀÌ rebootingµÈ ÈÄ¿¡ ÀÚµ¿ mountµÇ°Ô ÇÏ·Á¸é /etc/vfstab¿¡ Á¤ÀÇÇØ¾ß ÇÑ´Ù.
9. À§ÀÇ ¸ðµç ÀÛ¾÷ÀÌ ³¡³ª¸é ¾Æ·¡ ¸í·É¾î¸¦ »ç¿ëÇÏ¿© »õ filesystemÀÌ mountµÇ¿¡
ÀÖ´ÂÁö È®ÀÎÇÑ´Ù.
# df -kv_


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦