-->
6/Tutorial/slider

Edit grub di ubuntu 10.10, Windows jadi di atas

2 comments
Pada kesempatan kali ini saya akan memberikan sedikit tips mengenai grub. GRUB adalah singkatan dari Grand Unified Bootloader, umumnya GRUB telah dilengkapi dengan mode grafis bahkan gambar yang ingin ditampilkan bisa dipilih sendiri sehingga user dapat memilih sistem operasi yang diinginkan dengan tombol panah dan menekan [Enter].

Yang akan saya jelaskan saat ini khusus untuk pengguna dual boot yaitu windows dan linux. Umumnya setelah menginstal linux (ubuntu 10.10), maka otomatis akan tercipta sebuah file bernama grub.cfg. File ini berfungsi untuk menampilkan list OS yang ada pada suatu PC. Nah, defaultnya dalam list OS tersebut ubuntu 10.10 berada di paling atas dan windows di paling bawah. Trik yang satu ini akan mengubah posisi daftar OS di grub menjadi windows diatas dan linux dibawahnya.


Langsung saja :

> Login masuk ubuntu seperti biasa.

> Buka terminal lalu ketik "sudo gedit /boot/grub/grub.cfg" (tanpa tanda kutip).

> Maka akan tampil seperti teks editor.

> Cari bagian kira - kira seperti ini:

Grub



### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 00354084-9e8e-47ad-93f1-5a4a33e08c9c
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=00354084-9e8e-47ad-93f1-5a4a33e08c9c ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 00354084-9e8e-47ad-93f1-5a4a33e08c9c
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=00354084-9e8e-47ad-93f1-5a4a33e08c9c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 00354084-9e8e-47ad-93f1-5a4a33e08c9c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 00354084-9e8e-47ad-93f1-5a4a33e08c9c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 74c03af9c03ac0e2
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###



> Pindahkan bagian windowsnya ke atas "Ubuntu, with Linux 2.6.35-22-generic"

Yang dipindahkan:




### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 74c03af9c03ac0e2
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###



> Pindah menjadi seperti ini:

Hasil



### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 74c03af9c03ac0e2
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 00354084-9e8e-47ad-93f1-5a4a33e08c9c
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=00354084-9e8e-47ad-93f1-5a4a33e08c9c ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 00354084-9e8e-47ad-93f1-5a4a33e08c9c
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=00354084-9e8e-47ad-93f1-5a4a33e08c9c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 00354084-9e8e-47ad-93f1-5a4a33e08c9c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 00354084-9e8e-47ad-93f1-5a4a33e08c9c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###



> Save lalu reboot dan lihat perubahannya

> jika gagal coba buka terminal ketik "sudo update-grub"

Selesai...
author profile image
Abdelghafour

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

2 comments

  1. Bambang Hermawan (BaHe10)June 25, 2011 7:44 PM

    Selamat ris, blog anda jadi chart pertama pencarian "edit grub" di mbah Google!!!
    :bd

    ReplyDelete
  2. terima kasih bem.. tapi sayangnya ada yang copy artikel ini uy..

    ReplyDelete

An ENTJ Person. A software engineer, experienced in web development, especially in Java. The best graduate of engineering field of Bandung State Polytechnic. Self-motivated and adaptable person. Highly passionate about IT stuff. A fast learner, always curious and loves to learn something new. Has a strong logical and analytical thinking. [Faris Arifiansyah] (https://lh4.googleusercontent.com/9-OcR6PfTb9wECGLmzP0uzrFor9GiXdbMHRt_eXiIh9D_kdopGPGDogIuhWVlCaeBfGONpDMz54MuZHfm98s=w1920-h925)