[ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
chafidri
Posts: 46
Joined: 12 Feb 2010, 16:33
Location: magelang,indonesia

[ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby chafidri » 02 Mar 2010, 19:52

:eek: Mau Tanya nih, gimana cara ngubah urutan grub default, supaya urutan Grub W*****s 7 ane bisa di paling atas sendiri alias defaultnya w*******s 7, mohon pencerahannya. terima kasih
User avatar
M3L3R
Posts: 1335
Joined: 18 Jan 2010, 22:40
Location: Jogja
Contact:

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby M3L3R » 02 Mar 2010, 20:03

pertama, kasih permission dulu !!

sudo chmod -R a+rw /boot/grub/grub.cfg

bis itu buka file grub.cfg nya :

sudo gedit /boot/grub/grub.cfg

nah, untuk mengubah defaultnya, tinggal edit aja set defaultnya dari 0 menjadi 4 ...

untuk mengubah urutannya, saya sich tinggal pindahhin aja menu entry windowsnya jadi diatas menu entry ubuntu ... hoho

solusi lain : bisa menggunakan startup manager ...
User avatar
chafidri
Posts: 46
Joined: 12 Feb 2010, 16:33
Location: magelang,indonesia

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby chafidri » 02 Mar 2010, 20:12

thanks brow.
User avatar
Sudoers
Site Admin
Posts: 1
Joined: 03 Nov 2009, 17:43

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby Sudoers » 02 Mar 2010, 20:26

ta coba bantu tapi pake cara ektrem ya..

backup file grub.cfg
cp /boot/grub/grub.cfg /boot/grub/grub-old.cfg

abis itu edit file grub.cfg
Pindahin blok
menuentry "windows" {
....
}

ke bawah baris dibawah ini
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###


Save keluar terus jalanin perintah grub-install /dev/sdX dimana X posisi harddisk kamu. Pake perintah fdisk -l klo ngak tau posisi harddisknya.

Semoga membantu..
User avatar
chafidri
Posts: 46
Joined: 12 Feb 2010, 16:33
Location: magelang,indonesia

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby chafidri » 02 Mar 2010, 21:46

cara non ektrem ada gak brow.
User avatar
M3L3R
Posts: 1335
Joined: 18 Jan 2010, 22:40
Location: Jogja
Contact:

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby M3L3R » 02 Mar 2010, 21:48

pake startup manager !!!
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby offline » 02 Mar 2010, 21:58

chafidri wrote: :eek: Mau Tanya nih, gimana cara ngubah urutan grub default, supaya urutan Grub W*****s 7 ane bisa di paling atas sendiri alias defaultnya w*******s 7, mohon pencerahannya. terima kasih

ada nih Bro, ane baru dapet nih cara yang simpel karena pakek GUI.
k-lik add/remove software kalo di Jaunty atau UBuntu Software Center.
-terus search choose next default for grub, lalu install deh.
-settingnya mudah keknya karena pakek GUI Bro
selamat mencoba :D
User avatar
chafidri
Posts: 46
Joined: 12 Feb 2010, 16:33
Location: magelang,indonesia

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby chafidri » 03 Mar 2010, 14:13

wah thanks buat tipsnya, ni baru nyoba pasang pkai ubuntu software centre. sekali lagi thanks buat brow yogieza.
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby offline » 03 Mar 2010, 14:44

chafidri wrote:wah thanks buat tipsnya, ni baru nyoba pasang pkai ubuntu software centre. sekali lagi thanks buat brow yogieza.

udah solved belum Bro??itu yg buat saya penasaran :D
jangan lupa tulis SOLVED lho
User avatar
chafidri
Posts: 46
Joined: 12 Feb 2010, 16:33
Location: magelang,indonesia

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby chafidri » 03 Mar 2010, 15:38

PROblem solved, Thanks buat broew yogieza.
User avatar
Sudoers
Site Admin
Posts: 1
Joined: 03 Nov 2009, 17:43

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby Sudoers » 03 Mar 2010, 16:14

Teknik yang digunakan akhirnya mana neh bro?
sebelum topik di kunci neh..

Ato jgn2 pake teknik baru selain yg diatas..?
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby offline » 03 Mar 2010, 19:27

chafidri wrote:PROblem solved, Thanks buat broew yogieza.

sama-sama Bro :D
User avatar
masanjar
Posts: 1034
Joined: 08 Jan 2010, 19:51
Location: Negeri Beriman
Contact:

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby masanjar » 03 Mar 2010, 21:04

baca-baca dulu akh sebelum mencoba biar paham
User avatar
aje_jawa
Posts: 3
Joined: 17 Mar 2010, 23:09
Location: Kota Reyog
Contact:

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby aje_jawa » 18 Mar 2010, 11:45

M3L3R wrote:pertama, kasih permission dulu !!

sudo chmod -R a+rw /boot/grub/grub.cfg

bis itu buka file grub.cfg nya :

sudo gedit /boot/grub/grub.cfg

nah, untuk mengubah defaultnya, tinggal edit aja set defaultnya dari 0 menjadi 4 ...

untuk mengubah urutannya, saya sich tinggal pindahhin aja menu entry windowsnya jadi diatas menu entry ubuntu ... hoho

solusi lain : bisa menggunakan startup manager ...



Aq dah pake cara di atas, trus aq tambahkan ### pada beberapa "menuentry" yang ingin aq sembunyikan pada proses boot, tapi kenyataannya muncul tulisan :

"syntac error"
"infalid command"
"..................."

meski pada akhirnya grub ttp berjalan seperti yang aq harapkan (beberapa "menuentry" tidak terlihat) TAPI munculnya "syntac error" terasa ganggu gitu.

Ada kah yang tahu solusinya????
User avatar
Sudoers
Site Admin
Posts: 1
Joined: 03 Nov 2009, 17:43

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby Sudoers » 18 Mar 2010, 12:13

@aje_jawa: paste disini file grub.cfg
keknya kebanyakan ngasi komen deh..
User avatar
aje_jawa
Posts: 3
Joined: 17 Mar 2010, 23:09
Location: Kota Reyog
Contact:

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby aje_jawa » 25 Mar 2010, 18:19

Sudoers wrote:@aje_jawa: paste disini file grub.cfg
keknya kebanyakan ngasi komen deh..


Sori gan, balesnya kelamaan, katanya sih lg ada masalah ama servernya. Ok, ini isi file grub.cfg

#
# 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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd1,8)
search --no-floppy --fs-uuid --set 76c2ed25-1469-44a8-a86d-887bb9a441f3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
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
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-20-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,8)
search --no-floppy --fs-uuid --set 76c2ed25-1469-44a8-a86d-887bb9a441f3
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=76c2ed25-1469-44a8-a86d-887bb9a441f3 ro splash quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,8)
search --no-floppy --fs-uuid --set 76c2ed25-1469-44a8-a86d-887bb9a441f3
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=76c2ed25-1469-44a8-a86d-887bb9a441f3 ro single splash
initrd /boot/initrd.img-2.6.31-20-generic
}
### menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,8)
search --no-floppy --fs-uuid --set 76c2ed25-1469-44a8-a86d-887bb9a441f3
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=76c2ed25-1469-44a8-a86d-887bb9a441f3 ro splash quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
### menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,8)
search --no-floppy --fs-uuid --set 76c2ed25-1469-44a8-a86d-887bb9a441f3
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=76c2ed25-1469-44a8-a86d-887bb9a441f3 ro single splash
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
### menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "7 Kurcaci (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 38547b13547ad35c
chainloader +1
}
### 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 ###
User avatar
M3L3R
Posts: 1335
Joined: 18 Jan 2010, 22:40
Location: Jogja
Contact:

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby M3L3R » 25 Mar 2010, 18:27

hihihi, klo ane sich gag perlu pake tanda # bro, mending sbelum mengedit, backup dulu file grub.cfg nya ... biz itu hapus menu entry yg km ingin hilangin ... hohoho

klo pengin download tutorialnya, silahkan kemari :

http://ubuntu-indonesia.com/forums/ubbt ... pics/7763/
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby offline » 25 Mar 2010, 18:37

kalo mau rubah settingan wajib buat backupnya, kecuali kalo sudah hapal :D
User avatar
Sudoers
Site Admin
Posts: 1
Joined: 03 Nov 2009, 17:43

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby Sudoers » 25 Mar 2010, 19:53

Ini yang masalah bro..

### menuentry "Ubuntu, Linux 2.6.31-14-generic" {
### menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
### menuentry "Memory test (memtest86+)" {

Mestinya ### itu ngeblok sampe tutup kurung kurawal } blok yang sama. Moso yg ditutup satu baris saja padahal itu khan satu blok klo bahasa pemrogramannya satu function. Hehehee..

Makanya syntax error yang benar kek begini neh dibawah.
#menuentry "Ubuntu, Linux 2.6.31-14-generic" {
#recordfail=1
#if [ -n ${have_grubenv} ]; then save_env recordfail; fi
#set quiet=1
#insmod ext2
#set root=(hd1,8)
#search --no-floppy --fs-uuid --set 76c2ed25-1469-44a8-a86d-887bb9a441f3
#Linux /boot/vmlinuz-2.6.31-14-generic #root=UUID=76c2ed25-1469-44a8-a86d-887bb9a441f3 ro splash quiet #splash
#initrd /boot/initrd.img-2.6.31-14-generic
#}

klo mo pindahin urutan pilihan saat boot, misalnya kita ambil contoh grub.cfg bro aje:

Tinggal mindahin baris dibawah ini
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "7 Kurcaci (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 38547b13547ad35c
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

diatas baris ini ### BEGIN /etc/grub.d/10_linux ###

Abis itu restart terus install deh grub dgn perintah apa anak2..??
User avatar
zarkasichan
Posts: 1527
Joined: 01 Jan 2010, 01:57
Location: Samarinda, Indonesia
Contact:

Re: [ASK] Cara Ubah Urutan Grub Default DI UBUNTU 9.10

Postby zarkasichan » 26 Mar 2010, 23:16

kalau gitu cara yang paling aman berdasarkan kesimpulan dari bro-bro diatas ya gunakan saja "startupmanager", ga ribet dan nyusahin kan... :grin:
atau cara kedua tinggal edit :
sudo gedit /boot/grub/grub.cfg

ya ga bro?? ambil gampangnya saja...

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: No registered users and 2 guests