กำหนดให้ GRUB โหลด Windows เป็น default

ปกติแล้วเมื่อติดตั้งวินโดวส์คู่กับ Ubuntu จะมีเมนูให้เราเลือกว่าจะเปิด Windows หรือ Ubuntu ตอนที่ระบบเริ่มต้น ที่เรียกว่า GRUB ซึ่งค่า default ของ GRUB จะเป็น Ubuntu แต่โดยปกติแล้ว เรามักจะใช้ Windows กันมากกว่า ทำให้เราต้องมาคอยเฝ้าเครื่องตอนเริ่มต้นระบบเพื่อให้ทำการโหลดไปที่ Windows

เราสามารถเปลี่ยนให้ GRUB มาโหลด Windows เป็น default ได้ครับ

เปิด /boot/grub/menu.lst ด้วย gEdit บน Ubuntu ครับให้สำรวจข้อความประมาณนี้

## ## End Default Options ##

title        Ubuntu 8.10, kernel 2.6.27-11-generic
uuid        a8bbd0f3-c163-442c-83a8-48795691c464
kernel        /boot/vmlinuz-2.6.27-11-generic root=UUID=a8bbd0f3-c163-442c-83a8-48795691c464 ro quiet splash
initrd        /boot/initrd.img-2.6.27-11-generic
quiet

title        Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid        a8bbd0f3-c163-442c-83a8-48795691c464
kernel        /boot/vmlinuz-2.6.27-11-generic root=UUID=a8bbd0f3-c163-442c-83a8-48795691c464 ro  single
initrd        /boot/initrd.img-2.6.27-11-generic

title        Ubuntu 8.10, kernel 2.6.27-7-generic
uuid        a8bbd0f3-c163-442c-83a8-48795691c464
kernel        /boot/vmlinuz-2.6.27-7-generic root=UUID=a8bbd0f3-c163-442c-83a8-48795691c464 ro quiet splash
initrd        /boot/initrd.img-2.6.27-7-generic
quiet

title        Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid        a8bbd0f3-c163-442c-83a8-48795691c464
kernel        /boot/vmlinuz-2.6.27-7-generic root=UUID=a8bbd0f3-c163-442c-83a8-48795691c464 ro  single
initrd        /boot/initrd.img-2.6.27-7-generic

title        Ubuntu 8.10, memtest86+
uuid        a8bbd0f3-c163-442c-83a8-48795691c464
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title        Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title        Microsoft Windows XP Professional
root        (hd0,0)
savedefault
makeactive
chainloader    +1

ให้นำโค้ดในส่วนของวินโดวส์(สีแดง) ขึ้นไปไว้ด้านบนครับ ซึ่งจะทำให้ Windows ถูกเลือกเป็นรายการ แรก แล้วก็บันทึกครับ

## ## End Default Options ##

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title        Microsoft Windows XP Professional
root        (hd0,0)
savedefault
makeactive
chainloader    +1


# This is a divider, added to separate the menu items below from the Debian
# ones.
title        Other operating systems:
root


title        Ubuntu 8.10, kernel 2.6.27-11-generic
uuid        a8bbd0f3-c163-442c-83a8-48795691c464
kernel        /boot/vmlinuz-2.6.27-11-generic root=UUID=a8bbd0f3-c163-442c-83a8-48795691c464 ro quiet splash
initrd        /boot/initrd.img-2.6.27-11-generic
quiet

สำหรับผมก็ใช้ประมาณนี้ครับ
ผู้เขียน goragod โพสต์เมื่อ 11 มี.ค. 2552 เปิดดู 8,231 ป้ายกำกับ UBUNTU
^