Translate to EnglishÜbersetzen Sie zum Deutsch/GermanΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/NorwegianÖversätta till Svensk/Swedishहिन्दी अनुवाद करने के लिए/Hindi
Tradueix al català/CatalanTulkot uz latviešu/LatvianPreložiť do slovenčiny/SlovakVertaal aan het Nederlands/Dutchترجمة الى العربية/ArabicTraduzca al Español/SpanishTraduisez au Français/French
Traduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplified中文翻译/Chinese TraditionalПереклад на українську/Ukrainian
XSLT 2.0�XPath 2.0����(���������)��
������(�3��)���
RHCE�������������Linux����(��RH302) (����)
����������

GRUB2

GRUB2 GRUB2

/boot/grub/menu.lst GRUB2! - GRUB2

  • /etc/default/grub/etc/grub.d//boot/grub/grub.cfgGRUB2 GRUB2/boot/grub/menu.lst
  • /etc/grub.d/GRUB2 grub.cfg /boot/grub/grub.cfg
  • /boot/grub/grub.cfg/boot/grub/menu.lst

GRUB2/etc/default/grub/etc/grub.d//boot/grub/grub.cfg GRUB2GUI GRUB2GRUB2 /boot/grub.cfg/boot/grub/grub.cfg

/boot/grub GRUB2 /boot/grub GRUB2 v1.98

acpi.mod                     gcry_rijndael.mod   part_msdos.mod
affs.mod                     gcry_rmd160.mod     part_sun.mod
afs_be.mod                   gcry_seed.mod       parttool.lst
afs.mod                      gcry_serpent.mod    parttool.mod
aout.mod                     gcry_sha1.mod       password.mod
ata.mod                      gcry_sha256.mod     password_pbkdf2.mod
ata_pthru.mod                gcry_sha512.mod     pbkdf2.mod
at_keyboard.mod              gcry_tiger.mod      pci.mod
befs_be.mod                  gcry_twofish.mod    play.mod
befs.mod                     gcry_whirlpool.mod  png.mod
biosdisk.mod                 gettext.mod         probe.mod
bitmap.mod                   gfxmenu.mod         pxeboot.img
bitmap_scale.mod             gfxterm.mod         pxecmd.mod
blocklist.mod                gptsync.mod         pxe.mod
boot.img                     grubenv             raid5rec.mod
boot.mod                     gzio.mod            raid6rec.mod
bsd.mod                      halt.mod            raid.mod
bufio.mod                    handler.lst         read.mod
cat.mod                      handler.mod         reboot.mod
cdboot.img                   hashsum.mod         reiserfs.mod
chain.mod                    hdparm.mod          relocator.mod
charset.mod                  hello.mod           scsi.mod
cmp.mod                      help.mod            search_fs_file.mod
command.lst                  hexdump.mod         search_fs_uuid.mod
configfile.mod               hfs.mod             search_label.mod
core.img                     hfsplus.mod         search.mod
cpio.mod                     iso9660.mod         serial.mod
cpuid.mod                    jfs.mod             setjmp.mod
crc.mod                      jpeg.mod            setpci.mod
crypto.lst                   kernel.img          sfs.mod
crypto.mod                   keystatus.mod       sh.mod
datehook.mod                 linux16.mod         sleep.mod
date.mod                     linux.mod           tar.mod
datetime.mod                 lnxboot.img         terminal.lst
device.map                   loadenv.mod         terminal.mod
diskboot.img                 locale              terminfo.mod
dm_nv.mod                    loopback.mod        test.mod
drivemap.mod                 lsmmap.mod          tga.mod
echo.mod                     ls.mod              trig.mod
efiemu32.o                   lspci.mod           true.mod
efiemu64.o                   lvm.mod             udf.mod
efiemu.mod                   mdraid.mod          ufs1.mod
elf.mod                      memdisk.mod         ufs2.mod
example_functional_test.mod  memrw.mod           uhci.mod
ext2.mod                     minicmd.mod         usb_keyboard.mod
extcmd.mod                   minix.mod           usb.mod
fat.mod                      mmap.mod            usbms.mod
font.mod                     moddep.lst          usbtest.mod
fshelp.mod                   msdospart.mod       vbeinfo.mod
fs.lst                       multiboot2.mod      vbe.mod
functional_test.mod          multiboot.mod       vbetest.mod
gcry_arcfour.mod             normal.mod          vga.mod
gcry_blowfish.mod            ntfscomp.mod        vga_text.mod
gcry_camellia.mod            ntfs.mod            video_fb.mod
gcry_cast5.mod               ohci.mod            video.lst
gcry_crc.mod                 part_acorn.mod      video.mod
gcry_des.mod                 part_amiga.mod      videotest.mod
gcry_md4.mod                 part_apple.mod      xfs.mod
gcry_md5.mod                 part_gpt.mod        xnu.mod
gcry_rfc2268.mod             partmap.lst         xnu_uuid.mod


X64 Amiga (part_amiga.mod)(part_apple.mod) hello.mod /boot/grub/boot/grub GRUB2

colortestcolortest.c../common()../conf/common.mk


# For colortest.mod.
pkglib_MODULES += colortest.mod
colortest_mod_SOURCES = commands/colortest.c

clean-module-colortest.mod.1:
        rm -f colortest.mod mod-colortest.o mod-colortest.c pre-colortest.o colortest_mod-commands_colortest.o und-colortest.lst

CLEAN_MODULE_TARGETS += clean-module-colortest.mod.1

clean-module-colortest.mod-symbol.1:
        rm -f def-colortest.lst

CLEAN_MODULE_TARGETS += clean-module-colortest.mod-symbol.1
DEFSYMFILES += def-colortest.lst
mostlyclean-module-colortest.mod.1:
        rm -f colortest_mod-commands_colortest.d

MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-colortest.mod.1
UNDSYMFILES += und-colortest.lst

ifneq ($(TARGET_APPLE_CC),1)
colortest.mod: pre-colortest.o mod-colortest.o $(TARGET_OBJ2ELF)
        -rm -f $@
        $(TARGET_CC) $(colortest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-colortest.o mod-colortest.o
        if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
        $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
else
colortest.mod: pre-colortest.o mod-colortest.o $(TARGET_OBJ2ELF)
        -rm -f $@
        -rm -f $@.bin
        $(TARGET_CC) $(colortest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-colortest.o mod-colortest.o
        $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
        -rm -f $@.bin
endif

pre-colortest.o: $(colortest_mod_DEPENDENCIES) colortest_mod-commands_colortest.o
        -rm -f $@
        $(TARGET_CC) $(colortest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ colortest_mod-commands_colortest.o

mod-colortest.o: mod-colortest.c
        $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(colortest_mod_CFLAGS) -c -o $@ $<

mod-colortest.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
        sh $(srcdir)/genmodsrc.sh 'colortest' $< > $@ || (rm -f $@; exit 1)

ifneq ($(TARGET_APPLE_CC),1)
def-colortest.lst: pre-colortest.o
        $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 colortest/' > $@
else
def-colortest.lst: pre-colortest.o
        $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]'  | sed 's/^\([^ ]*\).*/\1 colortest/' > $@
endif

und-colortest.lst: pre-colortest.o
        echo 'colortest' > $@
        $(NM) -u -P -p $< | cut -f1 -d' ' >> $@

colortest_mod-commands_colortest.o: commands/colortest.c $(commands/colortest.c_DEPENDENCIES)
        $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(colortest_mod_CFLAGS) -MD -c -o $@ $<
-include colortest_mod-commands_colortest.d

clean-module-colortest_mod-commands_colortest-extra.1:
        rm -f cmd-colortest_mod-commands_colortest.lst fs-colortest_mod-commands_colortest.lst partmap-colortest_mod-commands_colortest.lst handler-colortest_mod-commands_colortest.lst parttool-colortest_mod-commands_colortest.lst video-colortest_mod-commands_colortest.lst terminal-colortest_mod-commands_colortest.lst
CLEAN_MODULE_TARGETS += clean-module-colortest_mod-commands_colortest-extra.1

COMMANDFILES += cmd-colortest_mod-commands_colortest.lst
FSFILES += fs-colortest_mod-commands_colortest.lst
PARTTOOLFILES += parttool-colortest_mod-commands_colortest.lst
PARTMAPFILES += partmap-colortest_mod-commands_colortest.lst
HANDLERFILES += handler-colortest_mod-commands_colortest.lst
TERMINALFILES += terminal-colortest_mod-commands_colortest.lst
VIDEOFILES += video-colortest_mod-commands_colortest.lst

cmd-colortest_mod-commands_colortest.lst: commands/colortest.c $(commands/colortest.c_DEPENDENCIES) gencmdlist.sh
        set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(colortest_mod_CFLAGS) -E $<         | sh $(srcdir)/gencmdlist.sh colortest > $@ || (rm -f $@; exit 1)

fs-colortest_mod-commands_colortest.lst: commands/colortest.c $(commands/colortest.c_DEPENDENCIES) genfslist.sh
        set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(colortest_mod_CFLAGS) -E $<         | sh $(srcdir)/genfslist.sh colortest > $@ || (rm -f $@; exit 1)

parttool-colortest_mod-commands_colortest.lst: commands/colortest.c $(commands/colortest.c_DEPENDENCIES) genparttoollist.sh
        set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(colortest_mod_CFLAGS) -E $<         | sh $(srcdir)/genparttoollist.sh colortest > $@ || (rm -f $@; exit 1)

partmap-colortest_mod-commands_colortest.lst: commands/colortest.c $(commands/colortest.c_DEPENDENCIES) genpartmaplist.sh
        set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(colortest_mod_CFLAGS) -E $<         | sh $(srcdir)/genpartmaplist.sh colortest > $@ || (rm -f $@; exit 1)
handler-colortest_mod-commands_colortest.lst: commands/colortest.c $(commands/colortest.c_DEPENDENCIES) genhandlerlist.sh
        set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(colortest_mod_CFLAGS) -E $<         | sh $(srcdir)/genhandlerlist.sh colortest > $@ || (rm -f $@; exit 1)

terminal-colortest_mod-commands_colortest.lst: commands/colortest.c $(commands/colortest.c_DEPENDENCIES) genterminallist.sh
        set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(colortest_mod_CFLAGS) -E $<         | sh $(srcdir)/genterminallist.sh colortest > $@ || (rm -f $@; exit 1)

video-colortest_mod-commands_colortest.lst: commands/colortest.c $(commands/colortest.c_DEPENDENCIES) genvideolist.sh
        set -e;           $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS)  $(TARGET_CFLAGS) $(colortest_mod_CFLAGS) -E $<         | sh $(srcdir)/genvideolist.sh colortest > $@ || (rm -f $@; exit 1)

colortest_mod_CFLAGS = $(COMMON_CFLAGS)
colortest_mod_LDFLAGS = $(COMMON_LDFLAGS)


colortest

GRUB2

root=(hd0,1)

timeout=10
default=0

if loadfont /grub/font/unicode.pf2
then
   set gfxmode="1024x768x32"
   set gfxpayload=keep
   insmod gfxterm
   insmod vbe
   terminal_output gfxterm
   terminal gfxterm
   insmod tga
   use_bg=true
   background_image /grub/image/f13rockets.tga
fi

set color_normal=yellow/black
set color_highlight=blue/yellow
set menu_color_normal=yellow/black
set menu_color_highlight=white/light-gray

menuentry "Fedora 13" {
   linux /vmlinuz-2.6.33.5-124.fc13.x86_64 ro root=/dev/mapper/vg_ultra-lv_root rd_LVM_LV=vg_ultra/lv_root rd_LVM_LV=vg_ultra/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
   initrd /initramfs-2.6.33.5-124.fc13.x86_64.img
}


color_normalcolor_highlight

root=(hd0,1)

timeout=10
default=0

set color_normal=yellow/black
set color_highlight=blue/yellow

if loadfont /grub/font/unicode.pf2
then
   set gfxmode="1024x768x32"
   set gfxpayload=keep
   insmod gfxterm
   insmod vbe
   terminal_output gfxterm
   terminal gfxterm
   insmod tga
   use_bg=true
   background_image /grub/image/f13rockets.tga
fi

set menu_color_normal=yellow/black
set menu_color_highlight=white/light-gray

menuentry "Fedora 13" {
   linux /vmlinuz-2.6.33.5-124.fc13.x86_64 ro root=/dev/mapper/vg_ultra-lv_root rd_LVM_LV=vg_ultra/lv_root rd_LVM_LV=vg_ultra/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
   initrd /initramfs-2.6.33.5-124.fc13.x86_64.img
}


autogen.sh genmk.rb configure.ac GRUB2 GRUB2

GRUB2 GNU/LinuxGRUB2 GRUB2 EFI

GRUB21