GRUB_DEFAULT=saved GRUB_TIMEOUT=none GRUB_DISTRIBUTOR="fedora" GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=False rd.luks=0 LANG=ja_JP.UTF-8 KEYTABLE=jp106" # 背景画像 GRUB_TERMINAL_OUTPUT=gfxterm GRUB_GFXMODE=640x480 GRUB_BACKGROUND=/usr/share/backgrounds/tiles/default_blue.jpg GRUB_FONT=/boot/grub2/unifont.pf2 # グラフィカルメニュー GRUB_THEME=/boot/grub2/themes/fedora/theme.txt |
#
GRUB gfxmenu theme "fedora" # Designed for 640x480 resolution title-text: "" title-font: "DejaVu Sans Bold 12" title-color: "salmon" message-font: "DejaVu Sans Bold 10" message-color: "white" message-bg-color: "black" desktop-image: "default_blue.png" terminal-box: "select_blue_*.png" + boot_menu { left = 50 width = 540 top = 100 height = 280 item_font = "DejaVu Sans Bold 18" selected_item_font = "DejaVu Sans Bold 18" item_color = "linen" selected_item_color = "orange" menu_pixmap_style = "menubox_*.png" selected_item_pixmap_style = "select_blue_*.png" icon_width = 32 icon_height = 32 item_height = 32 item_padding = 0 item_icon_space = 3 item_spacing = 10 max_items_shown = 7 } |
項目 |
fedora16 |
fedora15までのgrub2情報 |
設定ファイル |
/boot/grub2/grub.cfgファイル |
/boot/grub/grub.cfgファイル |
基本設定ファイル | /etc/default/grubファイル |
/usr/local/etc/default/grubファイル |
メニュー設定用ファイル |
/etc/grub.dフォルダ内に置く |
/usr/local/etc/grub.d フォルダ内に置く |
フォント作成 コマンド |
grub2-mkfont |
grub-mkfont |
grub.cfg作成 コマンド |
grub2-mkconfig | grub-mkconfig |
インストール コマンド |
grub2-install バージョン確認は grub2-install -v |
grub-install バージョン確認は grub-install -v |
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "Windows8" --class windows { insmod chain set root=(hd0,1) chainloader +1 } menuentry "reboot" --class redo { reboot } menuentry "halt" --class exit { halt } # 1台目のhddのパーティション1にWindowsがある場合はremappingは不要。 # この記述例ではWindows8 ブートローダー(bootmgr)が起動する。 menuentry "Windows 8" --class windows { insmod chain set root=(hd0,1) chainloader +1 } # 2台目のhddのパーティション1にWindowsがある場合はremappingをおこなう。 menuentry "Windows 8" --class windows { insmod chain set root=(hd1,1) drivemap -s hd0 hd1 chainloader +1 } # WindowsのMBRが設定されているデバイスの場合はパーティション番号は省略できる。remappingも不要。 menuentry "Windows 8" --class windows { insmod chain set root=(hd1) chainloader +1 } # メモリーテスト # memtest86+ のzipファイルをダウンロードして展開して memtest.bin を /boot/memtest86plus フォルダに置く。 menuentry "Memtest86+" --class memtest { insmod bsd linux16 /boot/memtest86plus/memtest.bin } |
if background_image /usr/share/backgrounds/tiles/default_blue.jpg ; then set color_normal=white/black set color_highlight=magenta/black else set menu_color_normal=cyan/blue set menu_color_highlight=white/blue fi |