LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-09-2007, 09:11 PM   #1
sh00nya
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
GRUB not loading Ubuntu


I was wondering if any of you guys could please offer some advice in resolving an issue with GRUB. It is failing to load Ubuntu Linux while at the same time loads Windows Server without a problem.

To sum up the problem: my machine has 3 HDDs with Windows on the first and Ubuntu on the second drive...the third drive being used under Ubuntu ....last week I was trying to configure partition on the this drive n somehow messed up the primary Ubuntu drive ie the second one....consequently next time the Grub failed to load...I took it to Bill Reichert where after being unsuccessful in solving this issue he installed Fedora on third drive ....the Grub menu came back n I could boot both into Fedora as well as Windows but still not into Ubuntu...everytime I chose Ubuntu it would stop at file not found error (15)..meaning that the Grub couldn't find the kernel for Ubuntu at the location listed in menu.lst file under boot folder in grub directory in the boot partition of the 3rd drive (where Fedora was installed)...so after considerable efforts with no result I decided to install Ubuntu over Fedora thinking that with Ubuntu again on the system grub might be able to load the original Ubuntu (in 2nd drive)....but still the problem persists...I looked up online n did whatever I think matched my situation like modifying grub...updating menu.lst file...

I in fact used Knoppix as well as UBuntu Live CD for mounting partitions ....since I installed UBuntu over Fedora on the third drive (hd2,0)...thats what shows up when I search the menu.lst file in Grub shell...after I mount that drive....more over I don't have a grub.conf file although all the rest of the files like device.map are present in the grub directory....as I mentioned Windows gets loaded perfectly its the Ubuntu thats the problem...when thats chosen in the Grub menu...it shows the following msg:

----
Booting 'Ubuntu, kernel 2.6.20-15-386

root (hd2,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.20-15-386 root=/dev/mapper/Ubuntu-root ro quiet splash

Error 15:File not found...
Press any key to continue
----

...n this is what fdisk -l shows:
---
Disk /dev/hda 20.5 GB.... (This is the Windows drive)

Device Boot Start End Blocks Id System
/dev/hda1 * 1 26 208813 6 FAT16
/dev/hda2 .......

Disk /dev/hdb: 6448 MB (This is in fact my original UBuntu)
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 26 208813 6 FAT16

Disk /dev/sda: 9104 MB (This UBuntu I installed over Fedora)
Device Boot Start End Blocks Id System
/dev/sda1 * 1 608 ... 83 Linux
/dev/sda2 609 1106 ... 5 Extended
/dev/sda5 1054 ... ... 82 Linux swap/Solaris
/dev/sda6 1 608 ... 83 Linux
------

Also, as mentioned above...when I mount this last drive -- sda and enter the grub shell...run the find/boot/grub/menu.lst command it gives

(hd2,0)

as the output.

One thing I noticed was there was no gub.conf file any where...am I missing something...? To my understanding...grub is not able to locate the kernel in the location mentioned in menu.lst file..

Here's a partial shot of what 's there in the menu.lst file:

---

title Ubuntu
root (hd2,0)
kernel /vmlinuz-2.6.20-15-386 root=/dev/mapper/Ubuntu-root ro quiet splash
initrd /initrd.img-2.6.20-15-386
savedefault
.
.
title Windows NT/2000/XP
root (hd0,)
savedefault
makeactive
chainloader +1
----

BTW, I remember copying the grub file from my original Ubuntu drive (hdb1) over in the new location...is that whats causing the problem...that kernel
location didn't get updated...

If you can please help me in resolving this issue as well as kindly point out as to what am I doing wrong ...I would really appreciate. I am willing to reinstall Ubuntu again in the third drive so as to access the original Ubuntu in the first place...

TKA...
 
Old 05-09-2007, 09:51 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
From what I see in the output of fdisk, you do not have Ubuntu installed on the second drive. It is entirely a fat16 partition (windows).

You do have two Linux partitions on sda (sda1 and sda6). Ubuntu in in one of those partitions (both?).

Then you have this:
Quote:
root (hd2,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.20-15-386 root=/dev/mapper/Ubuntu-root ro quiet splash
I'n not sure about this part: root=/dev/mapper/Ubuntu-root. I'm more acquainted with this syntax: root=/dev/sda1.

My suggestion: try re=writing that kernel line: kernel /vmlinuz-2.6.20-15-386 root=/dev/sda1 ro quiet splash.

Does Ubuntu boot with that change?
 
Old 05-09-2007, 10:22 PM   #3
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Yes, I agree... I'd try:

Quote:
title Ubuntu
root (hd2,0)
kernel /vmlinuz-2.6.20-15-386 root=/dev/sda1 ro quiet splash
initrd /initrd.img-2.6.20-15-386
savedefault
Also, if that doesn't work, can you boot to a command line with your Ubuntu Live CD and give the output of:

Code:
# mount /dev/sda1 /mnt
# cd /mnt/boot
# ls -a
 
  


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
Ubuntu 6.10.. Loading Stage 1.5.. Grub Error 2? New install, only o/s?? HELP MEEEE!!! Donkey_kong Linux - Newbie 4 09-01-2011 03:24 AM
Error after loading Ubuntu from GRUB rapaport Ubuntu 7 06-09-2008 05:27 AM
XP Media Center '05 not loading on GRUB on Advent XP2100+ Dual with ubuntu AndyTheSkanker Linux - Software 1 04-06-2007 06:30 PM
GRUB Error 21 when loading Ubuntu for first time jonty-comp Ubuntu 5 02-10-2007 06:15 AM
grub loading error 16 after installing ubuntu 6 timbuktu Linux - Newbie 1 07-08-2006 01:02 PM

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

All times are GMT -5. The time now is 04:21 PM.

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