which grub to edit?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pardon if I posted this before.  I was working on grub last night.
Win2k and Fedora 7 are on sda (hda) while FC3 is on sdb (hdb).  The
MBR on sda is being used, I believe.

Which grub do I edit to get all OS's booting?  I tried a few
variations, mucking with the one in /boot/grub/... from FC3, but
wasn't able to hit on the correct combination.


[root@localhost ~]#
[root@localhost ~]# cat /etc/fedora-release
Fedora Core release 3 (Heidelberg)
[root@localhost ~]#
[root@localhost ~]# cat /mnt/hda2/grub/grub.conf
# 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/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
#hiddenmenu
title Fedora (2.6.21-1.3228.fc7)
       root (hd0,1)
       kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb quiet
       initrd /initrd-2.6.21-1.3228.fc7.img
title Fedora (2.6.21-1.3194.fc7)
       root (hd0,1)
       kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
       initrd /initrd-2.6.21-1.3194.fc7.img
title win2k
       rootnoverify (hd0,0)
       chainloader +1


#OLD GRUB ADDED ON

title Fedora Core (2.6.20-1.2952.fc6)
       root (hd1,1)
       kernel /vmlinuz-2.6.20-1.2952.fc6 ro
root=/dev/VolGroup01/LogVol00 rhgb quiet
       initrd /initrd-2.6.20-1.2952.fc6.img

title win2k
       map (hd0) (hd1)
       map (hd1) (hd0)
       rootnoverify (hd1,0)
       chainloader +1
[root@localhost ~]#
[root@localhost ~]# cat /boot/grub/grub.conf
# 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 (hd1,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup01/LogVol00
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=8
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.667)
       root (hd1,0)
       kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup01/LogVol00 rhgb quiet
       initrd /initrd-2.6.9-1.667.img
title Other
       rootnoverify (hd0,0)
#       chainloader +1

title Fedora (2.6.21-1.3228.fc7)
       root (hd0,1)
       kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb quiet
       initrd /initrd-2.6.21-1.3228.fc7.img
       chainloader +1
[root@localhost ~]#
[root@localhost ~]# mount
/dev/mapper/VolGroup01-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hdb1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda2 on /mnt/hda2 type ext3 (rw,noexec,nosuid,nodev)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdc on /media/cdrom type hfs (ro,nosuid,nodev,user=thufir)
[root@localhost ~]#
[root@localhost ~]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1912    15358108+   7  HPFS/NTFS
/dev/hda2            1913        1925      104422+  83  Linux
/dev/hda3            1926        9729    62685630   8e  Linux LVM

Disk /dev/hdb: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1          13      104391   83  Linux
/dev/hdb2              14        3738    29921062+  8e  Linux LVM
[root@localhost ~]#
[root@localhost ~]# date
Thu Jun 28 07:29:46 PDT 2007
[root@localhost ~]#



thanks,

Thufir

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux