Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Error Collection [Part 4]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4 ... 13, 14, 15  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
rushfan
n00b
n00b


Joined: 29 Jan 2006
Posts: 46

PostPosted: Sun Jan 29, 2006 9:15 pm    Post subject: Re: GRUB Errors Reply with quote

Haystack wrote:

Quote:

I dont want to install GRUB into the MBR because wouldn that over-write my windows bootloader?

Yes, but thats no problem since you let Grub chainloading Windows.

Besides, I don't get why you're re-installing linux over and over again because of bootloader problems. The bootloader has nothing to do with the Operating System it boots. Read the GRUB manual if you want to know how it works. (And I'm sure you want to, it's the only way to avoid problems.)


I'm not re-installing linux because of boot loader problems. I switched distros cause I was unhappy (which is way Im going from SUSE to Gentoo). I re-installed SUSE because I needed the bootloader fixed right away.

Like I said, I don't know whats up w/ SUSE's grub.conf, but it works so why mess with it?

I'm interested in making a proper grub.conf file for Gentoo so I can get it to work next time.

I can make a GRUB rescue disc right? In case thigns go wrong next time?
Back to top
View user's profile Send private message
Haystack
n00b
n00b


Joined: 28 Nov 2005
Posts: 60
Location: Utrecht, Netherlands

PostPosted: Sun Jan 29, 2006 10:34 pm    Post subject: Reply with quote

you lost me. I thought you were dealing with an error 15 ??? :roll:

If you don't have a grub problem... what's your question?

there is no SUSE's grub or Gentoo's grub. Grub = Grub, and should be installed the same way on what system you want to use...
Back to top
View user's profile Send private message
rushfan
n00b
n00b


Joined: 29 Jan 2006
Posts: 46

PostPosted: Sun Jan 29, 2006 11:51 pm    Post subject: Reply with quote

Ok, I think we both lost each other here...

GRUB works now because I reformatted the gentoo partition, installed SUSE into that partition, and SUSE's GUI (Yast), installed GRUB into the boot section of /dev/hdb3.

When I installed Gentoo, which I reformatted the SUSE partition to do so, I got the error 15. You got me now?
Back to top
View user's profile Send private message
Haystack
n00b
n00b


Joined: 28 Nov 2005
Posts: 60
Location: Utrecht, Netherlands

PostPosted: Mon Jan 30, 2006 12:14 am    Post subject: Reply with quote

okay.. Did you read Part 4 of the Grub Error Collection? It tells you to check if there's a kernel-image available.

Code:
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

Frequently, the error notes a missing kernel image file. Make sure that the file it is referring to exists on your boot partition.

To find out the exact name of your kernel, boot from the installation cd, mount your root and (if applicable) boot partition. Next, chroot into your Gentoo system and do a listing of the available files to see what kernel images you have available:

Code Listing 4.3: Verifying kernel image existence

# cd /boot
# ls

This will list all the kernels that you've got on your boot partition.


After compiling the kernel you have to copy the created kernel image to your boot directory.
Back to top
View user's profile Send private message
rushfan
n00b
n00b


Joined: 29 Jan 2006
Posts: 46

PostPosted: Mon Jan 30, 2006 12:16 am    Post subject: Reply with quote

YEah, I did ls /boot while I was configuring GRUB. There was a kernel image available.
Back to top
View user's profile Send private message
bdm
Guru
Guru


Joined: 20 Jan 2006
Posts: 305
Location: Canada, Barrie, Ontario

PostPosted: Mon Jan 30, 2006 1:19 pm    Post subject: Reply with quote

Haystack wrote:
Glass Casket wrote:
You have got to be kidding me.

I put the Gentoo CD back in the drive and boot. And it seems that everything I had done previously is gone!

It told me that that file didnt exist :(


You lost me.
Did you chroot back into your system?


I didn't, I simply booted with the CD and tried it right away.

But since i'm impatient, I tried again.
Back to top
View user's profile Send private message
omp
Retired Dev
Retired Dev


Joined: 10 Sep 2005
Posts: 1018
Location: Glendale, California

PostPosted: Mon Jan 30, 2006 6:35 pm    Post subject: Reply with quote

Glass Casket wrote:
Haystack wrote:
You lost me.
Did you chroot back into your system?


I didn't, I simply booted with the CD and tried it right away.

But since i'm impatient, I tried again.
If you want to continue an install which you started previously, after booting into the CD, you must mount your partitions as you did while installing and then chroot. Both of these you should have done earlier while you were installing so it shouldn’t seem completely strange to you. Just type in the commands again.
_________________
meow.
Back to top
View user's profile Send private message
bdm
Guru
Guru


Joined: 20 Jan 2006
Posts: 305
Location: Canada, Barrie, Ontario

PostPosted: Mon Jan 30, 2006 6:38 pm    Post subject: Reply with quote

omp wrote:
Glass Casket wrote:
Haystack wrote:
You lost me.
Did you chroot back into your system?


I didn't, I simply booted with the CD and tried it right away.

But since i'm impatient, I tried again.
If you want to continue an install which you started previously, after booting into the CD, you must mount your partitions as you did while installing and then chroot. Both of these you should have done earlier while you were installing so it shouldn’t seem completely strange to you. Just type in the commands again.


Thanks for that, at first I didn't know I ahd chroot back into the system in order to see what I had previously done.
Back to top
View user's profile Send private message
omp
Retired Dev
Retired Dev


Joined: 10 Sep 2005
Posts: 1018
Location: Glendale, California

PostPosted: Mon Jan 30, 2006 6:39 pm    Post subject: Reply with quote

Mounting should be described somewhere on this page:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=4#doc_chap5

Chrooting should be described somewhere on this page:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6#doc_chap1

:D
_________________
meow.
Back to top
View user's profile Send private message
bdm
Guru
Guru


Joined: 20 Jan 2006
Posts: 305
Location: Canada, Barrie, Ontario

PostPosted: Tue Jan 31, 2006 3:32 am    Post subject: Reply with quote

This part of the problem is fixed.

Last edited by bdm on Tue Jan 31, 2006 9:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
bdm
Guru
Guru


Joined: 20 Jan 2006
Posts: 305
Location: Canada, Barrie, Ontario

PostPosted: Tue Jan 31, 2006 5:03 pm    Post subject: Reply with quote

FIXED!
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Sat Feb 04, 2006 8:58 am    Post subject: Reply with quote

Hi. I'm getting "error 18" when trying to boot windows xp. It has always been working but now it is not. I don't know when it stopped working, maybe months.
This is my grub.conf:

Code:
title=Windows XP Professional
rootnoverify (hd0,0)
makeactive
chainloader +1


I tried looking up in the guide but it seems this is a problem related to the BIOS. But is it possible? It has always been working perfectly before on the same pc. I read it could also have been a problem of the position of the windows partition, but it is the first partition and it has the boot flag:

Code:
Disk /dev/hda: 40.0 GB, 40007761920 bytes
240 heads, 63 sectors/track, 5168 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         363     2744248+   7  HPFS/NTFS
/dev/hda2             364         430      506520   83  Linux
/dev/hda3             431        5168    35819280    5  Extended
/dev/hda5   *         431         435       37768+  83  Linux
/dev/hda6             436        1728     9775048+  83  Linux
/dev/hda7            1729        5168    26006368+  83  Linux


Any idea of what there could be wrong? Thanks.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sat Feb 04, 2006 10:18 pm    Post subject: Reply with quote

Hi Luc484.

You should start by removing the boot flag from your /boot partition - /dev/hda5.
If that doesn't work, you can also try to change the disk settings on the BIOS from auto to manual.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
JoeyJoeJo
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 155
Location: Fairfax, Va

PostPosted: Sun Feb 05, 2006 7:37 am    Post subject: Grub problems Reply with quote

I'm just trying to get my kernel to boot, but I can't get it for some reason. My devices.map is "hd(1) /dev/hdb." My partitions are

/dev/hdb1 (boot)
/dev/hdb2 (swap)
/dev/hdb3 (root)

My grub.conf is (something close to this, I'm doing it from memory)

root (hd1,0)
kernel /boot/vmlinuz root=/dev/hdb3

Anyway, I think my syntax is correct, but when I boot, I get the error that no such disc exists on hd1,0. But I don't get it, it seems like that should be correct, isn't it?
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Sun Feb 05, 2006 8:20 am    Post subject: Reply with quote

Removing the boot flag is not solving the problem.
Could you please explain to me what it is "disk settings"? I can't anything similar in the BIOS. Maybe because this is a laptop?

Thanks for your help.
Back to top
View user's profile Send private message
thoughtform
l33t
l33t


Joined: 24 May 2004
Posts: 600

PostPosted: Sun Feb 05, 2006 8:45 am    Post subject: Reply with quote

did you compile in your filesystem and ide chipset drivers?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Feb 05, 2006 10:38 am    Post subject: Reply with quote

How old is your laptop? Is your disk configured in the BIOS for LBA? The LBA setting should be near the auto settings for the disk. They should be in the main entry or in a general entry of the BIOS. Your laptop BIOS may have a more limited interface.
Have you updated the BIOS of your laptop? Can you do so? You should check the manufacturer web site.
You can see more info on this error at the Gentoo GRUB error collection.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Sun Feb 05, 2006 10:54 am    Post subject: Reply with quote

jmbsvicetto wrote:
How old is your laptop?


Well, I don't know if it is a year old or less. Something like that. It wasn't me who bought it, so I don't know it precisely.

Quote:
Is your disk configured in the BIOS for LBA? The LBA setting should be near the auto settings for the disk. They should be in the main entry or in a general entry of the BIOS. Your laptop BIOS may have a more limited interface.


I can't find any of this entries. Is it possible these could be the problem? Only some weeks ago I'm sure it was working correctly. From the first time I installed Gentoo some months ago till some weekd ago it has always been working correctly. I didn't change any BIOS setting so could it be the problem anyway?

Quote:
Have you updated the BIOS of your laptop? Can you do so? You should check the manufacturer web site.
You can see more info on this error at the Gentoo GRUB error collection.


No, I've never updated any BIOS. I could do it yes, but I would prefer not doing so unless it is actually necessary. I already looked on that website, and I saw the problem is due to something related to the BIOS, and a possible solution could be that of updating it. Isn't it possible the problem is somewhere else? I can't understand why it should work for moths, and then suddenly there is the need to update the BIOS. Maybe some grub updates?

Thanks for your help.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Feb 05, 2006 11:05 am    Post subject: Reply with quote

If your computer is this recent and has been working for months, I have no "clever" suggestion.
I've noticed that your WinXP installation is 2.6 GB +/-. Could that be the problem? Was or is your disk full? When did XP work for the last time? Did you reinstall GRUB after that? Have you tried mounting your NTFS partition and looking at it? Is it ok?
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Feb 05, 2006 11:09 am    Post subject: Reply with quote

Hi.

Are you sure that your /dev/hda is not your cd-rom drive? Look at the output of fdisk -l.
You should also try to post the exact error message and config files. This post should have been made in the Sticky GRUB error collection. I'm going to ask a moderator to move it there.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
JoeyJoeJo
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 155
Location: Fairfax, Va

PostPosted: Sun Feb 05, 2006 11:22 am    Post subject: Reply with quote

Yeah, I'm sure that /dev/hda is my cdrom and hdb is my hard drive. This is a really small case, and the best way to fit the ide cable in was to do it that way. I'll take a look and post the configs and all tomorrow. Thanks for the help so far guys.
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Sun Feb 05, 2006 11:23 am    Post subject: Reply with quote

jmbsvicetto wrote:
If your computer is this recent and has been working for months, I have no "clever" suggestion.
I've noticed that your WinXP installation is 2.6 GB +/-. Could that be the problem? Was or is your disk full?


I don't think it could be full. Windows is there only in case someone need it urgently. But no one uses the laptop except me. So that is a fresh Windows installation. No one has ever booted it I think.

Quote:
When did XP work for the last time? Did you reinstall GRUB after that?


I think Windows worked for the last time approximately two weeks ago. I only tried to boot it to see if it was still working. No, I checked with splat and the last time I emerged grub was 29 december.

Quote:
Have you tried mounting your NTFS partition and looking at it? Is it ok?


This is something I should have done before. I've never tried to do it, so I don't know how to do it. Anyway I read the guides and tried to mount it. I added a line to fstab with auto and ntfs as filesystem type, but I alwas get an error while trying to mount (this is dmesg output):

Code:
NTFS driver 2.1.25 [Flags: R/O MODULE].
NTFS-fs warning (device hda1): is_boot_sector_ntfs(): Invalid boot sector checksum.
NTFS-fs error (device hda1): read_ntfs_boot_sector(): Primary boot sector is invalid.
NTFS-fs error (device hda1): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device hda1): ntfs_fill_super(): Not an NTFS volume.
NTFS-fs warning (device hda1): is_boot_sector_ntfs(): Invalid boot sector checksum.
NTFS-fs error (device hda1): read_ntfs_boot_sector(): Primary boot sector is invalid.
NTFS-fs error (device hda1): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device hda1): ntfs_fill_super(): Not an NTFS volume.


I don't know if this is due to some mistakes I did trying to mount it or this is something related to something else. Would you say this is the reason why it is not booting or I just made something wrong mounting it?

Thanks again for your help, I understand nothing about this.
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Sun Feb 05, 2006 11:34 am    Post subject: Reply with quote

JoeyJoeJo: Grub starts numbering its (hd)'s at the first harddisk it finds, so hdb really is (hd0), not (hd1). Your CD-ROM would be (cd0).
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Feb 05, 2006 11:50 am    Post subject: Reply with quote

JoeyJoeJo, plate has given you the answer. That was the reason I was asking whether /dev/hda was your cd-rom.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Feb 05, 2006 11:53 am    Post subject: Reply with quote

Luc484, that is a very bad sign. The error message makes me wonder whether you didn't install GRUB into (hd0,0) once, instead of (hd0). If that XP is solely there for an emergency, you can reinstall it. Don't forget that you might need a live-cd to boot into Gentoo again and reinstall GRUB into the MBR - make sure to install it into (hd0) and not (hd0,0).
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3, 4 ... 13, 14, 15  Next
Page 3 of 15

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum