30.6. ºÎÆ®·Î´õ È®ÀÎÇϱâ

kernel RPM ÆÐÅ°Áö´Â GRUB À̳ª LILO°¡ ¼³Ä¡µÇ¾î ÀÖ´Ù¸é µÑ ÁßÀÇ Çϳª°¡ »õ·Î ¼³Ä¡µÈ Ä¿³ÎÀ» ºÎÆÃÇϵµ·Ï ¼³Á¤ÇÕ´Ï´Ù. ÇÏÁö¸¸ ÀÌ ÆÐÅ°Áö´Â ºÎÆ®·Î´õ°¡ »õ Ä¿³ÎÀ» µðÆúÆ®·Î ºÎÆÃÇϵµ·Ï ¼³Á¤ÇÏÁö´Â ¾Ê½À´Ï´Ù.

µû¶ó¼­ Ç×»ó ºÎÆ®·Î´õ°¡ »õ Ä¿³ÎÀ» ºÎÆÃÇϵµ·Ï Á¦´ë·Î ¼³Á¤µÇ¾ú´ÂÁö È®ÀÎÇØ º¸´Â °ÍÀÌ ÁÁ½À´Ï´Ù. ÀÌ°ÍÀº ¸Å¿ì Áß¿äÇÑ ´Ü°èÀÔ´Ï´Ù. ¸¸ÀÏ ºÎÆ®·Î´õ°¡ Á¤È®È÷ ¼³Á¤µÇÁö ¾Ê´Â´Ù¸é, Red Hat Linux ½Ã½ºÅÛÀ» ºÎÆÃÇÒ ¼ö ¾ø°Ô µÇ¸ç ÀÌ·¯ÇÑ »óȲÀÌ ¹ß»ýÇÑ´Ù¸é ÀÌÀü¿¡ ¸¸µå½Å ºÎÆà µð½ºÄÏÀ» °¡Áö°í ½Ã½ºÅÛÀ» ºÎÆÃÇϽŠÈÄ ºÎÆ®·Î´õ¸¦ ´Ù½Ã ¼³Á¤ÇÏ¼Å¾ß ÇÕ´Ï´Ù.

30.6.1. GRUB

GRUBÀ» ºÎÆ®·Î´õ·Î ¼±ÅÃÇÏ¼Ì´Ù¸é ¿©·¯ºÐÀÌ ¹æ±Ý ¼³Ä¡ÇϽŠkernel ÆÐÅ°Áö¿Í °°Àº ¹öÀüÀ» °¡Áø title ºÎºÐÀÌ /boot/grub/grub.conf ÆÄÀÏ¿¡ Æ÷ÇԵǾî ÀÖ´ÂÁö È®ÀÎÇØ ÁֽʽÿÀ. (kernel-smp ÆÐÅ°Áö¿Í/¶Ç´Â kernel-bigmem ÆÐÅ°Áö¸¦ ¼³Ä¡ÇϽŠ°æ¿ì¿¡µµ ´ÙÀ½°ú °°Àº ¼½¼ÇÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù):

# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=3
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-2.47.1)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-2.47.1 ro root=LABEL=/
        initrd /initrd-2.4.20-2.47.1.img
title Red Hat Linux (2.4.20-2.30)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-2.30 ro root=LABEL=/
        initrd /initrd-2.4.20-2.30.img

¸¸ÀÏ º°°³ÀÇ /boot ÆÄƼ¼ÇÀ» »ý¼ºÇϼ̴ٸé Ä¿³Î°ú initrd À̹ÌÁö·ÎÀÇ °æ·Î´Â /boot ÆÄƼ¼Ç¿¡ »ó´ëÀûÀÔ´Ï´Ù.

±âº» Ä¿³ÎÀÌ »õ·Î¿î Ä¿³Î·Î ¼³Á¤µÇÁö ¾ÊÀº Á¡À» À¯ÀÇÇØ ÁֽʽÿÀ. GRUBÀÌ »õ Ä¿³ÎÀ» µðÆúÆ®·Î ºÎÆÃÇϵµ·Ï ¼³Á¤ÇϽ÷Á¸é, default º¯¼öÀÇ °ªÀ» »õ Ä¿³ÎÀ» Æ÷ÇÔÇÏ°í ÀÖ´Â title ¼½¼Ç¿¡ »ç¿ëµÈ title ¼½¼Ç ¹øÈ£·Î ±³Ã¼ÇϽʽÿÀ. ÀÌ »ö¼Ç ¹øÈ£´Â 0¿¡¼­ ½ÃÀÛÇÕ´Ï´Ù. ¿¹¸¦ µé¾î »õ Ä¿³ÎÀÌ µÎ¹ø° title ¼½¼Ç¿¡ ÀÖ´Ù¸é, default¸¦ 1 ·Î ¼³Á¤ÇÏ½Ã¸é µË´Ï´Ù.

»õ Ä¿³ÎÀ» Å×½ºÆ®Çϱâ À§ÇÏ¿© ÄÄÇ»Å͸¦ ÀçºÎÆÃÇÑ ÈÄ Çϵå¿þ¾î°¡ Á¦´ë·Î °Ë»öµÇ´ÂÁö È®ÀÎÇϱâ À§ÇÏ¿© ¸Þ½ÃÁöµéÀ» »ìÆ캸½Ê½Ã¿À.

30.6.2. LILO

¸¸ÀÏ LILO¸¦ ºÎÆ®·Î´õ·Î »ç¿ëÇϽŴٸé, /etc/lilo.conf ÆÄÀÏ¿¡¼­ image ¼½¼ÇÀÌ ¹æ±Ý ¼³Ä¡ÇϽŠkernel ÆÐÅ°Áö¿Í °°Àº ¹öÀüÀ» °¡Áö°í ÀÖ´ÂÁö È®ÀÎÇØ ÁֽʽÿÀ. (kernel-smp ¶Ç´Â kernel-bigmem ÆÐÅ°Áö¸¦ ¼³Ä¡ÇϽŠ°æ¿ì¿¡µµ ´ÙÀ½°ú °°Àº ¼½¼ÇÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù):

prompt
timeout=50
default=2.4.20-2.30
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.20-2.47.1
        label=2.4.20-2.47.1
        initrd=/boot/initrd-2.4.20-2.47.1.img
        read-only
        append="root=LABEL=/"

image=/boot/vmlinuz-2.4.20-2.30
        label=2.4.20-2.30
        initrd=/boot/initrd-2.4.20-2.30.img
        read-only
        append="root=LABEL=/"

±âº» Ä¿³ÎÀÌ »õ·Î¿î Ä¿³Î·Î ¼³Á¤µÇÁö ¾ÊÀº Á¡À» À¯ÀÇÇØ ÁֽʽÿÀ. LILO°¡ »õ Ä¿³ÎÀ» µðÆúÆ®·Î ºÎÆÃÇϵµ·Ï ¼³Á¤ÇϽ÷Á¸é, default º¯¼öÀÇ °ªÀ» »õ Ä¿³ÎÀ» Æ÷ÇÔÇÏ°í ÀÖ´Â image ¼½¼Ç¿¡ »ç¿ëµÈ labelÀÇ °ªÀ¸·Î ±³Ã¼ÇϽʽÿÀ. º¯°æ »çÇ×À» È°¼ºÈ­±â À§ÇØ ·çÆ® »ç¿ëÀÚ·Î ·Î±×ÀÎÇϽŠÈÄ /sbin/lilo ¸í·ÉÀ» ½ÇÇàÇϽñ⠹ٶø´Ï´Ù. ÀÌ ¸í·ÉÀ» ½ÇÇàÇϽøé, ´ÙÀ½°ú °°Àº °á°ú°¡ Ãâ·ÂµÉ °ÍÀÔ´Ï´Ù:

Added 2.4.20-2.47.1 *
Added linux

2.4.20-2.47.1 ´ÙÀ½¿¡ ³ª¿Â * ´Â LILO°¡ ºÎÆÃÇÒ µðÆúÆ® Ä¿³ÎÀ» ÀǹÌÇÕ´Ï´Ù.

»õ Ä¿³ÎÀ» Å×½ºÆ®Çϱâ À§ÇØ ÄÄÇ»Å͸¦ ÀçºÎÆÃÇϽŠÈÄ Çϵå¿þ¾î°¡ Á¦´ë·Î °Ë»öµÇ´ÂÁö È®ÀÎÇϱâ À§ÇÏ¿© ¸Þ½ÃÁöµéÀ» »ìÆ캸½Ã±â ¹Ù¶ø´Ï´Ù.