LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-25-2008, 12:35 PM   #1
omkarphadke
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Rep: Reputation: 0
Ubuntu Grub Overwritten by RHEL 5


Hello members of Linuxquestion.org ,guys I had Installed Windows Xp n Ubuntu 8.04 which was working 5n.I installed RHEL 5 on the System which apparently has overwritten the Grub of Ubuntu n now I can access Windows Xp n Red Hat Server 5 from the Red Hat's Grub but I can't access Ubuntu.

I tried out many things like editing the Redhat's /etc/Grub.conf with the 3 lines of Ubuntu but Still it isn't working if anyone could tell me the probs by anyways I would be pleased...
thnks in advance...
 
Old 10-26-2008, 05:27 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If you copy the relevant parts from the Ubuntu menu.lst into the RHEL one, you should be fine, so why don't you post your menu.lst and the output of "fdisk -l" and explain what is on which of the partitions.
 
Old 10-27-2008, 03:53 AM   #3
omkarphadke
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Original Poster
Rep: Reputation: 0
some of the Contents of my menu.lst file of Ubuntu Interprid beta

examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#


title Ubuntu intrepid (development branch), kernel 2.6.27-7-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=ef634f34-8acb-447f-96c2-ec7aa941d804 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu intrepid (development branch), kernel 2.6.27-7-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=ef634f34-8acb-447f-96c2-ec7aa941d804 ro single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu intrepid (development branch), kernel 2.6.24-16-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ef634f34-8acb-447f-96c2-ec7aa941d804 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu intrepid (development branch), kernel 2.6.24-16-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ef634f34-8acb-447f-96c2-ec7aa941d804 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu intrepid (development branch), memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
 
Old 10-27-2008, 04:36 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
And fdisk -l ?
 
Old 10-27-2008, 06:16 AM   #5
omkarphadke
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Original Poster
Rep: Reputation: 0
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 2550 20482843+ c W95 FAT32 (LBA)
/dev/hda2 2551 9729 57665317+ f W95 Ext'd (LBA)
/dev/hda5 2551 6374 30716248+ b W95 FAT32
/dev/hda6 9586 9729 1156648+ 82 Linux swap / Solaris
/dev/hda7 6375 7590 9767488+ 83 Linux
/dev/hda8 9121 9146 208813+ 83 Linux
/dev/hda9 7591 8865 10241406 83 Linux
/dev/hda10 8866 9120 2048256 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/hdb: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1531 4870 26828550 5 Extended
 
Old 10-27-2008, 02:44 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So, according to post #3, Ubuntu should be on /dev/hda7. Are you saying this isn't the case?

What is the exact message grub gives if you add

Code:
title Ubuntu intrepid (development branch), kernel 2.6.27-7-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=ef634f34-8acb-447f-96c2-ec7aa941d804 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
to RH's grub?
 
Old 10-27-2008, 03:16 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Suppose you had LinuxA on sda1 (grub's hd0,0) and LinuxB on sda2 (grub's hd0,1). If grub was installed with Linux B, and you want to get back to having LinuxA "own" it, just do:
Code:
grub   #starts the grub shell
root (hd0,0)   #tells grub it's going to be tied to disk1, partition 1
setup (hd0)    #installs grub to the MBR
Then of course, you would have to edit the LinuxA menu.lst to include an entry for LinuxB.

the "booting" link in my sig. might be helpful.
 
Old 10-29-2008, 12:12 AM   #8
omkarphadke
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Hey Thnks guys but the probs is Solved now as I had went to RHEL IRC chat n told the guy who was supporting me tht One of my forum friend(Billy) said me to paste the relavant lines on the menu.lst file of Ubuntu Interpred so we had a chat n he told me the lines which should be pasted to menu.lst file of RHEL,my System is now perfectly booting no probs at all thnks guys for ur help ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing gentoo along with fedora and vista. Will grub be overwritten? neolithic_psyche Linux - Newbie 6 04-06-2008 08:00 AM
Now I've done it... GRUB overwritten by Winblows RAdams Ubuntu 2 10-02-2006 08:55 AM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 04:25 PM
MBR is overwritten and GRUB is lost satish427 Red Hat 3 10-13-2004 12:48 PM
GRUB + Windows Install =What!? It's not Overwritten? ellakano Linux - Software 7 09-12-2004 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration