altonbr
June 19th, 2009, 11:01 PM
I usually only have one version of Linux and Windows (which, I don't even know why I have really...) but I decided to try bug reporting for Karmic and decided to try Debian stable (5.0.1 Lenny).
I installed Jaunty, then Karmic, then rescued GRUB to boot to Jaunty (Karmic was not found), then installed Debian and rescued GRUB again (I'm in fact still in the LiveCD after doing so), but have found that Grub, again, has not detected my other OSes (besides Windows)...
'update-grub' doesn't seem to help detect the other OSes, so maybe there's a trick I don't know in 'grub'?
Here's what I did to recover my bootloader:
grub> find /boot/grub/stage1
(hd0,1)
(hd0,6)
grub> root (hd0,1)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.Here's my fdisk:
$ sudo fdisk -l /dev/sda
Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x998dde60
Device Boot Start End Blocks Id System
/dev/sda1 1 5222 41945683+ 7 HPFS/NTFS
/dev/sda2 * 5223 6527 10482412+ 83 Linux # this is Ubuntu/Jaunty
/dev/sda3 6528 30394 191711677+ 5 Extended
/dev/sda5 30264 30394 1052257+ 82 Linux swap / Solaris
/dev/sda6 6528 7743 9767457 83 Linux # this is Ubuntu/Karmic
/dev/sda7 7744 8959 9767488+ 83 Linux # this is Debian/Lenny
Partition table entries are not in disk orderOSProber:
$ sudo os-prober
/dev/sda1:Windows Vista (loader):Windows:chain
/dev/sda2:Ubuntu 9.04 (9.04):Ubuntu:linux
/dev/sda6:Ubuntu karmic (development branch) (9.10):Ubuntu1:linux
/dev/sda7:Debian GNU/Linux (5.0.1):Debian:linux
Relevant GRUB settings:
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-13-generic
uuid cafe5572-7492-4d80-a0f8-62349c42049e
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=cafe5572-7492-4d80-a0f8-62349c42049e ro splash vga=775
initrd /boot/initrd.img-2.6.28-13-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
uuid cafe5572-7492-4d80-a0f8-62349c42049e
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=cafe5572-7492-4d80-a0f8-62349c42049e ro single
initrd /boot/initrd.img-2.6.28-13-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid cafe5572-7492-4d80-a0f8-62349c42049e
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=cafe5572-7492-4d80-a0f8-62349c42049e ro splash vga=775
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid cafe5572-7492-4d80-a0f8-62349c42049e
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=cafe5572-7492-4d80-a0f8-62349c42049e ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid cafe5572-7492-4d80-a0f8-62349c42049e
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 Windows Vista (loader)
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
I know I can edit Grub myself, but I play around with a lot of OSes and would like to know if there is any easier way.
I installed Jaunty, then Karmic, then rescued GRUB to boot to Jaunty (Karmic was not found), then installed Debian and rescued GRUB again (I'm in fact still in the LiveCD after doing so), but have found that Grub, again, has not detected my other OSes (besides Windows)...
'update-grub' doesn't seem to help detect the other OSes, so maybe there's a trick I don't know in 'grub'?
Here's what I did to recover my bootloader:
grub> find /boot/grub/stage1
(hd0,1)
(hd0,6)
grub> root (hd0,1)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.Here's my fdisk:
$ sudo fdisk -l /dev/sda
Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x998dde60
Device Boot Start End Blocks Id System
/dev/sda1 1 5222 41945683+ 7 HPFS/NTFS
/dev/sda2 * 5223 6527 10482412+ 83 Linux # this is Ubuntu/Jaunty
/dev/sda3 6528 30394 191711677+ 5 Extended
/dev/sda5 30264 30394 1052257+ 82 Linux swap / Solaris
/dev/sda6 6528 7743 9767457 83 Linux # this is Ubuntu/Karmic
/dev/sda7 7744 8959 9767488+ 83 Linux # this is Debian/Lenny
Partition table entries are not in disk orderOSProber:
$ sudo os-prober
/dev/sda1:Windows Vista (loader):Windows:chain
/dev/sda2:Ubuntu 9.04 (9.04):Ubuntu:linux
/dev/sda6:Ubuntu karmic (development branch) (9.10):Ubuntu1:linux
/dev/sda7:Debian GNU/Linux (5.0.1):Debian:linux
Relevant GRUB settings:
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-13-generic
uuid cafe5572-7492-4d80-a0f8-62349c42049e
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=cafe5572-7492-4d80-a0f8-62349c42049e ro splash vga=775
initrd /boot/initrd.img-2.6.28-13-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
uuid cafe5572-7492-4d80-a0f8-62349c42049e
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=cafe5572-7492-4d80-a0f8-62349c42049e ro single
initrd /boot/initrd.img-2.6.28-13-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid cafe5572-7492-4d80-a0f8-62349c42049e
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=cafe5572-7492-4d80-a0f8-62349c42049e ro splash vga=775
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid cafe5572-7492-4d80-a0f8-62349c42049e
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=cafe5572-7492-4d80-a0f8-62349c42049e ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid cafe5572-7492-4d80-a0f8-62349c42049e
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 Windows Vista (loader)
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
I know I can edit Grub myself, but I play around with a lot of OSes and would like to know if there is any easier way.