LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2011, 01:34 AM   #1
dexter.gdv
Member
 
Registered: Jul 2010
Location: Vadodara, Gujarat, India
Distribution: ubuntu
Posts: 33

Rep: Reputation: 0
old grub of ubuntu replaced by 0.97 of fedora


I am a newbie to linux system, and thus am more fascinated in using different linux distros which now led me to a problem coz of, maybe an improper installation.
I am using ubuntu 9.10 as my desktop operating system in dual boot with win xp. Both these installations are in one 160 gb harddrive.
I used a partition manager tool of windows and created an unpartitioned space in the partition that contained win xp.

Then i installed the fedora 13, (just wanted to use a redhat based os) this installations was done in the unpartitioned space that i created earlier.

Everything was fine uptill now but the problem came in when i boot. The grub that used to load on startup earlier is now a different grub (0.97) and theres no option of the older ubuntu operating system. Though the linux partitions cannot be accessed from windows, I can see them and they look as they were before plus two extra partitions one of 500 mb and other of 43.75 gb (which is an accessible partition to windows with zero space available).
I see that the partitions are there intact but theres no way how to access them. I don't know how to restore my older grub. One of my friends told me to boot the ubuntu live and then reinstall grub to the mbr but that too failed even though i followed the steps he told me to which were as follows.

sudo grub : which results in
grub>
then find /boot/grub/stage1
this command returns "no such file found"
so i could not setup(hd?,?) for reinstalling grub.

Also it is very important for me to get the older os back even at the cost of the new fedora installed, coz my final year project is on ubuntu and most of the work is saved on the desktop itself of the ubuntu os.

Waiting for a positive solution.
Thank you.
 
Old 02-02-2011, 06:10 AM   #2
generic_genus
Member
 
Registered: Oct 2005
Distribution: Gentoo Unstable
Posts: 51

Rep: Reputation: 15
You can add ubuntu to Fedora's existing boot menu. Unfortunately I am not too familiar with Fedora, but looking at their documentation (http://docs.fedoraproject.org/en-US/...e/ch-grub.html) and previous experience I'll give it a go (but do read the documentation above, you'll learn something).

I will assume the following partition layout
1. /dev/sda1 - windows XP partition
2. /dev/sda2 - fedora partition
3. /dev/sda3 - ubuntu partition
(I am assuming no seperate boot or home partitions)

Also, before you do this backup!!! You should be able to mount the ubuntu partition from fedora in GNOME. If not you can mount it from the terminal
Code:
sudo mkdir /mnt/ubuntu
sudo mount /dev/sda3 /mnt/ubuntu
The file /boot/grub/grub.conf define the grub boot menu, you need to edit this and add ubuntu. If you edit this file you should see something like:
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.19-170.2.35.fc10.i686)
root (hd0,1)
kernel /vmlinuz-2.6.27.19-170.2.35.fc10.i686 ro root=UUID=04a07c13-e6bf-6d5a-b207-002689545705 rhgb quiet
initrd /initrd-2.6.27.19-170.2.35.fc10.i686.img

# section to load Windows
title Windows
rootnoverify (hd0,0)
chainloader +1

You need to add a section for ubuntu, so the final file should look like
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Fedora (2.6.27.19-170.2.35.fc10.i686)
root (hd0,1) #equivalent to /dev/sda2
kernel /vmlinuz-2.6.27.19-170.2.35.fc10.i686 ro root=UUID=04a07c13-e6bf-6d5a-b207-002689545705 rhgb quiet
initrd /initrd-2.6.27.19-170.2.35.fc10.i686.img

title Ubuntu
root (hd0,2) #equivalent to /dev/sda3
kernel /vmlinuz
initrd /initrd.img

# section to load Windows
title Windows
rootnoverify (hd0,0) #equivalent to /dev/sda1
chainloader +1
You can then update the grub menu, by running
Code:
/sbin/grub-install /dev/hda
in the terminal. Hopefully, I got this right, just whatever you do, do not change the lines related to fedora, and make sure you get the partitions correct.

Also, in future if you want to test different distributions using virtual machine software, such as virtualbox (sudo apt-get install virtualbox), keeps it risk free!

Last edited by generic_genus; 02-02-2011 at 08:26 AM.
 
Old 02-03-2011, 05:16 AM   #3
dexter.gdv
Member
 
Registered: Jul 2010
Location: Vadodara, Gujarat, India
Distribution: ubuntu
Posts: 33

Original Poster
Rep: Reputation: 0
thank you very much for the help.
But by the time i got this reply i had already formatted the fedora partition using the windows in the seagate hdd.
Luckily i have another samsung harddisk that contains another win xp so that i can keep working.
This new knooby mistake done by me has created a new problem in which : now whenever i select the seatgate hdd from the boot menu.
It does not boot up and gives only the grub prompt as shown below:

grub >

From now onwards i will use only some virtual machine to try newer distributions a you suggested.
Hope there is some solution to this so that i can get my same old grub loader back.
Thank you.
 
Old 02-03-2011, 11:00 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Check this out
http://karuppuswamy.com/wordpress/20...rescue-prompt/
 
Old 02-05-2011, 10:23 AM   #5
dexter.gdv
Member
 
Registered: Jul 2010
Location: Vadodara, Gujarat, India
Distribution: ubuntu
Posts: 33

Original Poster
Rep: Reputation: 0
thank you this did help
http://karuppuswamy.com/wordpress/20...rescue-prompt/[/QUOTE]

and so did the below one

https://help.ubuntu.com/community/Re...tallingWindows

i used this one.
thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Grub, device string replaced with 32 digit hexadecimal number. Caused Grub "error 11" VipX1 Linux - Newbie 3 10-19-2009 05:27 PM
From which Red Hat Version, boot loader Iilo was replaced by GRUB usonule Linux - Newbie 7 12-21-2008 12:31 PM
CentOS 4.1: LILO replaced GRUB and... SupaDucta Linux - General 3 07-04-2005 12:30 PM
FC3's Grub Replaced by Mandrake10.0 dhn_123 Linux - Newbie 5 03-16-2005 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration