I installed Fedora 12 on my second drive.
Xubuntu 9.10 is on my master drive, and I use it to install/update grub.
When I installed Fedora, I answered "NO" to installing a boot loader.
After install, I booted Xubuntu and ran update-grub, grub couldn't find (apparently) my new fedora install.
I've tried adding it to /etc/grub.d/40_custom, and when I list /boot/grub/grub.conf, it appears to have added Fedora to the bottom of the menu.
When I boot, it doesn't stop at the grub screen, indicating only one installation of linux.
Here are the pertinent file listings, can you see where I've gone wrong?
Code:
dav@dav-desktop:~$ cat /boot/grub/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=(hd0,6)
search --no-floppy --fs-uuid --set 632e22bc-a33a-40b6-92b1-3921de503b6c
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=(hd0,1)
search --no-floppy --fs-uuid --set 41b542f0-cec2-433b-ad3c-b91c86793cb8
linux /vmlinuz-2.6.31-20-generic root=UUID=632e22bc-a33a-40b6-92b1-3921de503b6c ro quiet splash
initrd /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=(hd0,1)
search --no-floppy --fs-uuid --set 41b542f0-cec2-433b-ad3c-b91c86793cb8
linux /vmlinuz-2.6.31-20-generic root=UUID=632e22bc-a33a-40b6-92b1-3921de503b6c ro single
initrd /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=(hd0,1)
search --no-floppy --fs-uuid --set 41b542f0-cec2-433b-ad3c-b91c86793cb8
linux /vmlinuz-2.6.31-14-generic root=UUID=632e22bc-a33a-40b6-92b1-3921de503b6c ro quiet splash
initrd /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=(hd0,1)
search --no-floppy --fs-uuid --set 41b542f0-cec2-433b-ad3c-b91c86793cb8
linux /vmlinuz-2.6.31-14-generic root=UUID=632e22bc-a33a-40b6-92b1-3921de503b6c ro single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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.
#!/bin/bash
echo "Adding Fedora LXDE system" >&2
menuentry "Fedora LXDE 2.6.31.4-127.fc12.x86_64" {
recordfail=1
#if [ -n ${have_grubenv} ]; then save_env recordfail; fi
#set quiet=1
insmod ext4
set root=(hd1,1)
linux /boot/vmlinuz-2.6.31.5-127.fc12.x86_64
initrd /boot/initramfs-2.6.31.5-127.fc12.x86_64.img
boot
}### END /etc/grub.d/40_custom ###
dav@dav-desktop:~$
Code:
dav@dav-desktop:~$ cat /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# 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.
#!/bin/bash
echo "Adding Fedora LXDE system" >&2
menuentry "Fedora LXDE 2.6.31.4-127.fc12.x86_64" {
recordfail=1
#if [ -n ${have_grubenv} ]; then save_env recordfail; fi
#set quiet=1
insmod ext4
set root=(hd1,1)
linux /boot/vmlinuz-2.6.31.5-127.fc12.x86_64
initrd /boot/initramfs-2.6.31.5-127.fc12.x86_64.img
boot
}dav@dav-desktop:~$
Code:
dav@dav-desktop:~$ sudo fdisk -l
[sudo] password for dav:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d92d0
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 9729 77947380 5 Extended
/dev/sda5 26 401 3020188+ 82 Linux swap / Solaris
/dev/sda6 402 2381 15904318+ 83 Linux
/dev/sda7 2382 9729 59022778+ 83 Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 26 9730 77945912+ 8e Linux LVM
Partition 2 does not end on cylinder boundary.
dav@dav-desktop:~$
Bookmarks