LiveCD-HOWTO
¸¸µçÀÌ: Kmu ISM(ÀÓÀΰæ, À±½Å¼ö, ÇÔÇü¹Î, Ȳ´ëº¹)
1. µé¾î°¡¸é¼ ¶¿ì¼± ÀÌ ¹®¼´Â Live CD¸¦ ¸¸µå´Â °ÍÀ» µµ¿ÍÁÖ±â À§ÇÑ ¹®¼ÀÌ´Ù. Çö½ÇÀûÀ¸·Î ´ëºÎºÐÀÇ ¸¹Àº À¯ÀúµéÀº Linux ´ë½Å Windows¸¦ »ç¿ëÇÏ°í ÀÖ°í, °Ô´Ù°¡ Live CDÀÇ Çʿ伺À» ¸¹ÀÌ ¸ø ´À³¢°í ÀÖ´Â °Ô »ç½ÇÀÌ´Ù. ÇÊÀÚ ¿ª½Ã Linuxº¸´Ù Windows°¡ Àͼ÷ÇÑ °ÍÀÌ »ç½ÇÀÌ´Ù. ÇÏÁö¸¸ ¿ì¸®´Â ¾î¶² ÇÁ·ÎÁ§Æ®ÀÇ Áغñ°úÁ¤À¸·Î Live CD¸¦ ¸¸µå´Â Áß ¸¹Àº »ðÁúÀ» °ÅµìÇÏ¿´°í, ±× °úÁ¤¿¡¼ ¾ÆÁ÷±îÁö Á¦´ë·Î µÈ Live CD¿¡ ´ëÇÑ Àü¹®ÀûÀÎ ¹®¼°¡ Á¸ÀçÇÏÁö ¾Ê´Â Á¡¿¡ ³î¶ú´Ù. ¶ÇÇÑ ºÎÆðü·Ã ¹®¼µé°ú °ü·Ã script¹®¼µéÁ¶Â÷ ¿¹Àü °ÍÀÌ ¸¹¾Ò±â¿¡ ¾Æ½¬¿î Á¡µéÀÌ ÇÑ µÎ °¡Áö°¡ ¾Æ´Ï¾ú´Ù. ÀÌ·± ȯ°æµéÀÌ ¿ì¸®¿¡°Ô ¸¹Àº »ðÁúÀ» ¿ä±¸ ÇÏ¿´°í, Çϳª¾¿ ÇØ°áÇسª°¡´Â °úÁ¤¿¡¼ Á¶±ÝÀ̳ª¸¶ µµ¿òÀÌ µÉ °ÍµéÀÌ ÀÖ¾ú´ø °Í °°´Ù. ¶ÇÇÑ Live CD·Î ÀÎÇØ ¿ì¸®¿Í °°Àº »ðÁú ¸®´ª¼µéÀÌ ´õ ÀÌ»ó ¾ø¾îÁö±â¸¦ ¹Ù¶ó¸ç ªÀº Áö½ÄÀÌÁö¸¸ HowTo¹®¼¸¦ ÀÛ¼ºÇϱâ·Î °áÁ¤Çß´Ù. À߸øµÈ Á¡À̳ª ¿À·ù, ¹®ÀÇ»çÇ× µîÀÌ ÀÖ´Ù¸é ¾ðÁ¦µçÁö ¸ÞÀÏ·Î ¿¬¶ôÇØÁÖ±æ ¹Ù¶õ´Ù.
- íèØ ß²ìÑú¼ ù±êóä²ÞÔåê ÷ÉÐìà¼íºì»ðôñý ÐìÝÕà¼íºì»ËÇñý -
1.1. Live CD¶õ? ¶Linux¸¦ ½áº» °æÇèÀÌ Àִ°¡? ÀÖ´Ù¸é ¸®´ª½º ¼³Ä¡ °úÁ¤ÀÌ ¾ó¸¶³ª ¹ø°Å·Î¿îÁö ¾Ë °ÍÀÌ´Ù.ÀÌ·± ¹ø°Å·Î¿òÀ» ¾ø¾Ö±â À§ÇÑ ÀÏȯ¿¡¼ ½ÃÀÛµÈ °ÍÀÌ Live CD¶ó°í ÇÒ ¼ö ÀÖ´Ù. Áï, ¾î¶² ¿î¿µÃ¼Á¦°¡ ¼³Ä¡ µÇ¾îÀÖ´Â ÄÄÇ»ÅÍ¶óµµ CD ÇÑ À常 ³ÖÀ¸¸é Çϵå¿þ¾î¿¡ º¯È¸¦ ÁÖÁö ¾ÊÀ¸¸é¼ ¸®´ª½º ȯ°æÀ» Á¦°øÇÏ°í, »ç¿ëÇÒ ¼ö ÀÖ°Ô ¸¸µé¾î ÁÖ´Â CD¸¦ ¸»ÇÑ´Ù. ÀÌ´Â Install CD°¡ ¾Æ´Ñ Ramdisk¿¡ »óÁÖÇÏ´Â Linux·Î¼ ±×³É Àü¿øÀ» ²ö °æ¿ì¶óµµ Ä¿³ÎÀÇ ±úÁüÀ» °ÆÁ¤ ÇÏÁö ¾Ê¾Æµµ µÇ´Â LinuxÀÌ´Ù. ^^* ¹°·Ð HDD¸¦ ¸¶¿îÆ® Çؼ ±× ¾È¿¡ ÀÖ´Â ÀÚ·áµéÀ» º¼ ¼ö ÀÖ°í ÀúÀåÇÒ ¼öµµ ÀÖ´Ù.
1.2. »ç¿ë ¿ëµµ ¶»ç¿ë ¿ëµµ´Â Linux ¸À¹è±â¿ëµµ µÉ ¼ö ÀÖ°í, À©µµ¿ì°¡ ±ò·ÁÀִ ȯ°æ¿¡¼ÀÇ Linux±³À°µµ °¡´ÉÇÏ°Ú´Ù. ÀνºÅçÀÇ ¾Ð¹Ú¿¡¼ ¹þ¾î³ª, ÀνºÅç Àü¿¡ Linux¸¦ »ç¿ëÇØ º¼ ¼öµµ ÀÖ°í, Linux »ç¿ëÀÇ µÎ·Á¿òÀ» Á¶±ÝÀ̳ª¸¶ ¾ø¾Ö Àü¹ÝÀûÀ¸·Î Linux º¸±ÞÀ» ³Î¸® ÆÛÁö°Ô ÇÒ ¼ö ÀÖÀ» µí ÇÏ°Ú´Ù. ÇÏÁö¸¸ ÇÊÀÚ´Â µüÈ÷ ¿ëµµ¸¦ ¹Ù¶ó°í ¸¸µç °ÍÀÌ ¾Æ´Ï¶ó... ^.^; »ç¿ë ¿ëµµ´Â À¯ÀúµéÀÇ ÀÚÀ¯·Î¿î »ó»ó¿¡ ¸Ã±â°Ú´Ù.
2007³â ÇöÀç Live CD´Â ´õ¿í ¹ßÀüµÇ¾î À̵¿¼ºÀ» Áö¿øÇÏ°í ÀÚ·áÀÇ ÀúÀåÀ» °¡´ÉÇÏ°Ô ÇØÁÖ´Â ÀåÁ¡ÀÌ ÀÖ´Ù. ÇöÀç CD»Ó¸¸ ¾Æ´Ï¶ó DVD´Â ¹°·ÐÀÌ°í USB Flash ¸Þ¸ð¸®(Live USB Flash 2006³â ¼±º¸ÀÓ)ÇüÅ·ΠÁøÈÇÏ¿´°í ÀúÀå ¿ë·®ÀÇ Á¦ÇÑÀ» ³Ñ¾î Live CD ÇüÅÂÀÇ Live OS ÀÚü¸¸À¸·Î °ÅÀÇ ¸ðµç ÀÛ¾÷ÀÌ °¡´ÉÇÏ´Ù°í ÇÒ ¼ö ÀÖ´Ù.
1.3. ÀÛ¾÷ µ¿±â ¶¿ì¸® ÇÁ·ÎÁ§Æ®ÀÇ ¸ñÇ¥´Â °¡Á¤¿ë °ÔÀÓ Äֿܼ¡¼ ¸®´ª½ºÀÇ ÀνºÅç ¹× º°µµÀÇ Çϵå¿þ¾î ¼¼ÆþøÀÌ ¸®´ª½º ȯ°æÀ» Á¦°øÇÔÀ¸·Î¼ PCÀÇ ¿ªÇÒÀ» °¡´ÉÇÏ°Ô ÇÏ¿©, °ÔÀÓÄܼÖÀÇ È°¿ëµµ¸¦ ³ôÀÌ°í ³ª¾Æ°¡ Ȩ¼¹ö¸¦ ±¸ÇöÇÏ´Â °ÍÀÌ´Ù. ÀÚ¼¼È÷ ¸»ÇÏÀÚ¸é, Ȩ¼¹öÀÇ °¡´É¼ºÀ» ã´Â °ÍÀ̶ó°í ÇØ¾ß ¿ÇÀ» °Í °°´Ù.
¿ì¸®´Â À̸¦ À§ÇÑ Ã¹ ¹ø° ´Ü°è·Î Live Linux CD ÀÛ¼º ¹× ¹æ¹ýÀÌ ÇÊ¿äÇß°í, ÀÌ·± ÀÛ¾÷ °úÁ¤À» ÅëÇØ HowTo¹®¼¿Í ÇÑÄÄ ¸®´ª½º, ¿Í¿ì ¸®´ª½º¸¦ ¹ÙÅÁÀ¸·Î ÀÛ¼ºµÈ Live CD¸¦ ¾òÀ» ¼ö ÀÖ¾ú´Ù. ¾Æ¸¶ Àß ¾Æ½Ã´Â ºÐµéÀº Live CDÇÏ¸é ¸î°¡Áö¸¦ µé¾îºÃÀ» °ÍÀ̶ó°í »ý°¢ÇÑ´Ù. ÇöÁ¸ÇÏ´Â ´ëÇ¥ÀûÀÎ Live Linux CD´Â knoppix, GentooµîÀÌ ÀÖ´Ù. ÀÌ Live LinuxºÐ¾ß´Â À¯·´À» ÁÖµµ·Î ÇÏ¿©, ÀÌ¿ô ÀϺ» ¹× ¸î¸î ¾Æ½Ã¾Æ Áö¿ª±îÁöµµ ¸¹Àº °ü½ÉÀ» °¡Áö°í ÀÖ´Ù. ÇÏÁö¸¸ ¿ì¸®³ª¶ó´Â Àü¹«ÇÑ »óÅ ÀÎ µíÀ¸·Î º¸¿©¼ ¸¹Àº ¾î·Á¿òÀÌ ÀÖ¾ú°í, ÀÌ·± ÀÌÀ¯´Â ÀÛ¾÷À» ÇÏ¸é¼ ¿ì¸®µµ Çѹø ¸¸µé¾î º¸ÀÚ´Â ÀÇ¿åÀ» ÀÏÀ¸ÄÑ ÁØ °¡Àå Å« ÈûÀÌ ¾Æ´Ï¿´³ª ½Í´Ù.
1.4. ÇöÀç Live CD¸¦ ±¸ÇÒ ¼ö ÀÖ´Â °÷ ¶»çÀÌÆ® ÁÖ¼Ò: http://www.frozentech.com/content/livecd.php ÀÌ »çÀÌÆ®´Â 100¿©°¡Áö ÀÌ»óÀÇ Live CD¸¦ Á¦°øÇÑ´Ù. ¹°·Ð ÀÌ »çÀÌÆ® ÀÌ¿Ü¿¡ ´Ù¸¥ »çÀÌÆ®µéµµ ÀÖÁö¸¸, ´ëºÎºÐ ÀÌ ³»¿ë¿¡ Æ÷ÇԵǹǷΠ»ý·«ÇÏ°Ú´Ù.
1.5. ¹®¼¿¡ ´ëÇÑ Ã¥ÀÓ ¶¿ì¼± ¹®¼´Â ÀÚÀ¯·Ó°Ô ¹èÆ÷µÉ ¼ö ÀÖ°í, ¼öÁ¤ µÉ ¼ö ÀÖ´Ù. ¿ì¸® ¿ª½Ã Á» ´õ ¸¹Àº »ç¶÷ÀÌ ÀÌ ¹®¼¸¦ Á¢ÇÏ°í, Á» ´õ ¹ßÀü ½ÃÄÑ ´õ ³ªÀº Live CD¸¦ ¸¸µå´Â °ÍÀ» ¿øÇÑ´Ù. ÇÏÁö¸¸, ²À Ãâó´Â ¹àÇôÁÖ±æ ¹Ù¶ó°í, ¼öÁ¤ ½Ã ¿ì¸®¿¡°Ôµµ ¾Ë·ÁÁÖ±æ ¹Ù¶õ´Ù. ±×¸®°í ÀÌ ¹®¼´Â ´Ü¼øÈ÷ HowTo¸¸À» Á¦°øÇÒ »ÓÀÌ´Ù. ÇÏÁö¸¸ Live CD°¡ ·¥¿¡¸¸ ¿Ã¶ó°¥ °ÍÀ̱⿡ Çϵå¿þ¾îÀûÀ¸·Î ¾Æ¹«·± ¿µÇâÀ» ¹ÌÄ¡Áö ¾Ê´Â °ÍÀ» È®½ÅÇÑ´Ù. ÇÏÁö¸¸ Ȥ½Ã ÀÌ °úÁ¤ Áß¿¡ ¹®Á¦°¡ »ý±ä´Ù¸é ¿ì¸®´Â ±×°Í¿¡ ´ëÇØ ¾Æ¹«·± Ã¥ÀÓµµ ÁöÁö ¾Ê´Â´Ù´Â °ÍÀ» ¹àÈ÷°Ú´Ù. ¶ÇÇÑ À߸ø ±¸¿öÁø CD¿¡ ´ëÇؼµµ ¿ì¸®´Â »ó°üÇÏÁö ¾ÊÀ» °ÍÀÌ´Ù. À̸¦ À§ÇØ ¼Óµµ´Â Á» ´À¸®°ÚÁö¸¸ óÀ½¿£ RW¸¦ ÀÌ¿ëÇÏ´Â °ÍÀÌ ÁÁÀº ¹æ¹ýÀÌ µÉ °ÍÀÌ´Ù.
2. Áغñ¹° ¶Live CD¸¦ À§Çؼ± ¸î °¡Áö Áغñ¹°ÀÌ ÇÊ¿äÇÏ´Ù. ½ÃÀÛÇϱâ Àü¿¡ À̸¦ ²À È®ÀÎÇÏ°í ½ÃÀÛÇϱ⠹ٶõ´Ù. ¸¸ÀÏ Áغñ¹°µé Áß ¾ø´Â °ÍÀÌ ÀÖ´Ù¸é, µµµÏÁú¸¸ ÇÏÁö ¸»°í, ¾îµð¼µç ±¸ÇÏ±æ ¹Ù¶õ´Ù.
2.1. ÇÊ¿äÇÑ Áغñ»çÇ× ¶Á¤¸» ¹«¾ùº¸´Ùµµ »ðÁúÇÏ°íÀÚ ÇÏ´Â ¸¶À½ÀÌ ÇÊ¿äÇÏ´Ù. ÀÌ Live CD¸¦ ¸¸µé¾î¼ ¹«¾ùÀ» ÇÏ°Ú´À³Ä ½ÍÁö¸¸ ¿ì¸®´Â ÁøÁ¤ÇÑ ¸®´ª¼¸¦ ÁöÇâÇϱ⿡... ^^;
¶ÇÇÑ Live CD¿¡ ´ëÇÑ Çʿ伺À» ¾Ë¾Æ¾ß ÇÑ´Ù. ¿¹¸¦ µé¾î ÃâÀåÀ̳ª °ÀǸ¦ ÇÏ°Ô µÇ´õ¶óµµ ÀÌ CD ÇÑ À常 µé°í ´Ù´Ñ´Ù¸é ¾ðÁ¦ ¾îµð¼µç ·çÆ®ÀÇ ±ÇÇÑÀ¸·Î ¸®´ª½º¸¦ »ç¿ëÇÒ ¼ö ÀÖÀ» °ÍÀÌ°í, À̸¦ ã¾Æ ´Ù´Ò ÇÊ¿ä°¡ ¾øÀ» °ÍÀÌ´Ù. Live CD´Â ÀÇ¿Ü·Î ¾µ¸ð ÀÖ´Â °æ¿ì°¡ ¸¹°í, ¶ÇÇÑ »Ç´ëµµ ³ªÁö ¾Ê´Â°¡? ^^; ¾Æ¹«Æ° »ðÁúÀ» ÇÏ°Ú´Ù´Â ¸¶À½°ú, ¿Ö ÇÏ´Â Áö¿¡ ´ëÇÑ ¸íÈ®ÇÑ ÀÌÀ¯¸¸ ÀÖ´Ù¸é ÀÌ¹Ì ¹ÝÀº ¿Ï¼ºµÆ´Ù°í »ý°¢ÇÑ´Ù.
°¢¼³ÇÏ°í, ÇÊ¿äÇÑ »çÇ×Àº ´ÙÀ½°ú °°´Ù.
2.2. ÁÖÀÇÇÒ Á¡ ¶Æ¯º°È÷ ÁÖÀÇ ÇÒ Á¡Àº ¾ø´Ù. ÇÏÁö¸¸, CD¸¦ ¸¸µå´Â °úÁ¤¿¡¼ ¾ÐÃàÇÏ°í, ±Á´Â °úÁ¤ÀÌ °¡Àå ½Ã°£ÀÌ ¿À·¡ °É¸®´Â °úÁ¤À̱⠶§¹®¿¡ À¢¸¸ÇÏ¸é ºü¸¥ ¼ÓµµÀÇ ³»ÀåÇü CD-RW Writer¸¦ ±ÇÀåÇÑ´Ù. ÇÊÀÚÀÇ °æÇèÀ¸·Î ¿ÜÀåÇü CD-RW Writer¸¦ »ç¿ëÇÒ ¶§´Â ¾Æ¹«¸® RW°¡ Áö¿øÀ» ÇÏ´õ¶óµµ ÃÖ´ë¹è¼Ó 4¹è¼ÓÀ¸·Î ¹Û¿¡ ¾È ±¸¿öÁ³´Ù. °Ô´Ù°¡ ¿ÜÀåÇü CD-RW Writer´Â ƯÁ¤ ½Ãµð¸¸ µÇ´Â ¹®Á¦Á¡ÀÌ ÀÖ¾ú´Ù. Áï ¸î¸î ȸ»çÀÇ CD¸¸ °¡´ÉÇß´Ù. °æÇè »óÀ¸·Î´Â Imation, SONY°¡ °¡´ÉÇß°í, ³ª¸ÓÁö´Â ÀÚ¼¼È÷ È®ÀÎÇغ¸Áö ¸øÇß´Ù. ¾ÏÆ° ¿ÜÀåÇü 4¹è¼ÓÀ¸·Î ±Á´Ùº¸¸é ÇÑ-µÎ Àå ±¸¿ï¶§ ÇѳªÀý °É¸± ¶§µµ ÀÖ¾ú´Ù. -_-; ³»ÀåÇüÀ¸·Î ±¸¿üÀ¸¸é ±Ý¹æ ±¸¿öÁú °ÍÀ»... ¾Æ¹«ÂÉ·Ï ÁÁÀº »ç¾ç¿¡¼ »ðÁúÇÏ±æ ¹Ù¶õ´Ù. Âü°í·Î ÇÊÀÚ´Â LG 48¹è¼Ó CD-RW Writer¿Í Acer 12x, SK 10x CD-RW¸¦ »ç¿ëÇß´Ù.
3.1. ¼ø¼µµ ¶- ´ë·«ÀûÀÎ ¼ø¼´Â ´ÙÀ½°ú °°´Ù.
¸®´ª½º ¹èÆ÷ÆÇ ¼³Ä¡ -> ºÎÆÃÀ» À§ÇÑ boot.img ÀÛ¼º -> ºÎÆà ȮÀÎ -> ¹èÆ÷ÆÇ ¼³Á¤ º¯°æ -> ºÎÆà À̹ÌÁö(boot.img)¿Í ¹èÆ÷ÆÇ À̹ÌÁö(ISM)¸¦ ÇÔ²² ISOÆÄÀÏ·Î ÀÛ¼º -> ºÎÆà ÈÄ Å×½ºÆ®
3.2. ¸®´ª½º ¹èÆ÷ÆÇ ¼³Ä¡ ¶°¡Àå ¸ÕÀú ÇÒ ÀÏÀº ¸®´ª½º¸¦ º°µµÀÇ ÆÄƼ¼Ç¿¡ ¼³Ä¡ÇÏ´Â °ÍÀÌ´Ù. ÀÏ´Ü ¶óÀÌºê ½Ãµð·Î ¸¸µé°í ½ÍÀº ¸®´ª½º ¹èÆ÷ÆÇÀ» ÁغñÇØ¾ß ÇÑ´Ù. ÇÊÀÚÀÇ Live CD¿¡¼´Â ·¹µåÇÞ °è¿ÀÇ ÇÑÄÄ ¸®´ª½º3.1À» »ç¿ëÇß´Ù. ¼³Ä¡¸¦ À§Çؼ´Â ÇöÀç ºÎÆà µÇ´Â ½Ã½ºÅÛ¿¡ ÆÄƼ¼ÇÀ» ÁغñÇÑ´Ù. ÀÌ´Â ´ë·« 2GÁ¤µµÀÇ ¿ë·®ÀÌ ÇÊ¿äÇÏ´Ù. ÀÌ °ø°£Àº ¶óÀÌºê ½Ãµð·Î ¼³Ä¡µÉ ¸®´ª½º°¡ Â÷ÁöÇÒ °ø°£ÀÌ´Ù. »õ·Î »ý¼ºÇÑ ÆÄƼ¼ÇÀ» ext2·Î Æ÷¸Ë ÈÄ ¹èÆ÷ÆÇ ½Ãµð¸¦ ÀÌ¿ëÇÏ¿© ¸®´ª½º¸¦ ¼³Ä¡ÇÏ°í, ¼³Ä¡µÈ ½Ã½ºÅÛÀÌ ÀÌ»ó ¾øÀÌ ºÎÆõǴÂÁö ¿©ºÎ¸¦ È®ÀÎÇÑ´Ù.(¼³Ä¡ ¹æ¹ý¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ¹®¼´Â ´Ù¸¥ ±â¼ú ¹®¼¸¦ Âü°íÇϰųª ¸®´ª½º °ü·Ã ¼ÀûÀ» Âü°íÇϱ⠹ٶõ´Ù.)
ºÎÆÃÀÌ Àß µÈ´Ù¸é ºÎÆà ½Ã Ramdisk¸¦ »ç¿ëµµ·Ï RamdiskÀÇ ¿ë·®À» Á¤ÇØÁØ´Ù. ÇöÀç·Î¼± RamdiskÀÇ ¿ë·®Àº 8192KB·Î »ç¿ëÇÏ°í ÀÖ´Ù. ÀÌ´Â /etc/lilo.conf¿¡¼ ramdisk=8192¶ó´Â ¸í·É¾îÇàÀ» »ðÀÔÇÔÀ¸·Î½á ¼³Á¤ ¶Ç´Â º¯°æ °¡´ÉÇÏ´Ù.
ex) lilo.conf ÆÄÀÏ
default=redhat
boot=/dev/hda1 map=/boot/map install=/boot/boot.b message=/boot/message ramdisk=8192 # ÀÌ ºÎºÐ Ãß°¡ image=/boot/vmlinuz label=redhat initrd=/boot/initrd.gz read-only ex)grub.conf ÆÄÀÏ
# grub.conf generated by anaconda
# # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,0) # kernel /boot/vmlinuz-version ro root=/dev/hda1 # initrd /boot/initrd-version.img #boot=/dev/hda default=0 timeout=10 splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Red Hat Linux (2.4.20-31.9) root (hd0,0) kernel /boot/vmlinuz-2.4.20-31.9 ro root=LABEL=/ ramdisk_size=8192 # ramdisk_size ¶ó´Â°Í¿¡ ÁÖÀÇ initrd /boot/initrd-2.4.20-31.9.img ¼³Ä¡½Ã À¯ÀÇ »çÇ×: ¼³Ä¡µÉ ÆÄƼ¼ÇÀº ext2·Î ¼³Á¤ÇØ¾ß Çϸç, ¿ë·®Àº 2G¸¦ ÃÊ°úÇؼ± ¾È µÈ´Ù. ÀÌ´Â 700MB CD¿¡ ³ÖÀ» ¼ö ¾ø±â ¶§¹®ÀÌ´Ù.
3.3. ºÎÆà À̹ÌÁö ÀÛ¼º ¶¹èÆ÷ÆÇÀÌ ¹«»çÈ÷ ¼³Ä¡µÆ°í, Ramdisk±îÁö »ç¿ëÇÑ´Ù¸é, ÀÌÁ¦ Ramdisk¿¡ Ç®¸± À̹ÌÁö¿Í Ä¿³Î ±×¸®°í ºÎÆ®·Î´õ°¡ µé¾îÀÖ´Â ºÎÆÃÀ» À§ÇÑ ºÎÆà À̹ÌÁö¸¦ ¸¸µé¾î¾ß ÇÑ´Ù. ÀÌ´Â µð½ºÄÏÀ» ÀÌ¿ëÇÏ¿© ¿ì¼± Å×½ºÆ®À» Çغ» ÈÄ ¹®Á¦°¡ ¾øÀ¸¸é boot.img ÆÄÀÏ·Î ¸¸µé°Ô µÈ´Ù.
¿ì¼± ºÎÆà À̹ÌÁöÀÎ boot.img¸¦ ¸¸µé¾î¾ß ÇÑ´Ù. ÀÌ´Â Live CDÀÇ ÇÙ½ÉÀûÀÎ ºÎºÐÀ¸·Î À̸¦ ¸¸µå´Â µ¥ °¡Àå ½Ã°£À» ¸¹ÀÌ ÅõÀÚÇß°í, ¾ÆÁ÷±îÁöµµ ¹ÌÈíÇÑ Á¡Àº ¼öÁ¤ Áß¿¡ ÀÖ´Ù.
- ºÎÆà À̹ÌÁö(boot.img)ÀÇ ±¸Á¶
- /boot/boot.b vmlinuz map message initrd.gz
boot.img - /dev/fd0 - /etc/lilo.conf - °¢ ÆÄÀÏÀÇ ¼³¸í
boot.b: ºÎÆ®·Î´õ
vmllnuz : ¸®´ª½º Ä¿³Î 2.4.24-1 »ç¿ë
map : map Á¤º¸(lilo¿¡ ÀÇÇØ »ý¼º)
message : ºÎÆýà Ãâ·ÂµÇ´Â ¸Þ¼¼Áö
initrd.gz : Ramdisk¿¡ Ç®¸± À̹ÌÁö
fd0 : Ç÷ÎÇÇ µð½ºÅ© µð¹ÙÀ̽º
lilo.conf : ¸®·Î°¡ »ç¿ëÇÏ´Â configÆÄÀÏ
¸ÕÀú boot.b¿Í mapÆÄÀÏÀº lilo¸¦ ¾÷µ¥ÀÌÆ® ÇÏ¸é »ý±â±â ¶§¹®¿¡ µû·Î ¸¸µé¾î ÁÙ ÇÊ¿ä´Â ¾ø°í, message ÆÄÀÏÀº #vi message·Î Ãâ·ÂµÇ´Â ³»¿ëÀ» ÆíÁýÇÒ ¼ö ÀÖ´Ù. vmlinuz´Â Ä¿³Î·Î 850-900KBÁ¤µµÀÇ ¿ë·® ÀÌÇÏ·Î ÄÄÆÄÀÏÀ» ÇØ¾ß ÇÑ´Ù. À̸¦ À§Çؼ± Ä¿³Î ÄÄÆÄÀÏÀ» ÇØ¾ß Çϴµ¥ Ä¿³Î ÄÄÆÄÀÏ ¹æ¹ýÀº Ä¿³Î ÄÄÆÄÀÏ ¹®¼¸¦ Âü°íÇϱ⠹ٶõ´Ù. fd0ÆÄÀÏÀº
# cp -a /dev/fd0 'target folder'
¸í·ÉÀ¸·Î ¿ø·¡ ¸®´ª½º¿¡¼ º¹»çÇÑ´Ù. lilo.conf´Â º°µµ·Î ÀÛ¼ºÇØ¾ß ÇÑ´Ù.
+ lilo.confÀÇ ³»¿ë
prompt
timeout=0 # ºÎÆýà ´ë±â ½Ã°£ default=ism # dafault label ¼¼Æà boot=/dev/fd0 map=/boot/map install=/boot/boot.b message=/boot/message lba32 image=/boot/vmlinuz # Ä¿³Î label=ism # label initrd=/boot/initrd.gz # ·¥µð½ºÅ© À̹ÌÁö read-only append="devfs=mount boot=cdrom" # Ä¿¸Çµå ¿É¼Ç(2°¡Áö´Â Çʼö) À̸¦ ¹Ì¸® Á¦ÀÛÇØ ³õÀº ÆÄÀÏÀÌ ÀÖÁö¸¸, ÇöÀç´Â ÆÄÀÏÀÇ ÃÖ±Ù ¹öÀüÀ» Á¦°øÇÏ°í ÀÖÁö ¾Ê´Â´Ù. ÇÊÀÚ´Â ÀÌ ÆÄÀÏÀ» Á¶¸¸°£ Á¦°øÇÒ ¿¹Á¤À̸ç, ÇÊ¿äÇÑ ºÐÀº °³ÀÎÀûÀ¸·Î ¿äûÇØ ÁÖ±æ ¹Ù¶õ´Ù. Âü°í·Î Ä¿³ÎÀº 2.4.24-1ÀÌ°í, ºÎÆ®·Î´õ´Â ¸®·Î¸¦ »ç¿ëÇÑ´Ù.
boot.img¶õ?
boot.img´Â ºÎÆà °úÁ¤À» ½ÇÇàÇϱâ À§Çؼ ÇʼöÀûÀÎ ÆÄÀÏÀÌ´Ù. ÀÌ ÆÄÀÏÀ» ÅëÇØ ºÎÆÃÀÌ ½ÃÀ۵ǰí, ½Ãµð¿¡ ÀÖ´Â ¸®´ª½º ½Ã½ºÅÛÀ» Àоî¿Ã ¼ö ÀÖ°Ô µÈ´Ù.
ÀÌÁ¦ boot.img´Â ³»¿ëÀ» ÆíÁýÇØ º¸ÀÚ. ³»¿ëÀ» º¸±â À§Çؼ± ´ÙÀ½°ú °°Àº °úÁ¤ÀÌ ÇÊ¿äÇÏ´Ù.
ÀÏ´Ü Àû´çÇÑ Æú´õ µÎ°³¸¦ ¸¸µç´Ù. ÇÑ °÷Àº boot.img°¡ Ç®¸± Æú´õÀÌ°í, ÇÑ °÷Àº initrd.gz°¡ Ç®¸± Æú´õÀÌ´Ù.
# mkdir livecd # cd livecd # mkdir -p init image # ÀÌ´Â ÀÓÀÇ·Î Á¤ÇÑ °ÍÀÓ # mount -o loop boot.img image # boot.img¸¦ imageÆú´õ¿¡ ¸¶¿îÆ®(·çÇÁ¹é µð¹ÙÀ̽º) # cp /livecd/image/boot/initrd.gz ¡®ÇöÀçÆú´õ¡¯ # boot.img³»¿¡¼ initrd.gz¸¦ °¡Á®¿Â´Ù. # gzip -d initrd.gz # initrd.gzÀÇ ¾ÐÃàÀ» Ǭ´Ù. initrd¶õ ÆÄÀÏÀÌ »ý±æ°ÍÀÌ´Ù. # mount -o loop initrd init # initrd¸¦ initÆú´õ¿¡ ¸¶¿îÆ®(·çÇÁ¹é µð¹ÙÀ̽º) ÀÌÁ¦ ÇÊ¿äÇÑ »çÇ×µéÀ» ÆíÁýÇØ¾ß ÇÑ´Ù. ´ëºÎºÐÀº ÇöÀç ¸¸µé¾î ³õÀº °ÍÀ» »ç¿ëÇÏ¸é µÈ´Ù. ÀÌ´Â ¶óÀÌºê ½Ãµð·Î À¯¸íÇÑ knoppix¸¦ Âü°íÇؼ ¼öÁ¤, ÀÛ¼º ÇÑ °ÍÀÌ´Ù. ÇÏÁö¸¸ init/etc/rc.dÀÇ rc.sysinitÀº ÇöÀç ¼³Ä¡µÈ ¹èÆ÷ÆÇ ¸®´ª½ºÀÇ rc.sysinitÀ» °¡Á®¿Í¼ »ç¿ëÇÏ´Â °ÍÀÌ ÁÁ´Ù. ±× ¿ÜÀÇ ³ª¸ÓÁö °ÍµéÀº °øÅëÀûÀÎ °ÍÀ¸·Î »ý°¢µÈ´Ù.
ÁÖÀÇ: rc.sysinitÁß¿¡ root filesystem üũ ºÎºÐÀº ºÒÇÊ¿äÇÑ ºÎºÐÀ̹ǷΠ¾ø¾Ø´Ù. ÀÌ´Â ¿¡·¯¸¦ ¼ö¹ÝÇÑ´Ù. »èÁ¦ ¹æ¹ýÀº viâ¿¡¼ ÇØ´ç ºÎºÐÀ» ã¾Æ »èÁ¦ÇÏ¸é µÈ´Ù.
´ÙÀ½À¸·Î´Â linuxrcÆÄÀÏÀ» ¼öÁ¤Çغ¸ÀÚ. ÀÌ ½ºÅ©¸³Æ®ÀÇ ³»¿ë Áß¿¡¼´Â ƯÈ÷ ÇÊ¿äÇÑ Æú´õ¸¦ »ý¼ºÇÏ°í ¸µÅ©¸¦ ¸¸µå´Â ºÎºÐÀÌ ¸¹±â ¶§¹®¿¡ ½Ã½ºÅÛ¿¡ ¸Â°Ô ¸µÅ© ¹× ÆÄÀÏ, Æú´õ µîÀ» »ý¼ºÇØÁÖ¾î¾ß ÇÑ´Ù. ÀÌ´Â init ÇÁ·Î¼¼¼¸¦ ½ÇÇàÇϱâ Àü±îÁö ½ÇÇàµÇ´Â °¡Àå Áß¿äÇÑ ÇÙ½É ºÎºÐÀ̱⠶§¹®¿¡, ÁÖÀǸ¦ ±â¿ï¿©¾ß ÇÑ´Ù.
+ linuxrc ³»¿ë
#!/static/sh : ½© Çؼ®±â À̸§
# < init > PATH=/bin:/sbin # PATH ¼³Á¤ # < define > : ·çÆ®, ¸ðµâ µð·ºÅ丮, ¸¶¿îÆ® ÇÒ ISM Æú´õ ¼³Á¤ looproot=/ISM/ISM moddir=/modules sysdir=/ISM # < ¸ðµâ ¼³Á¤ > SCSI_MODULES="aic7xxx.o aic7xxx_old.o BusLogic.o \ ncr53c8xx.o NCR53c406a.o \ initio.o \ advansys.o aha1740.o aha1542.o aha152x.o \ atp870u.o dtc.o eata.o fdomain.o gdth.o \ megaraid.o pas16.o pci2220i.o pci2000.o psi240i.o \ qlogicfas.o qlogicfc.o qlogicisp.o \ seagate.o t128.o tmscsim.o u14-34f.o ultrastor.o wd7000.o \ a100u2w.o 3w-xxxx.o" # < function > : ÀåÄ¡¸¦ °Ë»öÇؼ ¸¶¿îÆ®ÇÏ´Â ÇÔ¼ö, ¸ðµâÀ» ¿Ã¸®´Â ÇÔ¼ö, # ¸¶¿îÆ® ½ÇÆÐ ½Ã ½©À» ¶ç¿ì´Â ÇÔ¼ö ¼³Á¤ # BUILTIN_FS¶ó´Â º¯¼ö¿¡ µé¾î ÀÖ´Â °¢ ÆÄÀϽýºÅÛµéÀ» ÀûÀýÇÑ ¿É¼ÇÀ» ÁÖ¾î¼ ¸¶¿îÆ® # ¿¹> if pmount $i /cdrom "-o ro" >/dev/null 2>&1 # iso9660 À̶õ ÆÄÀϽýºÅÛÀ» »ç¿ëÇÏ¿© /cdrom ¿¡ Read Only·Î -o¿É¼ÇÀ» ÁÖ¾î¼ ¸¶¿îÆ® pmount() { BUILTIN_FS="iso9660 ext3 vfat ext2" for fs in $BUILTIN_FS; do test -b $1 && mount -t $fs $3 $1 $2 >/dev/null 2>&1 && return 0 done return 1 } # scsi ¸ðµâÀ» ã¾Æ¼ ¿Ã·ÁÁØ´Ù. loadmodules() { TYPE="$1"; shift for i in "$@"; do if test -f ${moddir}/scsi/$i && insmod -f ${moddir}/scsi/$i >/dev/null 2>&1 then case "$TYPE" in scsi|SCSI) FOUND_SCSI="yes"; ;; esac fi done } # debug ½Ã »ç¿ë. ¸ðµç °ÍÀÌ Á¦´ë·Î load ¾È µÇ¾úÀ» ½Ã °ð¹Ù·Î ½©·Î ¶³¾îÁö°Ô ÇÑ´Ù. startash() { echo "Dropping you to a (very limited) shell." echo "Press reset button to quit." PS1="# " export PS1 echo "6" > /proc/sys/kernel/printk # Allow signals : Çã¿ëµÇ´Â ÀÎÅÍ·´Æ® # (1 SIGHUP(Hangup), 2 SIGINT(Interrupt..Ctrl-C), 3 SIGQUIT(Quit..Ctrl-\..) 15 SIGTERM(terminatd..shutdown ½Ã) trap 1 2 3 15 exec /static/ash } # < Çã¿ëµÇÁö ¾Ê´Â ÀÎÅÍ·´Æ® > trap "" 1 2 3 15 # < Clean input/output > : ÄÜ¼Ö ÃʱâÈ exec >/dev/console </dev/console 2>&1 umask 022 # < Linux start > echo "ISM Linux Start..." # < Mount /proc > mount -t proc /proc /proc # < disable kernel messages while probing modules in autodetect mode > echo "0" > /proc/sys/kernel/printk # < Read boot command line > : Ä¿¸Çµå ¶óÀÎÀ» Àоî¿È CMDLINE="'''$('''cat /proc/cmdline''')'''" # < Use devfs ? > : /dev Æú´õ¿¡ ÀåÄ¡ »ý¼º devfs="" case "$CMDLINE" in *devfs=mount*) devfs="y"; ;; esac if test -z "${devfs}"; then mount -t devpts none /dev/pts fi # < Boot mode > : lilo.confÀÇ ºÎÆà ¸ðµå¸¦ Àоî¿Í¼ CDROMÀÎ °æ¿ì Read Only·Î ¼³Á¤ boot="" case "$CMDLINE" in *boot=cdrom*) boot="-o ro"; ;; esac # < Does the user want to skip scsi detection ? > : SCSIÀåºñ »ç¿ë ¿©ºÎ °Ë»ç NOSCSI="" case "$CMDLINE" in *noscsi*) NOSCSI="yes"; ;; esac # < load modules > °¢Á¾ ÇÊ¿äÇÑ ¸ðµâ ¿Ã·ÁÁÖ±â echo "Loading Modules..." # loop module insmod ${moddir}/loop.*o # cdrom modules insmod ${moddir}/cdrom.*o insmod ${moddir}/ide-cd.*o insmod ${moddir}/isofs.*o # native language support modules insmod ${moddir}/nls_cp437.*o #insmod ${moddir}/nls_cp932.*o insmod ${moddir}/nls_iso8859-1.*o # vfat modules insmod ${moddir}/fat.*o insmod ${moddir}/vfat.*o # ext3 modules insmod ${moddir}/jbd.*o insmod ${moddir}/ext3.*o # scsi modules insmod ${moddir}/scsi/scsi_mod.*o insmod ${moddir}/scsi/sr_mod.*o # usb storage insmod ${moddir}/usbcore.o > /dev/null 2>&1 # ½ºÄ«½Ã Àåºñ »ç¿ëÇÑ´Ù¸é ÇØ´ç ¸ðµâ ¿Ã¸®±â # < Check for SCSI, use modules on boot disc first > # these are the autoprobe-safe modules MODULES="$SCSI_MODULES" test -z "$NOSCSI" && test -n "$MODULES" && loadmodules SCSI $MODULES # End of SCSI check # < Check for ide-scsi supported CD-Roms et al > # ½ºÄ«½Ã Àåºñ »ç¿ëÇÒ ¼ö ÀÖ´ÂÁö ¿©ºÎ ÆǺ° test -f /proc/scsi/scsi && FOUND_SCSI="yes" # < mount device >^I # CD-ROM ¸¶¿îÆ® echo "Mounting ISM Linux CDROM..." # Now that the right SCSI driver is (hopefully) loaded, try to find CDROM # ½ºÄ«½Ã Àåºñ¸¦ »ç¿ëÇÏ±æ ¿øÇÑ´Ù¸é ±×¿¡ ¸Â´Â CD-RomÀ» ã¾Æ¼ mount ÇØÁÖ±â if test -n "${devfs}"; then loop0=/dev/loop/0 loop1=/dev/loop/1 cloop0=/dev/cloop/0 DEVICES="/dev/cdroms/cdrom? /dev/discs/disc?/part? /dev/discs/disc?" fi for i in $DEVICES do if pmount $i /sysroot "${boot}" >/dev/null 2>&1 then # for CD-ROM boot if test -f /sysroot${looproot} then FOUND_CD="$i" break fi umount /sysroot fi done # CD-ROM ¸¶¿îÆ® ÈÄ cloop ÀÌ¿ëÇÏ¿© ¾ÐÃà ÆÄÀϽýºÅÛ Ç®±â if test -n "$FOUND_CD" -a -f /sysroot${looproot} then # < mount real root as loop0 > insmod ${moddir}/zlib_inflate.*o > /dev/null 2>&1 insmod -f ${moddir}/cloop.*o file=/sysroot${looproot} > /dev/null 2>&1 pmount ${cloop0} ${sysdir} "-o ro" || FOUND_CD="" bloop="${cloop0}" if [ -z "${FOUND_CD}" ]; then losetup ${loop0} /sysroot${looproot} > /dev/null 2>&1 pmount ${loop0} ${sysdir} "-o ro" || startash FOUND_CD="${i}" bloop="${loop0}" fi # fstab°ú mtab ¼¼Æà cat > /etc/fstab << EOM ${FOUND_CD} /sysroot iso9660 ro 0 0 ${bloop} ${sysdir} ext2 ro 0 0 none /proc proc defaults 0 0 /dev/fd0 /mnt/floppy auto users,noauto,exec 0 0 EOM cat > /etc/mtab << EOM /dev/root / ext2 rw 0 0 ${FOUND_CD} /sysroot iso9660 ro 0 0 ${bloop} ${sysdir} ext2 ro 0 0 devfs /dev devfs rw 0 0 EOM else # ¸¶¿îÆ® ½ÇÆнà echo "Mount Failed!" startash fi # < copy library cache > ¶óÀ̺귯¸® ij½Ã º¹»ç cat ${sysdir}/etc/ld.so.cache > /etc/ld.so.cache echo # < enable kernel messages > echo "6" > /proc/sys/kernel/printk # < set paths > °æ·Î ¼³Á¤ PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:." export PATH # < clean up / > CD¸¦ mountÇϱâ À§ÇØ »ç¿ëÇß´ø modules/static Á¦°Å rm -rf ${moddir} /static # < memory infomation > share memory ¼¼Æà FOUNDMEM="'''$('''awk '/MemTotal/{print $2}' /proc/meminfo''')'''" TOTALMEM="'''$('''awk 'BEGIN{m=0};/MemFree|Cached/{m+=$2};END{print m}' /proc/meminfo''')'''" # < Calc RAM Size > »ç¿ë°¡´ÉÇÑ ·¥ »çÀÌÁî °è»ê # Minimum size of additional ram partitions MINSIZE=2000 # At least this much memory minus 30% should remain when home and var are full. MINLEFT=32000 # Maximum ramdisc size MAXSIZE="'''$('''expr $TOTALMEM - $MINLEFT''')'''" # Default ramdisc size for ramdisc RAMSIZE="'''$('''expr $TOTALMEM / 5''')'''" # < Create Ramdisc > Ramdisk¸¦ Å©±â¿¡ ¸Â°Ô ¼³Á¤ mkdir -p /ramdisc # Check for sufficient memory to mount extra ramdisc for /home + /var if test -n "$TOTALMEM" -a "$TOTALMEM" -gt "$MINLEFT"; then test -z "$RAMSIZE" && RAMSIZE=1000000 # tmpfs/varsize version, can use swap RAMSIZE='''$('''expr $RAMSIZE \* 4''')''' # We need /bin/mount here for the -o size= option /bin/mount -t tmpfs -o "size=${RAMSIZE}k" /dev/shm /ramdisc fi # ¸µÅ© ¹× ÆÄÀÏ, Æú´õ »ý¼º Á¦°Å ºÎºÐ mkdir -p /ramdisc/home /ramdisc/var mv /etc /ramdisc ln -s /ramdisc/home /ramdisc/var /ramdisc/var/tmp /ramdisc/etc / # Create common WRITABLE (empty) dirs # ÇÊ¿äÇÑ µð·ºÅ丮 »ý¼º mkdir -p /var/run /var/backups /var/cache/apache /var/local /var/lock/news \ /var/nis /var/preserve /var/state/misc /var/tmp /var/lib \ /var/spool/cups/tmp /mnt/floppy /mnt/cdrom \ /home/root /etc/X11 /etc/cups /myconfig cp -a /ISM/root / # Create empty utmp and wtmp ÆÄÀÏ »ý¼º ºÎÆýà ÇÊ¿ä :> /var/run/utmp :> /var/run/wtmp # CUPS wants writable files. ÀÐ°í ¾²±â°¡ °¡´ÉÇØ¾ß ÇÏ´Â Æú´õµéÀº ¹Ì¸® »ý¼º cp -a ${sysdir}/etc/cups/*.conf /etc/cups/ 2>/dev/null cp -a ${sysdir}/var/local ${sysdir}/var/log ${sysdir}/var/spool /var/ 2>/dev/null # Debian-apt ln -s ${sysdir}/etc/skel /etc/ 2>/dev/null # Create links from CDROM for UNWRITABLE (remaining) files # ºÎÆýà rw·Î µÇ¾î¾ß ÇÏ´Â ÆÄÀÏ »ý¼º ¹× ¸µÅ© ÀÛ¾÷ cp -aus ${sysdir}/var/* /var/ 2>/dev/null cp -aus ${sysdir}/etc/* /etc/ 2>/dev/null rm -rf /etc/X11/XF86Config* cp -a /ISM/etc/X11/XF86Config.'''in''' /etc/X11 cp -a /ISM/etc/X11/XF86Config-4.'''in''' /etc/X11 rm -rf /etc/sysconfig cp -a ${sysdir}/etc/sysconfig /etc/ 2>/dev/null rm -rf /etc/modules.conf /etc/sysconfig/hwconf rm -rf /etc/adjtime /etc/hosts cp -a /ISM/etc/adjtime /etc/ cp -a /ISM/etc/hosts /etc/ chmod 644 /etc/adjtime /etc/hosts /etc/X11/XF86Config* ln -s /dev/psaux /dev/mouse cp -a ${sysdir}/myconfig/* /myconfig/ 2>/dev/null # Make SURE that these are files, not links! rm -rf /etc/rc?.d ln -s /etc/rc.d/rc?.d /etc/ # < Now tell kernel where the real modprobe lives > echo "/sbin/modprobe" > /proc/sys/kernel/modprobe # < root¸¦ /dev/fd0¿¡¼ /dev/ramÀ¸·Î º¯°æ> echo "0x100" > /proc/sys/kernel/real-root-dev umount /proc # < init¿¡°Ô ½ÇÇàÀ» ³Ñ±è, Áï init ÇÁ·Î¼¼¼ ½ÇÇà > echo "Starting init process..." rm -f /linuxrc exit 0 ƯÈ÷ ÁÖÀÇÇØ¾ß ÇÒ ºÎºÐÀº /etc/sysconfig ºÎºÐ°ú /etc/X11/XF86Config, /etc/X11/XF86Config-4 ÆÄÀÏÀº rwÆÄÀÏÀ̾î¾ß ÇϹǷΠ¸µÅ©¸¦ °É¸é ¾È µÈ´Ù. ¶ÇÇÑ ÆùÆ®¿¡ °ü·ÃµÈ fonts.dir, fonts.scale, fonts.alias ÆÄÀÏ ¿ª½Ã rwÆÄÀÏÀ̾î¾ß ÇÑ´Ù. ÀÌ´Â ´ëºÎºÐ /usr/X11R6/lib/X11/fonts/ Æú´õ¿¡ ÀÖ´Ù. ÀÌ ºÎºÐÀº ´Ù¸¥ ÇϳªÀÇ Æú´õ¸¦ ¸¸µé¾î ¼³Á¤ ÆÄÀϵéÀº ¸ðµÎ ÇÑ °÷À¸·Î ¸ð¾Æ³õÀº ÈÄ ½ÇÁ¦ ÆÄÀÏÀÌ ÀÖ¾î¾ßÇÒ À§Ä¡¿£ ¸µÅ©¸¸ ³²°Ü³õ´Â ¹æ¹ýÀ¸·Î ¹®Á¦¸¦ ÇØ°áÇÏ¿´´Ù. Á» ´õ ÀÚ¼¼ÇÑ »ç½ÇÀº ¾Ë°í ½Í´Ù¸é boot.img ÆÄÀÏÀ» ºÐ¼®Çغ¸±â ¹Ù¶õ´Ù.
ÀÌ·¸°Ô ¼³Á¤ÀÌ ³¡³ª°Ô µÇ¸é ´ÙÀ½À¸·Î ÆÄÀϵéÀ» ´Ù½Ã Çϳª·Î ¹¾î¾ß ÇÑ´Ù. ¿ì¼± initÆú´õÀÇ ¸¶¿îÆ®¸¦ ÇØÁ¦ÇÑ´Ù.
# umount /livecd/init # dd if=initrd bs=1k | gzip -v9 > initrd.gz # initrdÆÄÀÏÀ» initrd.gz ¾ÐÃàÆÄÀÏ·Î ¸¸µç´Ù. # cp -a initrd.gz /livecd/image/boot/ # »õ·Î ¼öÁ¤ÇÑ initrd.gz¸¦ ÀúÀå # umount image # imageÆú´õ ¸¶¿îÆ® ÇØÁ¦ ÀÌÁ¦ ºÎÆà °¡´ÉÇÑ À̹ÌÁö°¡ »ý°å´Ù. boot.img°¡ ±×°ÍÀÌ´Ù. ÀÌ°ÍÀ» µð½ºÄÏ¿¡ ÀúÀåÇÏ¿© ºÎÆÃÀÌ Àß µÇ´ÂÁö È®ÀÎÇÑ´Ù. µð½ºÄÏ¿¡ ÀúÀåÇÏ´Â ¹æ¹ýÀº ´ÙÀ½°ú °°´Ù.
# dd if=boot.img of=/dev/fd0 bs=1k # µð½ºÄÏ¿¡ ÀúÀå # mount -o dev /dev/fd0 ¡®ÀÓÀÇÀÇ Æú´õ¡¯ # ¸®·Î¸¦ ¾÷µ¥ÀÌÆ®Çϱâ À§ÇØ µð½ºÄÏÀ» ¸¶¿îÆ® # lilo -r ¡®ÀÓÀÇÀÇ Æú´õ¡¯ # ¸®·Î¸¦ ¾÷µ¥ÀÌÆ®. add *ismÀ̶õ ¸Þ¼¼Áö¸¦ º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù. ¸¶¿îÆ®¸¦ ÇØÁ¦ÇÑ ÈÄ ºÎÆÃÀ» Çغ»´Ù. ºÎÆÃÀÌ Àß µÈ´Ù¸é ½©·Î µå·ÓÀÌ µÉ °ÍÀÌ´Ù.
´Ù½Ã µð½ºÄÏ¿¡¼ ºÎÆà À̹ÌÁö¸¦ ¾ò¾î¿Â´Ù.
# dd if=/dev/fd0 of=¡®º¹»çµÉ Æú´õ¡¯/boot.img bs=1k ÀÌ ¸í·É¾î¸¦ ¼öÇàÇϸé boot.img¶õ ÆÄÀÏÀ» ¾òÀ» ¼ö ÀÖÀ» °ÍÀÌ´Ù.
¸¶Áö¸·À¸·Î ¸®´ª½º ½Ã½ºÅÛ¿¡ cloop¿Í devfsd¸¦ ¼³Ä¡ÇÑ´Ù. ÀÌ´Â ÀÎÅͳݿ¡¼ cloop¿Í devfsd rpmÀ¸·Î Á¦°øÇÏ°í ÀÖ´Ù À̸¦ ´Ù¿î·Îµå ¹Þ¾Æ¼ ¼³Ä¡ÇÑ´Ù.
3.4. ³ª¸¸ÀÇ ¸®´ª½º À̹ÌÁö ÀÛ¼º ¶ÇÊÀÚ´Â ÁÖ·Î ÇÑÄÄ ¸®´ª½º¸¦ ÀÌ¿ëÇß´Ù. À̹ÌÁö ÀÛ¼º¹ýÀº °£´ÜÇÏ´Ù. ¼³Ä¡µÈ ¸®´ª½º·Î ºÎÆÃÀ» ÇÑ µÚ X windows¸¦ ½ÇÇàÇÑ´Ù. ±×¸®°í ¸Þ´º¿¡¼ ÇÁ·Î±×·¥ Ãß°¡ »èÁ¦¸¦ ÀÌ¿ëÇÏ¿©, Àڽſ¡°Ô ÇÊ¿ä ¾ø´Ù°í »ý°¢µÇ´Â °ÍµéÀº ÀÏÀÏÀÌ Áö¿î´Ù. ÀÌ °úÁ¤¿¡¼ core fileÀ̳ª ÇʼöÀûÀ¸·Î ÀÖ¾î¾ß µÇ´Â ÆÄÀÏÀº Áö¿ìÁö ¾Ê±æ ¹Ù¶õ´Ù.
¸¸ÀÏ Æú´õ¿¡ ¼³Ä¡Çß´Ù¸é, chroot ¸í·É¾î¸¦ »ç¿ëÇؼ ±× Æú´õ·Î ·çÆ®¸¦ ¹Ù²Ù¾î X¸¦ ¶ç¿öµµ µÈ´Ù. ´Ü ¹Ì¸® ¡®·çÆ®ÀÇ /devÆú´õ¡¯ÀÇ ³»¿ëÀ» ¡®¸®´ª½º ¼³Ä¡Æú´õ/dev¡¯ Æú´õ¿¡ º¹»çÇØ ³õ°í ½ÇÇàÇØ¾ß ÇÑ´Ù. À̸¦ ÇÏÁö ¾ÊÀ¸¸é X¸¦ ½ÇÇàÇÒ ¼ö ¾ø´Ù.
ex)
# cp -a /dev /¡®¸®´ª½º ¼³Ä¡µÈ Æú´õ¡¯/dev # chroot ¡®¸®´ª½º ¼³Ä¡µÈ Æú´õ¸í' ÀÌ·¸°Ô ¼³Á¤ÀÌ ³¡³ª¸é ÀÌÁ¦ ´ÙÀ½ ¸í·É¾î¸¦ »ç¿ëÇÏ¿© ÇöÀç ½Ã½ºÅÛÀ» ¾ÐÃàµÈ ½Ã½ºÅÛÀ¸·Î ¸¸µç´Ù. ¾Æ¸¶ 2G°¡ ³ÑÁö ¾ÊÀ¸¸é 700MB ¾ÈÂÊÀ¸·Î ISMÀ̶õ ÆÄÀÏÀÌ »ý¼º µÉ °ÍÀÌ´Ù.
# mkisofs -R -l -V "ISM iso9660 filesystem" -v /½Ãµð¿¡ ³ÖÀ» ¸®´ª½º Æú´õ | create_compressed_fs - 65536 > /ÆÄÀÏÀÌ »ý¼ºµÉ Æú´õ/ISM ÀÌ·¸°Ô ÇÏ¸é ¾ÐÃàµÈ ISMÀ̶õ ÆÄÀÏÀÌ »ý¼ºµÈ´Ù. ÀÌÁ¦ ±× ÆÄÀÏÀÌ µé¾îÀÖ´Â Æú´õ¿¡ Á» Àü¿¡ ¸¸µç boot.img ÆÄÀÏÀ» ³Ö°í, isoÆÄÀÏ·Î ¸¸µé¸é µÈ´Ù.
# mkisofs -l -r -J -V "ISM Linux" -v -b boot.img -c boot.cat /.isoÆÄÀÏÀÌ »ý¼ºµÉ Æú´õ/name.iso /ISMÆÄÀÏÀÌ ÀÖ´Â Æú´õ ÀÌÁ¦ name.isoÆÄÀÏÀÌ »ý°åÀ» °ÍÀÌ´Ù. À̸¦ CD¿¡ ±Á´Â´Ù¸é ¸ðµç ÀÏÀº ¸¶¹«¸® µÇ´Â °ÍÀÌ´Ù.
3.5. CD Writing ¹æ¹ý ¹× Tip ¶CD·Î ±Á´Â ¹æ¹ýÀº °£´ÜÇÏ´Ù. ´ÙÀ½°ú °°´Ù.
# cdrecord -v -dev=0,0,0 -speed=x name.iso ¸¸ÀÏ CD-RW¸¦ ÀÌ¿ëÇÑ´Ù¸é, formatÇÏ´Â ¹ýÀº ´ÙÀ½°ú °°´Ù.
# cdrecord -v -dev=0,0,0 -blank=fast CD°¡ ±¸¿öÁö¸é CD-ROMÀÌ Æ¢¾î ³ª¿À°Ô ¸¸µé±â À§Çؼ´Â -eject ¸í·ÉÀ» cdrecord ¸í·É¿¡ µ¡ºÙÀÌ¸é µÈ´Ù. ¸¶Áö¸·À¸·Î ºÎÆÃÇغ¸´Â Àϸ¸ ³²¾Ò´Ù. ¸¸µç ½Ãµð¸¦ ³Ö°í Å×½ºÆ® Çغ»´Ù.
4.1. ¹ß°ßµÈ ¹®Á¦Á¡µé ¶¶óÀÌºê ½Ãµð¸¦ ÀÛ¼ºÇÏ¸é¼ ¿¹±âÄ¡ ¸øÇÑ ¹®Á¦Á¡µéÀÌ ¸î °¡Áö ¹ß»ýÇÏ¿´´Ù. ´ëºÎºÐ ¼³Á¤ ÆÄÀÏ¿¡ °üÇÑ ¹®Á¦¿´À¸¸ç, ´ëÃæ ÇØ°áÀ» ÇÏ¿´À¸³ª ¾ÆÁ÷±îÁöµµ ¿Ïº®ÇÏ°Ô ÇØ°áÇß´Ù°í´Â Àå´ãÇÏÁö ¸øÇÑ´Ù.
5. ¸ÎÀ½¸» ¶ÂªÀº ±â°£µ¿¾È ¹®¼¸¦ ÁغñÇÏ´Ù º¸´Ï ºÎÁ·ÇÑ Á¡ÀÌ ¸¹´Ù°í »ý°¢µÈ´Ù. ÇÏÁö¸¸, LiveCD¿¡ °ü½ÉÀÌ ÀÖ´Â ºÐµé¿¡°Ô Á¶±ÝÀÌ¶óµµ µµ¿òÀ» ÁÖ±â À§ÇÑ »ý°¢À¸·Î ½ÃÀÛÇÑ ÀÏÀ̱⠶§¹®¿¡ ¹ÌÈíÇÏÁö¸¸ ¹®¼¸¦ Á¦°øÇϱâ·Î Çß´Ù. ¾ÕÀ¸·Îµµ ºÎÁ·ÇÑ ºÎºÐ°ú ÇÊÀÚ°¡ ºÐ¼®ÇÏ¿© »õ·Î ¹ß°ß µÈ »ç½ÇµéÀº ²ÙÁØÈ÷ ¾÷µ¥ÀÌÆ® ÇÒ ¿¹Á¤ÀÌ´Ï °ü½ÉÀ» °®°í ÁöÄѺÁÁÖ±æ ¹Ù¶õ´Ù. Áú¹®À̳ª ¹®Á¦Á¡ ¹ß°ß ½Ã eliteham@hanmail.netÀ¸·Î ¸ÞÀÏÀ» º¸³»Áֱ⠹ٶõ´Ù. ÃÖ´ëÇÑ µµ¿òÀ» µå¸®°í ½Í´Ù.
|
You will receive a legacy which will place you above want. |