Sebelum menuju ke tutorial untuk merubah setting grub ini, mungkin sobat masih bingung dengan yang dinamakan Bootloader. Jadi akan Ade jelaskan sedikit ya mengenai itu.
Boot Loader adalah suatu program yang sudah tertanam pada suatu sistem operasi untuk mem-boot atau memanggil sistem operasi yang ada pada hard disk dan media boot lainnya seperti flashdisk. Biasanya Boot Loader digunakan untuk memilih sistem operasi yang ada pada hard disk karena pada hard disk tersebut memiliki lebih dari 1 sistem operasi. Boot Loader ini, dimuat pada BIOS komputer, yang kemudian digunakan untuk memanggil kernel suatu sistem operasi.
Nah Bootloader yang selama ini kita tau adalah GRUB. Yang mana GRUB (GRand Unified Bootloader) itu sendiri adalah Boot Loader yang disediakan oleh GNU dan merupakan proyek dari GNU. GRUB banyak digunakan pada berbagai macam distro GNU/Linux. Karena GRUB banyak digunakan oleh berbagai macam distro GNU/Linux, maka perkembangan GRUB-pun menjadi pesat. Saat ini, terdapat versi ke-2 GRUB, yaitu GRUB2 yang sudah ada pada GNU/Linux Ubuntu 10.10. Lebih lengkap mengenai GRUB, klik
DISINI dan
DISINI.
Sekarang sobat sudah tau kan apa itu Bootloader maupun GRUB. Tetapi sobat sekalian harus berhati-hati saat akan men-setting GRUB ini, misal merubah urutannya dan lain sebagainya, kalau sampai salah teknik, bisa-bisa sobat tak bisa masuk ke system Booting-nya. Nah loh!!!
Tapi sobat sekalian ga perlu khawatir. Ade akan memberi tahukan bagaimana caranya merubah urutan dari bootloader ini, yaitu dengan cara merubah setting dari GRUB-nya. Apa jangan-jangan sobat masih belum tau Bootloader itu yang mana ya??? hmmm ini ada contoh gambar Bootloader yang saya ambil dari
teman sebelah.
Seperti itulah kira-kira contoh dari bootloader yang saya maksudkan. Pada gambar di atas kita bisa lihat bahwa urutan dari Windows yang ada pada komputer/laptop berada pada urutan paling bawah. nah pada tutorial ini kita akan merubahnya pada urutan paling atas. Bagaimana caranya?? sudah siap semua?? CEKIDOT!!!
Sebelumnya saya mohon maaf kalau scropt yang saya otak atik nanti tidak sama dengan contoh gambar di atas, tetapi intinya sama kok. Disini saya memakai script GRUB dari milik saya sendiri. Kebetulan saya memiliki Triple Boot, jadi ada 3 OS dalam laptop saya. langsung saja yaa..
1. Buka OS Linux yang kalian miliki. Entah itu Ubuntu atau sederajatnya, disini saya memakai Ubuntu 11.10.
2. Cobalah masuk pada Terminal dan ketikkan perintah
gedit /boot/grub/grub.cfg
Maka nanti akan muncul script kurang lebih seperti ini.
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
set gfxpayload=keep
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.38' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
linux /boot/vmlinuz-2.6.38 root=UUID=8862b486-f025-4866-a9b7-78a305347e34 ro text splash nomodeset vga=791
initrd /boot/initrd.img-2.6.38
}
menuentry 'Ubuntu, with Linux 2.6.38 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
echo 'Loading Linux 2.6.38 ...'
linux /boot/vmlinuz-2.6.38 root=UUID=8862b486-f025-4866-a9b7-78a305347e34 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set DE101B15101AF3ED
chainloader +1
}
menuentry "Ubuntu, with Linux 3.1.0-030100-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.1.0-030100-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.1.0-030100-generic
}
menuentry "Ubuntu, with Linux 3.1.0-030100-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.1.0-030100-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.1.0-030100-generic
}
menuentry "Ubuntu, with Linux 3.0.0-0300-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-0300-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-0300-generic
}
menuentry "Ubuntu, with Linux 3.0.0-0300-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-0300-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-0300-generic
}
menuentry "Ubuntu, with Linux 3.0.0-23-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-23-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-23-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-23-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-23-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-23-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-23-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-23-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-23-generic
}
menuentry "Ubuntu, with Linux 3.0.0-23-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-23-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-23-generic
}
menuentry "Ubuntu, with Linux 3.0.0-22-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-22-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-22-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-22-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-22-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-22-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-22-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-22-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-22-generic
}
menuentry "Ubuntu, with Linux 3.0.0-22-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-22-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-22-generic
}
menuentry "Ubuntu, with Linux 3.0.0-21-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-21-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-21-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-21-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-21-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-21-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-21-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-21-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-21-generic
}
menuentry "Ubuntu, with Linux 3.0.0-21-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-21-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-21-generic
}
menuentry "Ubuntu, with Linux 3.0.0-19-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-19-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-19-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-19-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-19-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-19-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-19-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-19-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-19-generic
}
menuentry "Ubuntu, with Linux 3.0.0-19-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-19-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-19-generic
}
menuentry "Ubuntu, with Linux 3.0.0-16-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-16-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-16-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-16-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-16-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-16-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-16-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry "Ubuntu, with Linux 3.0.0-16-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry "Ubuntu, with Linux 3.0.0-14-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-14-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-14-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-14-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-14-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-14-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-14-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-14-generic
}
menuentry "Ubuntu, with Linux 3.0.0-14-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-14-generic
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-12-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-12-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-12-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry "Ubuntu, with Linux 2.6.38-8-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry "Ubuntu, with Linux 2.6.38-8-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###
nah karena kita akan merubah urutan dari Bootloader yang semula Windows berada di Urutan paling bawah agar bisa menjadi urutan pertama.
3. Perhatikan tulisan pada Script di atas yang berwarna
ungu tersebut menunjukkan setting boot pada Windows kalian. Dan perhatikan script yang berwarna
hijau tersebut adalah urutan pertama pada tampilan Bootloader kalian. Untuk merubah urutan Windows menjadi yang pertama, blok script yang berwarna
ungu tersebut, lalu cut dan pastekan tepat diatas script yang berwarna
hijau tadi.
kalau sudah selesai kurang lebih nanti script yang diatas akan menjadi seperti ini
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
set gfxpayload=keep
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set DE101B15101AF3ED
chainloader +1
}
menuentry 'Ubuntu, with Linux 2.6.38' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
linux /boot/vmlinuz-2.6.38 root=UUID=8862b486-f025-4866-a9b7-78a305347e34 ro text splash nomodeset vga=791
initrd /boot/initrd.img-2.6.38
}
menuentry 'Ubuntu, with Linux 2.6.38 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
echo 'Loading Linux 2.6.38 ...'
linux /boot/vmlinuz-2.6.38 root=UUID=8862b486-f025-4866-a9b7-78a305347e34 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, with Linux 3.1.0-030100-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.1.0-030100-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.1.0-030100-generic
}
menuentry "Ubuntu, with Linux 3.1.0-030100-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.1.0-030100-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.1.0-030100-generic
}
menuentry "Ubuntu, with Linux 3.0.0-0300-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-0300-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-0300-generic
}
menuentry "Ubuntu, with Linux 3.0.0-0300-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-0300-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-0300-generic
}
menuentry "Ubuntu, with Linux 3.0.0-23-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-23-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-23-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-23-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-23-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-23-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-23-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-23-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-23-generic
}
menuentry "Ubuntu, with Linux 3.0.0-23-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-23-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-23-generic
}
menuentry "Ubuntu, with Linux 3.0.0-22-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-22-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-22-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-22-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-22-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-22-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-22-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-22-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-22-generic
}
menuentry "Ubuntu, with Linux 3.0.0-22-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-22-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-22-generic
}
menuentry "Ubuntu, with Linux 3.0.0-21-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-21-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-21-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-21-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-21-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-21-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-21-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-21-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-21-generic
}
menuentry "Ubuntu, with Linux 3.0.0-21-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-21-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-21-generic
}
menuentry "Ubuntu, with Linux 3.0.0-19-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-19-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-19-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-19-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-19-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-19-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-19-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-19-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-19-generic
}
menuentry "Ubuntu, with Linux 3.0.0-19-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-19-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-19-generic
}
menuentry "Ubuntu, with Linux 3.0.0-16-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-16-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-16-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-16-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-16-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-16-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-16-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry "Ubuntu, with Linux 3.0.0-16-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry "Ubuntu, with Linux 3.0.0-14-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-14-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-14-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-14-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-14-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-14-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-14-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-14-generic
}
menuentry "Ubuntu, with Linux 3.0.0-14-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-14-generic
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic-pae (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-12-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic-pae (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-12-generic-pae root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-12-generic-pae
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry "Ubuntu, with Linux 2.6.38-8-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry "Ubuntu, with Linux 2.6.38-8-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=5a74942c-0d61-4a3f-8cdb-b11c76f9b0d5 ro recovery nomodeset
initrd /boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###
Lalu bagaimana cara mengetahui Urutan Pertama dari bootloader sebelumnya, masih takut salah taroh nich..
oke3..
Kalau masih ragu, silahkan kalian coba rubah nama salah satu dari list yang ada di bootloader kalian. Contohnya seperti ini, saya ambil sample script yang berwarna hijau tadi. Saya akan merubah namanya.
menuentry 'Ubuntu, with Linux 2.6.38' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
linux /boot/vmlinuz-2.6.38 root=UUID=8862b486-f025-4866-a9b7-78a305347e34 ro text splash nomodeset vga=791
initrd /boot/initrd.img-2.6.38
}
Mari kita rubah tulisan yang berada diantara tanda (' '). Karena tulisan yang berwarna biru tersebut adalah milik dari Backtrack, maka saya akan mengganti namanya menjadi backtrack, dan kurang lebih akan menjadi seperti ini.
menuentry 'Backtrack' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 8862b486-f025-4866-a9b7-78a305347e34
linux /boot/vmlinuz-2.6.38 root=UUID=8862b486-f025-4866-a9b7-78a305347e34 ro text splash nomodeset vga=791
initrd /boot/initrd.img-2.6.38
}
Ingat ya kalau mau merubah namanya, rubahlah tulisan yang berada dalam tanda (' ') jangan yang selain itu.
kalau sudah, simpanlah. dan cobalah restart. dan WOALAaa, urutan pertama pada bootloader kalian akan berubah nama menjadi backtrack. Sekarang sudah tau kan dimana yang urutan pertamanya, kalau gitu udah ga perlu ragu lagi kan untuk merubah urutannya. Kalau sudah selesai merubah urutannya, silahkan simpan dulu, lalu restart. Okay???
Selamat mencoba. :P
CMIIW.