LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 09-28-2006, 11:25 PM   #1
Free_beer
Member
 
Registered: Jul 2006
Distribution: Fedora Core 6, Ubuntu
Posts: 31

Rep: Reputation: 15
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader


Hi,

This is the process I followed (below) and the out come is Ubuntu file system is still on my hard drive yet I can't boot up Ubuntu because FC 5 wrote over Ubuntu's Boot Loader file. What is the code to add Ubuntu to the Fedora Core 5 grub.conf so I can boot up Ubuntu?

Process: on 80 gig HD
1. Installed Win 2k3 (20 gig) sda6
2. Installed Win XP SP2 (5 gig)sda5
3. Installed Ubuntu 6.0 Desktop (21 gig)sda1
4. Installed FC 5 (7 gig)?

Fedora Core 5 grub.conf file
Code:
default=0
timeout=15
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5smp)
	root (hd0,2)
	kernel /boot/vmlinuz-2.6.15-1.2054_FC5smp ro root=LABEL=/ rhgb quiet
	initrd /boot/initrd-2.6.15-1.2054_FC5smp.img
title Other
	rootnoverify (hd0,0)
	chainloader +1
The "Other" points to the Windows boot loader. The Windows boot loader can boot Win 2k3 server just fine yet it CAN NOT boot up Win XP!! (I get an error)
 
Old 09-29-2006, 02:43 AM   #2
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
Need some more information, what's in FC5's /boot/grub/device.map and what's the output of "fdisk -l"

Without knowing that it's just a guess from here out but you can try:
Code:
title Ubuntu 2.6.15-26-386
	root (hd0,2)
	kernel /boot/vmlinuz-2.6.15-26-386 root=LABEL=/ ro quiet
	initrd /boot/initrd.img-2.6.15-26-386
	boot
That's if you have a separate /boot partition, you'll also want to remove "hiddenmenu" so you can choose which to boot without having to press escape.
 
Old 09-29-2006, 04:22 AM   #3
Free_beer
Member
 
Registered: Jul 2006
Distribution: Fedora Core 6, Ubuntu
Posts: 31

Original Poster
Rep: Reputation: 15
Sure. Let me know if this useful:

Device.map
Code:
# this device map was generated by anaconda
(hd0)     /dev/sda
Ouput of fdisk -l
Code:
Disk /dev/sda: 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/sda1   *           1        2575    20683656    7  HPFS/NTFS
/dev/sda2            2576        6023    27696060    f  W95 Ext'd (LBA)
/dev/sda3            6024        6915     7164990   83  Linux
/dev/sda4            6916        7170     2048287+  82  Linux swap / Solaris
/dev/sda5            2576        3212     5116671    7  HPFS/NTFS
/dev/sda6            3213        5762    20482843+  83  Linux
/dev/sda7            5763        6023     2096451   82  Linux swap / Solaris
 
Old 09-29-2006, 05:07 AM   #4
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
ok, this entry should work for you
Code:
title Ubuntu 2.6.15-26-386
	root (hd0,5)
	kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda6 ro quiet
	initrd /boot/initrd.img-2.6.15-26-386
	boot
 
Old 10-02-2006, 07:11 PM   #5
Free_beer
Member
 
Registered: Jul 2006
Distribution: Fedora Core 6, Ubuntu
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by binary_y2k2
ok, this entry should work for you
Code:
title Ubuntu 2.6.15-26-386
	root (hd0,5)
	kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda6 ro quiet
	initrd /boot/initrd.img-2.6.15-26-386
	boot
Good shit homie. It work for the most part. I only had to add one thing to the kernel code. Which was
Code:
 kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda6 ro quiet vga=0x318
Thanks
 
  


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
Ubuntu installed, but with no boot loader dotancohen Linux - Newbie 4 12-28-2006 08:07 PM
Boot Loader (grub) will not work with Ubuntu ajd344 Linux - Newbie 6 08-21-2006 06:42 PM
ubuntu: windows took over MBR and can't restore grub eantoranz Linux - Software 3 02-03-2006 09:29 PM
Ubuntu and GRUB loader miickEe. Ubuntu 11 08-23-2005 11:49 PM
How do you get back into Ubuntu if you don't put Grub on the MBR? Marrea Ubuntu 7 07-21-2005 07:27 AM


All times are GMT -5. The time now is 02:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration