Want to boot from two drives with one grub menu. OPsyses are
XP-Fedora and UBUNTU
Here are the facts or info that I gathered.
Booting from /dev/sda with UBUNTU on /dev/sda it boots correctly, it has the
chain loader to Windows XP on /dev/sdb. which boots correctly
But I also have Fedora 12 on /dev/sdb which Ubuntu did not pick up.
UBUNTU uses the new GRUB2 program
Fedora shares /dev/sdb with XP and has the old grub program
If I boot from the /dev/sdb, it does not boot the UBUNTU system.
If I boot from the /dev/sda it only shows XP as the other OPSYS
Can you Help?
Here are my attempts using /dev/sdb (fedora disk, with old version of grub)
a) Added (hd1) as /dev/sda in the file device.map which follows...
=======================
# this device map was generated by anaconda
(hd1)
/dev/sda
(hd0) /dev/sdb
========================
b) Using Gparted for /dev/sda I extracted the following.
/dev/sda3 Ubuntu /boot UUID db3af0cf-ba7b-432b-b5ab-eda6ef4a1215
/dev/sda2 Ubuntu Extended
/dev/sda5 Ubuntu / UUID cab60453-6be1-44df-b71b-274b33f31c40
/dev/sda6 Ubuntu /swap UUID 1957417e-942c-41db-91e1-29b7d11471f6
/dev/sda1 UBUNTU /opt UUID c83da02d-6ebc-43f4-9f43-688248e0dc95
and using Gparted for /dev/sdb
/dev/sda1 Windows XP UUID D0A08CCDA08CBB8A
/dev/sda2 Fedora /boot UUID 256c49d7-a042-4c7c-8803-997cb6871625
/dev/sda3 Fedora /swap UUID
ff07cb9d-7f8b-4a9a-954c-9ddff8986763
/dev/sda4 Fedor / UUID 05ba94a0-4894-48dd-b3f3-96186cc6b541
========= UBUNTU GRUB ===== for reference
#
# 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="4"
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,5)
search --no-floppy --fs-uuid --set cab60453-6be1-44df-b71b-274b33f31c40
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-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy
--fs-uuid --set db3af0cf-ba7b-432b-b5ab-eda6ef4a1215
linux /vmlinuz-2.6.31-14-generic
root=UUID=cab60453-6be1-44df-b71b-274b33f31c40 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,3)
search --no-floppy --fs-uuid --set db3af0cf-ba7b-432b-b5ab-eda6ef4a1215
linux /vmlinuz-2.6.31-14-generic
root=UUID=cab60453-6be1-44df-b71b-274b33f31c40 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 ###
menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
insmod ntfs
set root=(hd1,1)
search --no-floppy --fs-uuid --set d0a08ccda08cbb8a
drivemap -s (hd0) ${root}
chainloader +1
}
### 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.
### END
/etc/grub.d/40_custom ###
================== end ubuntu grub2 reference ======
And the Grub from Fedora with my attempt to pick up the UBUNTU current kernel
==========
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/sdb4
# initrd /initrd-[generic-]version.img
#boot=/dev/sdb
default=3
timeout=9
splashimage=(hd0,1)/grub/splash.xpm.gz
#hiddenmenu
password --md5 $1$YbpUt/7Z$cYvI0fmgfDVX2EFe32xdu0
#
title Ubuntu, Linux 2.6.31-14-generic
cab60453-6be1-44df-b71b-274b33f31c40 #ubuntu /
root=(hd1,3)
kernel /vmlinuz-2.6.31-14-generic
root=UUID=cab60453-6be1-44df-b71b-274b33f31c40 ro quiet splash
# kernel /vmlinuz-2.6.31-14-generic
root=UUID=db3af0cf-ba7b-432b-b5ab-eda6ef4a1215 ro quiet splash
initrd /initrd.img-2.6.31-14-generic
title Fedora (2.6.31.6-145.fc12.x86_64)
root (hd0,1)
kernel /vmlinuz-2.6.31.6-145.fc12.x86_64 ro
root=UUID=05ba94a0-4894-48dd-b3f3-96186cc6b541 LANG=en_US.UTF-8
SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=cf rhgb quiet
initrd
/initramfs-2.6.31.6-145.fc12.x86_64.img
title Fedora (2.6.31.5-127.fc12.x86_64)
root (hd0,1)
kernel /vmlinuz-2.6.31.5-127.fc12.x86_64 ro
root=UUID=05ba94a0-4894-48dd-b3f3-96186cc6b541 LANG=en_US.UTF-8
SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=cf rhgb quiet
initrd /initramfs-2.6.31.5-127.fc12.x86_64.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
==================================
I tried root (hd1,2) as I believe the Fedora Grub counts from Zero, whereas the
New grub counts from 1.
Any suggestions.
Do you think it is worth trying to use the new grub2 from UBUNTU?
------------------
Regards
Mr. Leslie
Leslie Satenstein
mailto:[email protected]
mailto [email protected]
www.itbms.biz
_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca