Thursday, February 24, 2011

Mengubah Grub Loader Ubuntu 10.10 Maverick

  No comments
ini langkah pertama gw di OS Open Source. Langkah Menuju kemanusiaan.


untuk pengguna dual OS. tentu akan ada dua booting dari operating system.
nah bagaimna mengubah default dari operating sistem,
nah disini gw memakai OS windows 7 dan Ubuntu 10.10 Maverick.

langkah-langkahnya seperti ini :
buka terminal pada ubuntu : Application - Accessories - Terminal
pada terminal ketik perintah

$ sudo gedit /boot/grub/grub.cfg

nnt akan tampil daftar dari OS yang ada. tinggal pindahkan Loader Windows 7 keatas loader Ubuntu

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set c4ac4dc7ac4db4a8
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 5d79abaa-84de-4323-966b-329de3448c18
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=5d79abaa-84de-4323-966b-329de3448c18 ro quiet splash
initrd /boot/initrd.img-2.6.35-25-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 5d79abaa-84de-4323-966b-329de3448c18
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=5d79abaa-84de-4323-966b-329de3448c18 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-25-generic
}
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='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 5d79abaa-84de-4323-966b-329de3448c18
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=5d79abaa-84de-4323-966b-329de3448c18 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='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 5d79abaa-84de-4323-966b-329de3448c18
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=5d79abaa-84de-4323-966b-329de3448c18 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

lalu rubah timing untuk grub tersebut
cari bagian dibawah ini lalu set timeout = 10 ubah menjadi set timeout = 5, nnt waktu loader kan menjadi 5 detik
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

oke selamat mencoba

No comments :

Post a Comment