9.2. º¹±¸ ¸ðµå·Î ºÎÆÃÇϱâ

º¹±¸ ¸ðµå´Â ÀüÀûÀ¸·Î µð½ºÄÏ, CD-ROM À̳ª ¶Ç´Â ½Ã½ºÅÛ ÇÏµå µå¶óÀÌºê ´ë½Å ±×¿Ü ´Ù¸¥ ¹æ¹ýÀ» »ç¿ëÇÏ¿© ÀÛÀº Red Hat Linux ȯ°æÀ¸·Î ºÎÆÃÇÒ ¼ö ÀÖ´Â ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù.

º¹±¸ ¸ðµå´Â À̸§ ±×´ë·Î ¹«¾ùÀΰ¡¸¦ º¹±¸½ÃÄÑ ÁÝ´Ï´Ù. Red Hat Linux ½Ã½ºÅÛÀº ÇÏµå µå¶óÀÌºê »ó¿¡ À§Ä¡ÇÑ ÆÄÀÏÀ» »ç¿ëÇÏ¿© ¸ðµç ÀϹÝÀûÀÎ ÀÛ¾÷ — ÇÁ·Î±×·¥ ½ÇÇà, ÆÄÀÏ ÀúÀå°ú °°Àº ÀÛ¾÷À» ½ÇÇàÇÕ´Ï´Ù.

±×·¯³ª °¡²û¾¿ Red Hat Linux°¡ Á¦´ë·Î ½ÇÇàµÇÁö ¾Ê¾Æ¼­ ½Ã½ºÅÛ ÇÏµå µå¶óÀÌºê »ó¿¡ À§Ä¡ÇÑ ÆÄÀÏ¿¡ Á¢±ÙÇÏÁö ¸øÇÒ °æ¿ì°¡ ÀÖ½À´Ï´Ù. ÀÌ·¯ÇÑ °æ¿ì, ÇÏµå µå¶óÀ̺꿡¼­ Red Hat Linux¸¦ ½ÇÇàÇÏÁö ¸øÇÑ´Ù°í Çصµ º¹±¸ ¸ðµå¸¦ »ç¿ëÇÏ¿© ±× ÇÏµå µå¶óÀÌºê »ó¿¡ ÀúÀåµÈ ÆÄÀÏ¿¡´Â Á¢±ÙÇÒ ¼ö ÀÖ½À´Ï´Ù.

º¹±¸ ¸ðµå·Î ºÎÆÃÇϽ÷Á¸é, ¿ì¼± ´ÙÀ½ Áß ÇÑ°¡Áö ¹æ¹ýÀ» »ç¿ëÇÏ¿© ½Ã½ºÅÛÀ» ºÎÆÃÇÏ¼Å¾ß ÇÕ´Ï´Ù:

¾Õ¿¡¼­ ¼³¸íµÈ ¹æ¹ýÀ» »ç¿ëÇÏ¿© ºÎÆÃÇϽŠÈÄ, ¼³Ä¡ ºÎÆ® ÇÁ·ÒÇÁÆ®¿¡¼­ ´ÙÀ½ ¸í·ÉÀ» ÀÔ·ÂÇϽñ⠹ٶø´Ï´Ù:

linux rescue

¸î¸î ±âº»ÀûÀÎ Áú¹®, ¿¹·Î µé¸é, »ç¿ëÇÒ ¾ð¾î ¼±Åà Áú¹®¿¡ ´ë´äÇϽŠÈÄ ·ÎÄà CD-ROM, ÇÏµå µå¶óÀ̺ê, NFS À̹ÌÁö, FTP, ¶Ç´Â HTTP Áß ¿Ã¹Ù¸¥ º¹±¸ À̹ÌÁö°¡ À§Ä¡ÇÑ Àå¼Ò¸¦ ¼±ÅÃÇØ ÁֽʽÿÀ. ¼±ÅÃÇϽŠÀ§Ä¡¿¡ ¹Ýµå½Ã ¿Ã¹Ù¸¥ ¼³Ä¡ Æ®¸®°¡ ÀÖ¾î¾ß Çϸç, ÀÌ ¼³Ä¡ Æ®¸®¿¡´Â ºÎÆÃÇϴµ¥ »ç¿ëÇÑ Red Hat Linux CD-ROM #1ÀÇ Red Hat Linux¿Í µ¿ÀÏÇÑ ¹öÀüÀÇ Red Hat Linux°¡ ÀÖ¾î¾ß ÇÕ´Ï´Ù. º¹±¸ ¸ðµå¸¦ ½ÃÀÛÇϱâ À§ÇØ ºÎÆà CD-ROMÀ̳ª µð½ºÄÏÀ» »ç¿ëÇϼ̴ٸé, ¼³Ä¡ Æ®¸®´Â ÀÌ ºÎÆà ¸Åü°¡ ¸¸µé¾îÁø µ¿ÀÏÇÑ Æ®¸®¿©¾ß ÇÕ´Ï´Ù. ÇÏµå µå¶óÀ̺ê, NFS ¼­¹ö, FTP ¼­¹ö, HTTP ¼­¹ö¿¡ ¼³Ä¡ Æ®¸®¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ Á¤º¸¸¦ ¿øÇϽŴٸé, Red Hat Linux ¼³Ä¡ °¡À̵带 ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.

³×Æ®¿öÅ©¿¡ ¿¬°áÇÒ ÇÊ¿ä°¡ ¾ø´Â º¹±¸ À̹ÌÁö¸¦ ¼±ÅÃÇϽøé, ³×Æ®¿öÅ©¿¡ ¿¬°áÇÏ½Ç °ÍÀÎÁö ¿©ºÎ¸¦ ¹°¾îº¼ °ÍÀÔ´Ï´Ù. ´Ù¸¥ ÄÄÇ»ÅÍ¿¡ ÆÄÀÏÀ» ¹é¾÷Çϰųª °øÀ¯ ³×Æ®¿öÅ©¿¡¼­ RPM ÆÐÅ°Áö¸¦ ¼³Ä¡ÇϽô °æ¿ì¿¡´Â ³×Æ®¿öÅ©¿¡ ¿¬°áÇÏ´Â °ÍÀÌ À¯¿ëÇÕ´Ï´Ù.

´ÙÀ½°ú °°Àº ¸Þ½ÃÁö°¡ ³ªÅ¸³¯ °ÍÀÔ´Ï´Ù:

The rescue environment will now attempt to find your Red Hat
Linux installation and mount it under the directory
/mnt/sysimage.  You can then make any changes required to your
system.  If you want to proceed with this step choose
'Continue'. You can also choose to mount your file systems
read-only instead of read-write by choosing 'Read-only'.
If for some reason this process fails you can choose 'Skip' 
and this step will be skipped and you will go directly to a
command shell.

°è¼Ó ¹öÆ°À» Ŭ¸¯ÇϽøé, /mnt/sysimage µð·ºÅ丮¿¡ ¿©·¯ºÐÀÇ ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®ÇÏ·Á°í ½ÃµµÇÒ °ÍÀÔ´Ï´Ù. ¸¸ÀÏ ÆÄƼ¼ÇÀ» ¸¶¿îÆ®ÇÏ´Â °Í¿¡ ½ÇÆÐÇÑ´Ù¸é, ¿©·¯ºÐ²² ½ÇÆи¦ ÅëÁöÇÕ´Ï´Ù. Àбâ Àü¿ë ¹öÆ°À» ¼±ÅÃÇϽøé, Àбâ Àü¿ë ¸ðµå·Î /mnt/sysimage µð·ºÅ丮¿¡ ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ® ½ÃµµÇÒ °ÍÀÔ´Ï´Ù. °Ç³Ê¶Ù±â ¹öÆ°À» ¼±ÅÃÇϽøé, ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®ÇÏÁö ¾Ê½À´Ï´Ù. ¸¸ÀÏ ÆÄÀÏ ½Ã½ºÅÛÀÌ ¼Õ»óµÇ¾ú´Ù°í »ý°¢ÇÏ½Ã¸é °Ç³Ê¶Ù±â¸¦ ¼±ÅÃÇϽʽÿÀ.

ÀÏ´Ü ½Ã½ºÅÛÀÌ º¹±¸ ¸ðµå·Î µé¾î°¡½Ã¸é, VC (°¡»ó ÄܼÖ) 1°ú VC 2 »ó¿¡ ´ÙÀ½°ú °°Àº ÇÁ·ÒÇÁÆ®°¡ ³ªÅ¸³¯ °ÍÀÔ´Ï´Ù. (VC1¿¡ Á¢¼ÓÇϽ÷Á¸é [Ctrl]-[Alt]-[F1] Å° Á¶ÇÕÀ» »ç¿ëÇϽðí VC 2¿¡ Á¢¼ÓÇϱâ À§Çؼ­´Â [Ctrl]-[Alt]-[F2] Å° Á¶ÇÕÀ» »ç¿ëÇϽʽÿÀ):

-/bin/sh-2.05b#

ÆÄƼ¼ÇÀ» ÀÚµ¿ ¸¶¿îÆ®Çϱâ À§ÇÏ¿© ´ÙÀ½ ¹öÆ°À» ¼±ÅÃÇÑ ÈÄ ±× ÆÄƼ¼ÇµéÀÌ ¼º°øÀûÀ¸·Î ¸¶¿îÆ®µÇ¾ú´Ù¸é, ´Üµ¶ »ç¿ëÀÚ ¸ðµå°¡ µË´Ï´Ù.

ÆÄÀÏ ½Ã½ºÅÛÀÌ ¸¶¿îÆ®µÇ¾ú´õ¶óµµ, º¹±¸ ¸ðµå¿¡¼­ µðÆúÆ® ·çÆ® ÆÄƼ¼ÇÀº ÀÏ¹Ý »ç¿ëÀÚ ¸ðµå (·±·¹º§ 3 ¶Ç´Â 5)¿¡¼­ »ç¿ëµÇ´Â ÆÄÀÏ ½Ã½ºÅÛÀÇ ·çÆ® ÆÄƼ¼ÇÀÌ ¾Æ´Ñ Àӽà ·çÆ® ÆÄƼ¼ÇÀÔ´Ï´Ù. ¸¸ÀÏ ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®Çϵµ·Ï ¼±ÅÃÇϽŠÈÄ ¼º°øÀûÀ¸·Î ¸¶¿îÆ®µÇ¾ú´Ù¸é, ´ÙÀ½ ¸í·ÉÀ» »ç¿ëÇÏ¿© º¹±¸ ¸ðµå ȯ°æ¿¡¼­ÀÇ ·çÆ® ÆÄƼ¼ÇÀ» ÆÄÀÏ ½Ã½ºÅÛÀÇ ·çÆ® ÆÄƼ¼ÇÀ¸·Î º¯°æÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù:

chroot /mnt/sysimage

ÀÌ·¸°Ô ÇϽøé, ·çÆ® ÆÄƼ¼ÇÀÌ /·Î ¸¶¿îÆ®µÇ¾î¾ß ½ÇÇàÇÒ ¼ö ÀÖ´Â rpm°ú °°Àº ¸í·ÉÀ» ½ÇÇàÇϴµ¥ À¯¿ëÇÕ´Ï´Ù. chroot ȯ°æ¿¡¼­ ºüÁ®³ª¿À·Á¸é, exit ¸í·ÉÀ» ÀÔ·ÂÇÏ¿© ÇÁ·ÒÇÁÆ®·Î µÇµ¹¾Æ°¥ ¼ö ÀÖ½À´Ï´Ù.

°Ç³Ê¶Ù±â ¹öÆ°À» ¼±ÅÃÇϽŠ°æ¿ì, º¹±¸ ¸ðµå¿¡¼­ /foo¿Í °°Àº µð·ºÅ丮¸¦ »ý¼ºÇÑ ÈÄ ´ÙÀ½°ú °°Àº ¸í·ÉÀ» ÀÔ·ÂÇÏ¿©, Á÷Á¢ ÆÄƼ¼ÇÀ» ¸¶¿îÆ® ½ÃµµÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù:

mount -t ext3 /dev/hda5 /foo

À§ÀÇ ¸í·É¿¡¼­ /foo´Â ¿©·¯ºÐÀÌ ¸¸µå½Å µð·ºÅ丮À̸ç /dev/hda5´Â ¸¶¿îÆ®ÇÒ ÆÄƼ¼ÇÀ» ÀǹÌÇÕ´Ï´Ù. ¸¸ÀÏ ÆÄƼ¼ÇÀÌ ext2 Çü½ÄÀ̶ó¸é, ext3¸¦ ext2·Î ¹Ù²Ù½Ã¸é µË´Ï´Ù.

¸¸ÀÏ ¿©·¯ºÐÀÌ °¡Áö°í °è½Å ÆÄƼ¼ÇÀÇ À̸§ÀÌ È®½ÇÇÏÁö ¾Ê´Ù¸é, ´ÙÀ½ÀÇ ¸í·É¾î¸¦ ÀÌ¿ëÇÏ¿© ÆÄƼ¼Ç ¸ñ·ÏÀ» º¸½Ç ¼ö ÀÖ½À´Ï´Ù:

fdisk -l

ÇÁ·ÒÇÁÆ®¿¡¼­ ´ÙÀ½°ú °°ÀÌ ¸¹Àº À¯¿ëÇÑ ¸í·ÉÀ» ½ÇÇà °¡´ÉÇÕ´Ï´Ù:

ÁÖ¼®

[1]

¼³Ä¡ ºÎÆà µð½ºÄÏÀ» ¸¸µå½Ã·Á¸é, °ø µð½ºÄÏÀ» »ðÀÔÇϽŠÈÄ dd if=bootdisk.img of=/dev/fd0 ¸í·ÉÀ» »ç¿ëÇÏ¿© Red Hat Linux CD-ROM #1¿¡ ÀÖ´Â images/bootdisk.img ÆÄÀÏÀ» »ç¿ëÇÕ´Ï´Ù.

[2]

¼³Ä¡ ºÎÆà CD-ROMÀ» ¸¸µå½Ã·Á¸é, Red Hat Linux ¼³Ä¡ °¡À̵忡¼­ ÀÚ¼¼ÇÑ ³»¿ëÀ» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.