LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-21-2006, 04:15 PM   #1
ajd344
LQ Newbie
 
Registered: Apr 2006
Distribution: Kubuntu,Ubuntu (also Xandros,DSL)
Posts: 17

Rep: Reputation: 0
Smile Boot Loader (grub) will not work with Ubuntu


Hello! I'm having a hard time getting ubuntu to work. After I install it, it says "Grub starting" then "Error 18". A friend told me to try to install GAG, which I did. I got "sector boot not found or invaild" (i'm sure i selected the right parition).

What should I do? I dont plan on booting Windows, just Linux. Thanks!
 
Old 08-21-2006, 04:21 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
If you installed GAG, you'll have to reinstall grub to the root partition of ubuntu and then chainload it with GAG.

Error 18 usually has to do with disk geometry, like you have an old BIOS that doesn't support booting outside of the first 8GB. This is usually fixed by putting the /boot menu somewhere near the front of the drive.
 
Old 08-21-2006, 04:26 PM   #3
ajd344
LQ Newbie
 
Registered: Apr 2006
Distribution: Kubuntu,Ubuntu (also Xandros,DSL)
Posts: 17

Original Poster
Rep: Reputation: 0
Smile

OK, that sounds good. I think I'll just reinstall ubuntu (a little easier). How can I get /boot on the first 8gb? It's a pretty old computer I'm working with.
 
Old 08-21-2006, 04:26 PM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK - South Coast.
Distribution: Ubuntu (usually the latest....)
Posts: 2,672
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by ajd344
Hello! I'm having a hard time getting ubuntu to work. After I install it, it says "Grub starting" then "Error 18". A friend told me to try to install GAG, which I did. I got "sector boot not found or invaild" (i'm sure i selected the right parition).

What should I do? I dont plan on booting Windows, just Linux. Thanks!
where did you install it ?

One of the old favourites for the new user, is to install the bootloader to the linux partition and not the MBR on the first part of the first hard drive (thereby overwriting the windows MBR), but having just googled for "grub error 18" which says this

Quote:
Error 18: Selected cylinder exceeds maximum supported by BIOS
This error is returned when a read is attempted at a linear block address beyond the end of the BIOS translated area. This generally happens if your disk is larger than the BIOS can handle (512MB for (E)IDE disks on older machines or larger than 8GB on others.). In more practical terms this means the BIOS is unable to start executing the kernel because the kernel is not located within the block it can access at boot up time.
This can be circumvented by creating a boot partition at the beginning of the disk that is completely within the first 1023 cylinders of the harddrive. This partition will contain the kernel.
The kernel it self does not suffer from the same limitations as the BIOS so after the BIOS has loaded the kernel the kernel will have no problem accessing the whole harddrive. Newer BIOSes will automatically translate the harddrives size in a way that it can be completely contained within the first 1023 cylinders and hence modern computers do not suffer from this problem.
The same error can happen when the BIOS detects a disk in a different way as Linux does. This can happen when changing motherboards or when moving a GRUB-bootable disk from one computer to another. If this happens, just boot with a GRUB floppy, read the C/H/S numbers from the existing partition table and manually edit the BIOS numbers to match. If using a SUSE linux and installing on VM Ware this problem is solved by creating a small partition at the very beginning of the harddisc, and mounting it as /boot.
[edit]
I'm wondering where you might have installed the bootloader?

How you solve this ? well I'm guessing that if your system has windows on it and the windows partition is bigger than the 8GB mentioned, then the BIOS doesn't like where you've put the bootloader.

If it was my system, I would just try a re-install and then tell it to put the bootloader at the front of the first hard drive (if multi HDD system) or first part of MBR wherever it says it is (presuming that it's a single hard drive, it might be called hda).

In my case, I'm guessing, but the quote is from the grub wiki

regards

John

p.s. erm yes, there are ways of re-installing grub to a different location, but if you haven't played with linux much, I'd suggest that the re-install might be the easiest option.
 
Old 08-21-2006, 04:44 PM   #5
ajd344
LQ Newbie
 
Registered: Apr 2006
Distribution: Kubuntu,Ubuntu (also Xandros,DSL)
Posts: 17

Original Poster
Rep: Reputation: 0
OK, well I had 2 drives. One 10 and another 100GB. I took out the 10GB and I'm installing ubuntu on the 100GB. That should simplify the process. I'll post back. Thanks!
 
Old 08-21-2006, 04:59 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,229

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Sounds like an old BIOS, or some-one (win9[58] maybe) has been messing with the descriptor block, using CHS rather than LBA.

I like to use a separate partition for /boot, and as suggested allocate it on the initial cylinders on teh drive. Do it manually.
Ubuntu can be installed this way quite happily.
 
Old 08-21-2006, 05:42 PM   #7
ajd344
LQ Newbie
 
Registered: Apr 2006
Distribution: Kubuntu,Ubuntu (also Xandros,DSL)
Posts: 17

Original Poster
Rep: Reputation: 0
OK, well I actually had one 10 GB HDD and another 100GB. I took the 10GB out, and formated the 100GB and ubuntu is booting now! Yeh! I guess that was screwing everything up. Thanks for your help.
 
  


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 07:07 PM
configure ubuntu boot loader japloy Linux - Newbie 5 07-07-2006 10:31 AM
Install of Ubuntu failed - how do I get rid of the GRUB Loader? supapat Linux - Newbie 2 11-18-2005 09:11 PM
Ubuntu and GRUB loader miickEe. Ubuntu 11 08-23-2005 10:49 PM
My Grub loader doesn't work....help hmingjun Linux - Newbie 2 08-09-2004 03:25 PM


All times are GMT -5. The time now is 01:41 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