· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
GRUB

DeleteMe HelpWanted ¹®¼­ÀÇ ¿À·ù¸¦ ÀâÀ¸¸é ÁÁ°Ú½À´Ï´Ù. --°ËÀºÇØ

ÀÛ¼ºÀÏ : 2004.02.10.

¹®¼­ÀÇ ¹üÀ§

  • À©µµ¿ì¿Í Gentoo¸¦ °¢±â ´Ù¸¥ HDD¿¡ ¼³Ä¡ÇÑ °æ¿ì¸¦ ¿¹·Î ¼³¸íÇÑ´Ù. (ÂüÁ¶. [http]GentooLinux ¼³Ä¡)
  • Linux¹èÆ÷ÆÇÀÇ Â÷ÀÌ ¹× °³ÀÎÀÌ »óȲ¿¡ µû¶ó ¼³Ä¡ ºÎºÐ°ú ¼³Á¤ºÎºÐÀÌ »óÀÌÇÒ ¼ö ÀÖ´Ù. ÀÌ·Î ÀÎÇØ ¹ß»ýÇÏ´Â ¸ðµç À߸øÀº ´Ù º»ÀÎÀÇ Å¿ÀÌ´Ù. ;) ºÎÆÃÀÌ ¾ÈµÉ °æ¿ì Àû´çÈ÷ ¾Ë¾Æ¼­ ó¸®Çϱ⠹ٶõ´Ù.
  • Grub4Dos USB Memory stick multiboot : USB ¸Þ¸ð¸® ½ºÆ½¿¡ GRUBÀ» ¼³Ä¡ÇØ ´Ù¾çÇÑ OS¸¦ ¼³Ä¡ÇÒ ¼ö Àִ ȯ°æ ¼³Á¤À» ¼³¸í.

GRUB ¼Ò°³

ºÎÆ®·Î´õ¶õ °£´ÜÈ÷ ¸»Çؼ­ ÄÄÇ»Å͸¦ Ä×À» ¶§ °¡Àå ¸ÕÀú ½ÇÇàµÇ´Â ÇÁ·Î±×·¥ÀÌ´Ù. ºÎÆ®·Î´õ´Â OSÀÇ Ä¿³ÎÀ» ·ÎµåÇÏ°í ¸î¸î Ä¿³Î ÆĶó¸ÞÅ͸¦ Ä¿³Î¿¡ ³Ñ°ÜÁÖ´Â ÀÏÀ» ÇÑ´Ù. GNU GRUBÀº ¿ø·¡ óÀ½¿¡´Â GNU Hurd¸¦ À§ÇØ °³¹ßµÇ¾úÁö¸¸ ±× ¸·°­ÇÑ ±â´É ¶§¹®¿¡ ¸®´ª½º¿¡¼­µµ Á¡Â÷ LILO ´ë½Å GRUBÀ» »ç¿ëÇÏ´Â »ç¶÷µéÀÌ ´Ã°í ÀÖ´Ù. GRUBÀº ÇöÀç ¸®´ª½º¸¦ ºñ·ÔÇÏ ¿© ¸¹Àº °ø°³ ¿î¿µÃ¼Á¦¿Í chain-loadingÀ» »ç¿ëÇÏ´Â »ó¿ë ¿î¿µÃ¼Á¦¸¦ ·ÎµåÇÒ ¼ö ÀÖ´Ù. GRUBÀÇ °¡Àå Å« Ư¡Àº ÆÄÀϽýºÅÛ°ú Ä¿³Î Æ÷¸ËÀ» ÀÌÇØÇÑ´Ù´Â Á¡ÀÌ´Ù. µû¶ó¼­ µð½ºÅ©»ó¿¡¼­ Ä¿³ÎÀÇ ¹°¸®ÀûÀÎ À§Ä¡¸¦ ¾Ë ÇÊ¿ä ¾øÀÌ ´ÜÁö ÆÄÀϸí°ú Ä¿³ÎÀÌ À§Ä¡ÇÏ°í ÀÖ´Â ÆÄƼ ¼Ç¸¸ ¾Ë°í ÀÖÀ¸¸é Ä¿³ÎÀ» ·ÎµåÇÒ ¼ö ÀÖ´Ù. LILOÀÇ °æ¿ì ºÎÆ®·Î´õ°¡ Ä¿³ÎÀÇ Çϵåµð½ºÅ©»óÀÇ ¹°¸®ÀûÀÎ À§Ä¡¸¦ ¾Ë°í ÀÖ¾î¾ß ÇÑ´Ù. µû¶ó¼­ Ä¿³ÎÀ» ´Ù½Ã ¼³Ä¡ÇÒ °æ¿ì lilo¸¦ ½ÇÇàÇØ ºÎÆ®·Î´õ¸¦ ´Ù½Ã ½É¾î ÁÖ¾î¾ß ÇÏÁö¸¸, GRUBÀÇ °æ¿ì ÆÄÀÏ¸í¸¸ ¾Ë¸é µÇ±â ¶§¹®¿¡ ÆÄÀϸíÀÌ ¹Ù²îÁö ¾Ê´Â ÇÑ ´Ù½Ã ½ÇÇàÇØ ÁÙ ÇÊ¿ä°¡ ¾ø´Ù.

GRUB°¡ Á¦°øÇÏ´Â ±â´É


  • a.out Æ÷¸Ë°ú ELF Æ÷¸ËÀÇ Ä¿³ÎÀ» ÀоîµéÀÏ ¼ö ÀÖ´Ù.

  • Linux, FreeBSD, NetBSD, OpenBSDµî ºñ-¸ÖƼºÎÆ® Ä¿³ÎÀ» Áö¿øÇÑ´Ù.

  • ¸ÖƼÇà ¸ðµâÀ» ·ÎµåÇÒ ¼ö ÀÖ´Ù.

  • ÅؽºÆ® Çü½ÄÀÇ ¼³Á¤ ÆÄÀÏÀ» Á¦°øÇÑ´Ù.

  • ¸Þ´º ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÑ´Ù.

  • À¯¿¬ÇÑ Ä¿¸Çµå¶óÀÎ ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÑ´Ù.

  • BSD FFS, FAT16, FAT32, Minix, ext2 ±×¸®°í ReiserFS ÆÄÀϽýºÅÛÀ» Áö¿øÇÑ´Ù.

  • gzipÀ¸·Î ¾ÐÃàµÈ ÆÄÀÏÀ» ´Ù·ê ¼ö ÀÖ´Ù.

  • BIOS, uEFI¿¡¼­ ÀνĵǴ ¸ðµç ÀåÄ¡¿¡ ¿¢¼¼½ºÇÒ ¼ö ÀÖ´Ù.


GRUB½Ä ÆÄƼ¼Ç Ç¥Çö ¹× ¼³Ä¡

Partition       Description     GRUB½ÄÇ¥Çö
/dev/hda        Windows(FAT32, NTFS)   (hd0,0)
/dev/hda1       Boot partition(/boot)   (hd0,1)
/dev/hda2       Swap partition(swap)    (hd0,2)
/dev/hda3       Root Partition(/)       (hd0,3)

<!> /!\ DeleteMe À§ Ç¥´Â À߸øµÇ¾ú½À´Ï´Ù. º» ¹®¼­´Â ÀüüÀûÀ¸·Î ¼öÁ¤µÇ¾î¾ß ÇÕ´Ï´Ù. --°ËÀºÇØ
Partition       GRUB½ÄÇ¥Çö
/dev/hda        (hd0)
/dev/hda1       (hd0,0)
/dev/hda2       (hd0,1)
/dev/hda3       (hd0,2)
/dev/hdb5       (hd1,4)

<!> IDE, SATA, SCSI ÇÒ °Í ¾øÀÌ ¹«Á¶°Ç hdxÀÌ´Ù. /dev/sda1À̶ó°í Çؼ­ sd0ÀÌ µÇ´Â °ÍÀÌ ¾Æ´Ô¿¡ À¯ÀÇÇØ¾ß ÇÑ´Ù.

¼Ò½º ÄÄÆÄÀÏ

 #!vim nosyntax
 # tar vxzf grub-0.94.tar.gz
 # cd grub-0.94
 grub-0.94# make; make install
 grub-0.94# grub-install /dev/hda


Á¨Åõ ¸®´ª½º

 # emerge grub
 # grub
 grub> root (hd1,0)
 grub> setup (hd0)
 grub> quit

Debian GNU/Linux

 # apt-get install grub
 # grub-install /dev/hdxx

GRUB ¸Þ´º¼³Á¤


  • ¼³Á¤ÆÄÀÏ grub.conf´Â /boot/grub/grub.conf¿¡ À§Ä¡ ÇÑ´Ù.
 default=0
 timeout=30
 30ÃÊ µ¿¾È ÀÔ·ÂÀÌ ¾øÀ¸¸é ù ¹ø° ¹æ¹ý, Áï ÆÄÀÏ¿¡¼­ ¸Ç ¾Õ ÂÊ¿¡ ±â¼úµÇ´Â ¹æ¹ýÀ¸·Î ºÎÆÃÇÑ´Ù´Â ÀǹÌÀÔ´Ï´Ù.

 splashimage=(hd0,1)/grub/splash.xpm.gz
 GRUBÀÇ ºÎÆà À̹ÌÁö ÆÄÀÏ À§Ä¡ ÁöÁ¤

 title Gentoo
 ¸» ±×´ë·Î Á¦¸ñÀ» ³ªÅ¸³½´Ù

 root (hd0,1)
 ¸®´ª½º Ä¿³ÎÀÌ À§Ä¡ÇÏ°í ÀÖ´Â ÆÄƼ¼±À¸·Î /boot ÆÄƼ¼±ÀÇ À§Ä¡¸¦ ³ªÅ¸³½´Ù. /dev/hda1¿¡ /boot¸¦ ¼³Ä¡ÇÏ¿´À¸¹Ç·Î, root (hd0,1)ÀÌ´Ù.

 kernel /bzImage-2.6.7  root=/dev/hda4
 root=/dev/hda4Àº / ÆÄƼ¼±À» ÁöÁ¤ÇÑ ÆÄƼ¼± ³Ñ¹ö¸¦ ÁöÁ¤

 title Window
 ¸¶Âù°¡Áö·Î À©µµ¿ì ŸÀÌƲ Á¦¸ñ...

 rootnoverify (hd0,0)
 rootnoverity´Â root¿Í °ÅÀÇ °°Áö¸¸ ¸¶¿îÆ®¸¦ ÇÏÁö ¾Ê´Â´Ù. FAT32³ª NTFS ÆÄƼ¼±Ã³·³ ÀνÄÇÏÁö ¸øÇÏ´Â ÆÄƼ¼±ÀÇ °æ¿ì ÀÌ ¿É¼ÇÀ¸·Î Áö
Á¤ÇÑ´Ù.

 makeactive
 GRUBÀÇ ·çÆ® µð¹ÙÀ̽º¸¦ ºÎÆà °¡´ÉÇÑ ÆÄƼ¼±À¸·Î ÁöÁ¤ÇÕ´Ï´Ù. ÀÌ ¸í·É¾î´Â ù ¹ø° Çϵåµð½ºÅ©ÀÇ Primary ÆÄƼ¼±¿¡¼­¸¸ »ç¿ë °¡´ÉÇÏ
´Ù.

 chainloader +1
 makeactive ¸í·ÉÀ¸·Î ºÎÆà °¡´ÉÇϵµ·Ï ÁöÁ¤µÈ ÆÄƼ¼±ÀÇ Ã¹ ¹ø° ¼½ÅͺÎÅÍ ÀÐ¾î ºÎÆà Çϵµ·Ï ÇÑ´Ù.

  • /boot/grub/grub.conf ÆÄÀÏÀ» ¼³Á¤¿¡ ¸Â°Ô ¼öÁ¤Çß´Ù¸é ÀçºÎÆÃÇÏ¿© GRUB ¸Þ´º°¡ ³ª¿À´ÂÁö È®ÀÎÇÑ´Ù.

Menu Interface

GRUBÀÇ ¸Þ´º ¼±Åà ȭ¸é¿¡¼­ È­»ìÇ¥¸¦ ÀÌ¿ëÇϸé, ¸Þ´º¸¦ ¼±ÅÃÇÒ ¼ö ÀÖÀ¸¸ç, ÇØ´çµÇ´Â ¸Þ´º¿¡¼­ 'e '¸¦ ´©¸£¸é, °¢ ¸Þ´º¿¡ ´ëÇÑ ¼³Á¤µé À» Á÷Á¢ ¸Þ´º¿¡¼­ ¼öÁ¤ÇÒ ¼ö ÀÖ´Ù.

e ÆíÁý ¸ðµå

o ÁÙ Ãß°¡

d ÁÙ »èÁ¦

b ÆíÁýÀÌ ³¡³­ ÈÄ, ¼öÁ¤µÈ ³»¿ëÀ» °¡Áö°í ºÎÆÃ

c grub Ä¿¸Çµå ¶óÀÎ

º¸¾È ¼³Á¤


ÁÖÀÇ »çÇ×


  • (hd0,0)ÇÒ °æ¿ì ÄÞ¸¶(,)»çÀÌ¿¡ ºóÄ­ÀÌ ¾ø¾î¾ß ÇÑ´Ù. (TABÀ» ÀÌ¿ëÇÑ ÀÚµ¿ ¿Ï¼º±â´É Ãßõ)

  • »ó´ë°æ·Î¿Í Àý´ë °æ·Î

  • splash´Â Ä¿³Î ÆÐÄ¡°¡ ÇÊ¿äÇÏ´Ù´øµ¥...Docbook Sgml/Bootsplash-HOWTO


ID
Password
Join
Troglodytism does not necessarily imply a low cultural level.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2013-02-27 09:54:27
Processing time 0.0071 sec