LILO mini-HOWTOCameron Spitzer, cls@truffula.sj.ca.us1996³â 12¿ù 12ÀÏ Çѱ¹¾î ¹ø¿ª : ÀÌ Ã¶ ¿ì < wowlee@kldp.org>ÀÌ ÆÄÀÏÀº ¸î°¡ÁöÀÇ ÀüÇüÀûÀÎ ¸®·Î ¼³Ä¡¹ýÀ» ¼³¸íÇÑ´Ù. ÀÌ ÆÄÀÏÀº ¸®·Î »ç¿ëÀÚ °¡À̵带 º¸ÃæÇØÁÖ´Â °ÍÀ¸·Î »ç¿ëÇϵµ·Ï ÀǵµµÇ¾ú´Ù. ºñ·Ï ´ç½ÅÀÇ ¼³Á¤ »óȲÀÌ ÀÌ°Í°ú °°Áö´Â ¾Ê´õ¶óµµ ³ª´Â ÀÌ ¿¹Á¦µéÀÌ À¯ÀÍÇÒ°ÍÀ̶ó »ý°¢ÇÑ´Ù. ÀÌ ÆÄÀÏÀÌ ´ç½ÅÀÇ ¾î·Á¿òÀ» ´ú¾îÁֱ⸦ Èñ¸ÁÇÑ´Ù. 1. ¿¹Á¦ 1³ª´Â 2°³ÀÇ IDE µå¶óÀ̺ê¿Í ÇϳªÀÇ SCSI µå¶óÀ̺긦 °¡Áö°í ÀÖ´Ù. SCSI µå¶óÀ̺ê´Â ¹ÙÀÌ¿À½º¿¡¼ ÀνÄÇÒ ¼ö ¾ø´Ù. ¸®´ª½º ·Î´õ, ¸®·Î(LILO), ´Â ¹ÙÀÌ¿À½º È£Ãâ(BIOS call)À» »ç¿ëÇÏ°í ¿ÀÁ÷ ¹ÙÀÌ¿À½º¿¡¼ ÀνÄÇÏ´Â µå¶óÀ̺길 ÀνÄÇÒ ¼ö ÀÖ´Ù. ³ªÀÇ ¸ÛûÇÑ AMI ¹ÙÀÌ¿À½º´Â ´ÜÁö A µå¶óÀÌºê ¶Ç´Â C µå¶óÀÌºê ¿¡¼¸¸ ºÎÆÃÀÌ µÈ´Ù. ³ªÀÇ ·çÆ® ÆÄÀÏ ½Ã½ºÅÛÀº SCSI µå¶óÀ̺êÀÇ ÆÄƼ¼Ç¿¡ Á¸ÀçÇÑ´Ù. ÇØ´ä: Ä¿³Î, ¸Ê ÆÄÀÏ, ±×¸®°í ¸®´ª½º ÆÄƼ¼Ç¿¡¼ÀÇ Ã¼Àηδõ¸¦ ù ¹ø° IDE µå¶óÀ̺꿡 ÀúÀåÇÑ´Ù. ´ç½ÅÀÇ ·çÆ® ÆÄƼ¼ÇÀ§¿¡ Ä¿³ÎÀÌ ¹Ýµå½Ã ÀÖ¾î¾ßÇÒ ÇÊ¿ä´Â ¾ø´Ù´Â°É ÁÖ¸ñÇ϶ó. ù ¹ø° IDE µå¶óÀ̺ê(/dev/hda2)ÀÇ µÎ ¹ø° ÆÄƼ¼ÇÀº /u2 µð·ºÅ丮¿¡ ¸¶¿îÆ® µÇ¾î ÀÖ´Ù. ¿©±â ³»°¡ »ç¿ëÇÏ´Â /etc/lilo.conf ÆÄÀÏ ÀÌ´Ù. # ù ¹ø° IDE µå¶óÀ̺êÀÇ ¸¶½ºÅÍ ºÎÆ® ·¹ÄÚµå(MBR)¿¡ # ¸®·Î ºÎÆ® ·¹Äڵ带 ¼³Ä¡ÇÑ´Ù. # boot = /dev/hda # /sbin/lilo °¡ ´ÙÀ½ÀÇ ÆÄÀϷκÎÅÍ ¸®·Î ºÎÆ® ·¹Äڵ带 # ¸¶½ºÅÍ ºÎÆ® ·¹ÄÚµå(MBR)ÀÇ À§Ä¡¿¡º¹»çÇÑ´Ù. install = /u2/etc/lilo/boot.b # # ³ª´Â verbose ºÎÆ® ¸Þ´º¸¦ ½è´Ù. ¸®·Î°¡ ÀÌ°÷¿¡¼ ÀÌ°ÍÀ» ã´Â´Ù. message = /u2/etc/lilo/message # ¼³Ä¡ ÇÁ·Î±×·¥ÀÌ ´ÙÀ½ ÆÄÀÏÀ» ¸¸µé°ÍÀÌ´Ù. # ÀÌ°ÍÀº ºÎÆ®-·Î´õ¿¡ ¾îµð¿¡ Ä¿³ÎÀÇ ºí·°ÀÌ Àִ°¡¸¦ ¾Ë·ÁÁØ´Ù. map = /u2/etc/lilo/map compact prompt # 10Ãʸ¦ ±â´Ù¸®¸é ±âº»°ªÀ¸·Î 1.2.1 Ä¿³ÎÀ» ºÎÆÃÇÏ´Ù. timeout = 100 # ´ÙÀ½°ú °°ÀÌ ÇÔÀ¸·Î½á ¹ÙÀÌ¿À½º°¡ ÀÌ°ÍÀ» ÀνÄÇÒ ¼ö ÀÖ´Â °÷¿¡ Ä¿³ÎÀÌ ÀúÀåµÈ´Ù. # cp -p /usr/src/linux/arch/i386/boot/zImage /u2/z1.2.1 image = /u2/z1.2.1 label = 1.2.1 # ¸®·Î°¡ Ä¿³Î¿¡°Ô ù ¹ø° SCSI ÆÄƼ¼ÇÀ» ·çÆ®·Î¼ ¸¶¿îÆ®ÇÏ´Â °ÍÀ» ¾Ë·ÁÁØ´Ù # ¹ÙÀÌ¿À½º´Â ÀÌ°ÍÀ» ÀνÄÇÒ ¼ö ¾ø´Ù. root = /dev/sda1 # ÀÌ ÆÄƼ¼ÇÀÌ °Ë»çµÇ°í /etc/rc.d/rc.S¿¡ ÀÇÇØ ´Ù½Ã ¸¶¿îÆ® µÉ°ÍÀÌ´Ù. read-only # °°Àº Ä¿³ÎÀÌ ·çÆ® ÆÄƼ¼Ç ´ë½Å¿¡ ´Ù¸¥ ÆÄƼ¼ÇÀ» ¸¶¿îÆ®Çϵµ·Ï ÇÒ ¼ö ÀÖ´Ù. # ³ª´Â ºñ»ó¿ë ·çÆ® ¼Â¾÷À» /u2¿¡ °¡Áö°í ÀÖ´Ù. image = /u2/z1.2.1 label = 1.2.1-hda2 root = /dev/hda2 read-only # ³ª´Â »õ·Î¿î Ä¿³ÎÀÌ ÀÛµ¿ÇÏÁö ¾ÊÀ»°æ¿ì¸¦ ´ëºñÇÏ¿© ±¸¹öÁ¯ÀÇ # ½½·¢¿þ¾î Ä¿³ÎÀ» º¸°üÇØ ³õ¾Ò´Ù. ³ª´Â ½ÇÁ¦·Î ÇÑ ¹ø ÀÌ°ÍÀÌ ÇÊ¿äÇß´Ù. image = /u2/z1.0.9 label = 1.0.9 root = /dev/sda1 read-only # ³ªÀÇ DR-DOS 6 ÆÄƼ¼Ç. other = /dev/hda1 loader=/u2/etc/lilo/chain.b label = dos alias = m 2. ¿¹Á¦ 2³» »ç¹«½Ç¿¡ ÀÖ´Â ½Ã½ºÅÛÀº 1GB IDE µå¶óÀ̺긦 »ç¿ëÇÑ´Ù. ¹ÙÀÌ¿À½º´Â ´ÜÁö IDE µå¶óÀ̺êÀÇ 504 MB¸¸À» ÀνÄÇÑ´Ù. (MB´Â 10**6 ¾Æ´Ï¶ó, 2**10 ¹ÙÀÌÆ®¸¦ ÀǹÌÇÑ´Ù.) ±×·¡¼ ³ª´Â 350¸Þ°¡´Â µµ½º¿ë ÆÄƼ¼Ç(/dev/hda1) ±×¸®°í 120¸Þ°¡´Â ³ªÀÇ ¸®´ª½º ·çÆ® ÆÄƼ¼Ç(/dev/hda2)À¸·Î »ç¿ëÇÑ´Ù. MS-DOS´Â µå¶óÀ̺갡 »õ°ÍÀÏ ¶§ Á¤È®ÇÏ°Ô µµ½º ÀÚ½ÅÀ» ¼³Ä¡ÇÏÁö ¸øÇÑ´Ù. ³ëº§ µµ½º 7µµ °°Àº ¹®Á¦Á¡À» °¡Áö°í ÀÖ´Ù. ¿îÀÌ ÁÁ°Ôµµ, "Options by IBM" Àº µå¶óÀ̺ê¿Í ÇÔ²² ¹Ú½º¾È¿¡ "OnTrack" µð½º?À» ³Ö´Â °ÍÀ» Àؾú´Ù. ±× µå¶óÀ̺ê´Â "OnTrack Disk Manager." ¶ó ºÒ¸®¿ì´Â Á¦Ç°°ú ÇÔ²² µþ·Á ¿Ã°ÍÀÌ´Ù. ¸¸¾à ´ç½ÅÀÌ ´ÜÁö µµ½º¸¸À» °¡Áö°í ÀÖ´Ù¸é, ´ç½ÅÀº ÀÌ°É »ç¿ëÇØ¾ß ÇҰŶó°í »ý°¢ÇÑ´Ù. ±×·¡¼ ³ª´Â ¸®´ª½ºÀÇ fdisk·Î ÆÄƼ¼ÇÀ» ¸¸µé¾ú´Ù. µµ½º 6.2´Â ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¸¦ ³²±â¸é¼ /dev/hda1¿¡ ¼³Ä¡µÇÁö ¾Ê¾Ò´Ù. 'this release of MS-DOS is for new installations. Your computer already has MS-DOS [À§ÀÇ ¸Þ½ÃÁö´Â Ʋ·È´Ù, ±× µå¶óÀ̺ê´Â »õ°Í À̾ú´Ù] so you need to get an upgrade release from your dealer.' ±×·¡¼ ³ª´Â ¸®´ª½º fdisk¸¦ ´Ù½Ã ½ÇÇà½ÃÅ°°í Å×ÀÌºí¿¡¼ 1¹ø ÆÄƼ¼ÇÀ» Áö¿ü´Ù. ÀÌ°ÍÀÌ ³»°¡ Á¶±ÝÀü¿¡ Áö¿ì°í µµ½º¸¦ ¼³Ä¡Çß´ø 1¹ø ÆÄƼ¼Ç°ú µ¿ÀÏÇÑ ÆÄƼ¼ÇÀ» »ý¼º½ÃÄ×´ø µµ½º 6.2¸¦ ¸¸Á·½ÃÄ×´Ù. µµ½º 6.2´Â ±× µå¶óÀ̺꿡 ¸¶½ºÅÍ ºÎÆ® ·¹Äڵ带 ½è´Ù. ÇÏÁö¸¸ ÀÌ°ÍÀº ºÎÆÃÇÒ¼ö ¾ø¾ú´Ù. ¿îÀÌ ÁÁ°Ôµµ ³ª´Â Ç÷ÎÇÇ¿¡ ½½·¢¿þ¾î Ä¿³Î(½½·¢¿þ¾î ¼³Ä¡ ÇÁ·Î±×·¥ÀÎ "setup"¿¡ ÀÇÇØ ¸¸µé¾îÁø)ÀÌ ÀÖ´Ù. ±×·¡¼ ³ª´Â ¸®´ª½º¸¦ ºÎÆÃÇÏ°í µµ½ºÀÇ ¼Õ»óµÈ ¸¶½ºÅÍ ºÎÆ® ·¹ÄÚµå(MBR)¿¡ ¸®·Î(LILO)¸¦ ½è´Ù. ÀÌ°ÍÀº µ¿ÀÛÀ» ÇÑ´Ù. ¿©±â ³»°¡ »ç¿ëÇÏ´Â /etc/lilo.conf ÆÄÀÏ ÀÌ´Ù. boot = /dev/hda map = /lilo-map delay = 100 ramdisk = 0 # ½½·¢¿þ¾î Ä¿³Î¿¡¼ ·¥µð½ºÅ© ±â´ÉÀ» ÁßÁö½ÃŲ´Ù. timeout = 100 prompt disk = /dev/hda # ¹ÙÀÌ¿À½º(BIOS)´Â ¿ÀÁ÷ ù ¹ø° 500¸Þ°¡¸¸À» ÀνÄÇÑ´Ù. bios=0x80 # ù¹ø° IDE µå¶óÀ̺긦 ¸í½ÃÇÑ´Ù. sectors = 63 # ÀÌ ¼ýÀÚµéÀº ´ç½ÅÀÇ µå¶óÀÌºê ¼³¸í¼¿¡¼ ¾ò´Â´Ù. heads = 16 cylinders = 2100 image = /vmlinuz append = "hd=2100,16,63" # ÀÌ°Ç ¾Æ¸¶ Áߺ¹µÉ °ÍÀÌ´Ù. root = /dev/hda2 label = linux read-only vga = extended other = /dev/hda1 label = msdos table = /dev/hda loader = /boot/chain.b ## end ³»°¡ ÀÌ ½Ã½ºÅÛÀ» ¼³Ä¡ÇÑ ÈÄ¿¡, "½ºÅÂÄ¿" ¶Ç´Â "´õºí½ºÆäÀ̽º"¸¦ »ç¿ëÇÏÁö ¾ÊÀºÇÑ µµ½ºÀÇ ÆÄÀÏ ½Ã½ºÅÛÀ» »ç¿ëÇÒ ¼ö ÀÖ´Â zImage, boot.b, map, chain.b, ±×¸®°í message files°¡ ÀÖ´Â ÆÄƼ¼ÇÀ» Á¶»çÇß´Ù. ±×·¡¼ ³ª´Â /dev/hda1 ÀÇ 500 MB¿¡ µµ½º ÆÄƼ¼ÇÀ» ¸¸µé ¼ö ÀÖ¾ú´Ù. ³ª´Â ¶ÇÇÑ "OnTrack"ÀÌ ÆÄƼ¼Ç Å×À̺íÀÇ Ã³À½ ¸î½Ê ¹ÙÀÌÆ®¸¦ µå¶óÀ̺꿡 ±â·ÏÇßÀ» °ÍÀ̶ó´Â °Í°ú ¸®´ª½º IDE µå¶óÀ̹ö¸¦ ÀÌ ¹®Á¦¸¦ ÇØ°áÇϵµ·Ï ÇØÅ·ÇÏ´Â °ÍÀÌ °¡´ÉÇÏ´Ù´Â °ÍÀ» ¹è¿ï ¼ö ÀÖ¾ú´Ù. ÇÏÁö¸¸ ¹Ì¸® ÄÄÆÄÀϵǾîÀÖ´Â ½½·¢¿þ¾î Ä¿³ÎÀ» °¡Áö°íµµ ¼³Ä¡´Â ºÒ°¡´É ÇßÀ»°ÍÀÌ´Ù. °á±¹, IBM¿¡¼ ³ª¿¡°Ô "OnTrack" µð½º¤»À» º¸³Â´Ù. ³ª´Â OnTrack ÀÇ ±â¼ú Áö¿øºÎ¼¿¡ Àüȸ¦ Çß´Ù. ±×µéÀº ¸®´ª½º°¡ ±úÁ³´Ù°í ³ª¿¡°Ô ¸»Çß´Ù. ¿Ö³ÄÇÏ¸é ¸®´ª½º´Â ¹ÙÀÌ¿À½º¸¦ »ç¿ëÇÏÁö ¾Ê±â ¶§¹®ÀÌ´Ù. ³ª´Â ±× µð½ºÅ©À» ¹ö·È´Ù. 3. ¿¹Á¦ 3³ª´Â »ç¹«½ÇÀÇ ½Ã½ºÅÛ¿¡ À©µµ¿ì-95¸¦ ¼³Ä¡ÇÏ¿´´Ù. ±×·±µ¥ À©µµ¿ì-95°¡ ¸®·Î ¸¶½ºÅÍ ºÎÆ® ·¹ÄÚµå(LILO MBR)¸¦ ³¯·Á¹ö·È´Ù. ±×·±µ¥ À©µµ¿ì-95´Â ³ªÀÇ ¸®´ª½º ÆÄƼ¼Ç¸¸À» È¥ÀÚ ³²°ÜµÎ¾ú´Ù. Ç÷ÎÇǷκÎÅÍ Ä¿³ÎÀ» ÀûÀçÇÏ´Â °ÍÀº ¿À·£ ½Ã°£ÀÌ °É¸°´Ù. ±×·¡¼ ³ª´Â IDE µå¶óÀ̺ê·ÎºÎÅÍ Ä¿³ÎÀ» ºÎÆÃÇÒ ¼ö ÀÖ´Â, Ç÷ÎÇÇ¿¡ ¸®·Î ¼Â¾÷À»ÇÏ´Â Ç÷ÎÇÇ µð½ºÅ©¸¦ ¸¸µé¾ú´Ù. ³ª´Â ¸®·Î Ç÷ÎÇÇ µð½ºÅ©¸¦ ´ÙÀ½°ú °°ÀÌ ¸¸µé¾ú´Ù: fdformat /dev/fd0H1440 # ºó µð½ºÄÏ¿¡ Æ®·¢À» ¸¸µç´Ù. mkfs /dev/fd0 1440 # ¹Ì´Ð½º ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¸µç´Ù. mkdir /3 # ¹Ì´Ð½º ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®ÇÒ µð·ºÅ丮¸¦ ¸¸µç´Ù. mount /dev/fd0 /3 cp -p /boot/chain.b /3 # äÀηδõ¸¦ º¹»çÇÑ´Ù. lilo -C /etc/lilo.flop # µð½º?¿¡ ¸®·Î¿Í ¸ÊÀ» ¼³Ä¡ÇÑ´Ù. umount /3 µð½º¤»Àº ´ç½ÅÀÌ ¼³Ä¡ ÇÁ·Î±×·¥À» ½ÇÇà½Ãų ¶§ ¹Ýµå½Ã ¸¶¿îÆ®µÇ¾î¾ß ÇÑ´Ù´Â°É ÁÖ¸ñÇضó. ±×·¡¾ß ¸®·Î°¡ ¸ÊÀ» ÀûÀýÈ÷ ¾µ ¼ö ÀÖ´Ù. ÀÌ ÆÄÀÏÀº /etc/lilo.flop ÀÌ´Ù. ÀÌ°ÍÀº ¸¶Áö¸·°Í°ú °ÅÀÇ ¶È°°´Ù: # ÇÏµå µð½ºÅ©·ÎºÎÅÍ Ä¿³ÎÀ» ºÎÆÃÇÒ¼ö ÀÖ´Â Ç÷ÎÇǸ¦ ¸¸µç´Ù. boot = /dev/fd0 map = /3/lilo-map delay = 100 ramdisk = 0 # ½½·¢¿þ¾îÄ¿³Î¿¡¼ ·¥ µð½ºÅ© ±â´ÉÀ» ÁßÁö½ÃŲ´Ù. timeout = 100 prompt disk = /dev/hda # 1±â°¡ IDE µå¶óÀ̺ê, ¹ÙÀÌ¿À½º´Â ´ÜÁö óÀ½ 500¸Þ°¡¸¸À» ÀνÄÇÑ´Ù. bios=0x80 sectors = 63 heads = 16 cylinders = 2100 image = /vmlinuz append = "hd=2100,16,63" root = /dev/hda2 label = linux read-only vga = extended other = /dev/hda1 label = msdos table = /dev/hda loader = /3/chain.b ## ³¡ ¸¶Áö¸·À¸·Î, ³ª´Â »ç¹«½ÇÀÇ ÄÄÇ»ÅÍ¿¡ µµ½º 6.2¸¦ ÇÊ¿ä·ÎÇÑ´Ù. ÇÏÁö¸¸ ù ¹ø° µå¶óÀ̺ê´Â °Çµå¸®°í ½ÍÁö ¾Ê¾Ò´Ù. ³ª´Â SCSI ÄÜÆ®·Ñ·¯¿Í µå¶óÀ̺긦 Ãß°¡ÇÏ°í, ¸®´ª½ºÀÇ mkdosfs ¸í·É¾î·Î ±× µå¶óÀ̺꿡 µµ½º ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¸µé¾ú´Âµ¥, À©µµ¿ì 95´Â ÀÌ°ÍÀ» D µå¶óÀ̺ê·Î ÀνÄÇÑ´Ù. ±×·¯³ª ´ç¿¬È÷ µµ½º´Â D µå¶óÀÌºê ¿¡¼ ºÎÆõÇÁö ¾ÊÀ»°ÍÀÌ´Ù. ÀÌ°ÍÀº ´ç½ÅÀÌ ¸®·Î¸¦ °¡Áö°í ÀÖ´Ù¸é ¹®Á¦°¡ µÇÁö ¾Ê´Â´Ù. ³ª´Â ¿¹Á¦ 2.¿¡¼ÀÇ lilo.conf¿¡ ´ÙÀ½ÀÇ ³»¿ëÀ» Ãß°¡Çß´Ù. other = /dev/sda1 label = d6.2 table = /dev/sda loader = /boot/any_d.bµµ½º 6.2°¡ ½ÇÇàµÇ°í, µµ½º´Â ÀÚ½ÅÀÌ C µå¶óÀ̺꿡 ÀÖ°í À©µµ¿ì 95´Â D µå¶óÀ̺꿡 ÀÖ´Ù°í »ý°¢ÇÑ´Ù. |
If you always postpone pleasure you will never have it. Quit work and play for once! |