Grub2 & windows

Goh Lip g.lip at gmx.com
Sun Oct 4 06:00:46 UTC 2009


Errol Sapir wrote:
> I installed Karmic using ext4 and am very satisfied with the results 
> considering it is still alpha. I have one problem (at the moment :-) ). 
> When booting my grub (which I presume is grub2) didn't recognize my 
> vista dual boot. I went into /boot/grub/grub.cfg but it seems very 
> different from grub legacy. How do I enable windows to appear and boot 
> on grub2?
> Below is my 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 ###
> set default=0
> insmod ext2
> set root=(hd0,2)
> search --no-floppy --fs-uuid --set 69b0a646-2c18-49c4-ba9c-a36b703bde83
> 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
> set timeout=10
> ### 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-9-generic" {
>     insmod ext2
>     set root=(hd0,2)
>     search --no-floppy --fs-uuid --set 69b0a646-2c18-49c4-ba9c-a36b703bde83
>     linux    /boot/vmlinuz-2.6.31-9-generic 
> root=UUID=69b0a646-2c18-49c4-ba9c-a36b703bde83 ro   quiet splash
>     initrd    /boot/initrd.img-2.6.31-9-generic
> }
> menuentry "Ubuntu, Linux 2.6.31-9-generic (recovery mode)" {
>     insmod ext2
>     set root=(hd0,2)
>     search --no-floppy --fs-uuid --set 69b0a646-2c18-49c4-ba9c-a36b703bde83
>     linux    /boot/vmlinuz-2.6.31-9-generic 
> root=UUID=69b0a646-2c18-49c4-ba9c-a36b703bde83 ro single
>     initrd    /boot/initrd.img-2.6.31-9-generic
> }
> ### END /etc/grub.d/10_linux ###
> 
> ### BEGIN /etc/grub.d/20_memtest86+ ###
> menuentry "Memory test (memtest86+)" {
>     linux    /boot/memtest86+.bin
> }
> menuentry "Memory test (memtest86+, serial console 115200)" {
>     linux    /boot/memtest86+.bin console=ttyS0,115200n8
> }
> ### END /etc/grub.d/20_memtest86+ ###
> 
> ### BEGIN /etc/grub.d/30_os-prober ###
> ### END /etc/grub.d/30_os-prober ###
> 
> ### BEGIN /etc/grub.d/40_custom ###
> # This file is an example on how to add custom entries
> ### END /etc/grub.d/40_custom ###
> 
> # This is a divider, added to separate the menu items below from the Debian
> # ones.
> title        Other operating systems:
> root
> 
> TIA
> Errol
> 

Errol, try this at terminal,

sudo grub-mkconfig


If output at terminal is okay, then

sudo grub-mkconfig -o /boot/grub/grub.cfg

to write to grub.cfg file.


If you have an older grub2 (not grub-legacy) version, (I doubt it),
then do this...

sudo update-grub

If all fails, then maybe at install, it wasnt set properly, then do

sudo grub-install


Regards,
Goh Lip





More information about the kubuntu-users mailing list