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

Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 22, 23, 24  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
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sat May 22, 2004 6:07 pm    Post subject: Reply with quote

What commands did you use to install grub into MBR?

The first thing that's wrong in your setup is that you marked two partitions bootable. Boot from LiveCD and run "cfdisk", then remove the bootable flag from the Windows partition (hda1).
Back to top
View user's profile Send private message
Hefelumpman
n00b
n00b


Joined: 28 Jan 2004
Posts: 7

PostPosted: Mon May 24, 2004 6:03 pm    Post subject: Grub...*scream* Reply with quote

here's my fdisk dealy...

Disk /dev/hda: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 5004 40194598+ 7 HPFS/NTFS

Disk /dev/hdb: 17.3 GB, 17302134784 bytes
255 heads, 63 sectors/track, 2103 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 5 40131 83 Linux
/dev/hdb2 6 68 506047+ 92 Unknown
/dev/hdb3 69 2103 16346137+ 83 Linux

and here's my grub.conf

#Which listing to boot as default...
default 0

# How many seconds to wait for user to make a choice...
timeout 5

# Splash Image...
splashimage=/grub/splash.xpm.gz

title=Gentoo Linux 2.6.1
# Partition where the kernel (or OS) is located
# root (hd1,0)
kernel /2.6.1-gentoo root=/dev/hdb3


# Windows dual boot
title=Windows XP
rootnoverify (hd0,0)
makeactive


Linx boots up fine - but whenever I try to boot Windows, it gives me
"Error 13: Invalid or unsupported executable format"

any ideas?

*lost*
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Mon May 24, 2004 9:44 pm    Post subject: Reply with quote

Quote:

title=Gentoo Linux 2.6.1
# Partition where the kernel (or OS) is located
# root (hd1,0)
kernel /2.6.1-gentoo root=/dev/hdb3

I didn't know one could boot it like this without specifying a partition anywhere, but I'll trust you on this :wink:

Quote:

# Windows dual boot
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

I'm missing the last line.
Back to top
View user's profile Send private message
Hefelumpman
n00b
n00b


Joined: 28 Jan 2004
Posts: 7

PostPosted: Tue May 25, 2004 7:01 am    Post subject: Reply with quote

Earthwings wrote:
Quote:

title=Gentoo Linux 2.6.1
# Partition where the kernel (or OS) is located
# root (hd1,0)
kernel /2.6.1-gentoo root=/dev/hdb3

I didn't know one could boot it like this without specifying a partition anywhere, but I'll trust you on this :wink:

Quote:

# Windows dual boot
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

I'm missing the last line.


ha, whoops - must've not pasted properly - the chainloader line *is* in there - so, I'm still lost :|
Back to top
View user's profile Send private message
Hefelumpman
n00b
n00b


Joined: 28 Jan 2004
Posts: 7

PostPosted: Tue May 25, 2004 6:05 pm    Post subject: Reply with quote

n/m fixed - don't know why, but it's reading my drives reversed...
o_O

i.e. - hda = hd1, hdb = hd0
Back to top
View user's profile Send private message
allaboutmike
n00b
n00b


Joined: 25 May 2004
Posts: 26

PostPosted: Tue May 25, 2004 10:21 pm    Post subject: Error 15, the usual fixes do not apply Reply with quote

Hi all! I have quite an unusual problem I think. I am getting an error 15 "file not found" after the kernel line is processed. The screen as it shows up on boot is:

Code:

Booting Gentoo Linux 2.6.5-r1

root (hd0,0)
 Filesystem type is ext2fs, partition type 0xfd
kernel /kernel-2.6.5-r1-gentoo root=/dev/ram0 real_root=/dev/md1 init=/linuxrc vga=0x317 splashimage=verbose

Error 15: File not found

Press any key to continue...


The kernel line is correct. I can say this with 100% certainty because after I press a key and go back to the menu, I have tried typing in exactly the same text on the grub command line. It boots immediately with no error messages and the system operates perfectly (love gentoo).

Although I can boot at will, I am keen to see it working properly because I intend to deploy this machine as a server for a client of mine in a few weeks. Anyone got a clue?
--
Have a Nice Day!
Mike
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue May 25, 2004 11:04 pm    Post subject: Reply with quote

Some guesses:
- Always make sure /boot is mounted when accessing files in there
- Check grub.conf that there is nothing beyond the kernel line that grub could interprete as a file to load
- Delete grub.conf and recreate it from scratch
- Do an fsck for the boot partition
- Format the boot partition (backup data) and copy data back. Some weird things can happen if people don't reboot after altering the partition table with partitions in use.
- Reinstall grub
- Reemerge grub with CFLAGS="". Some weird things use to happen with grub and certain CFLAGS.

Sorry that some of them sound like Windows advices :wink:
It's just a quick collection of things people reported that helped them.
Back to top
View user's profile Send private message
allaboutmike
n00b
n00b


Joined: 25 May 2004
Posts: 26

PostPosted: Wed May 26, 2004 4:01 am    Post subject: Reply with quote

Earthwings wrote:
Some guesses:
- Always make sure /boot is mounted when accessing files in there

Check
Earthwings wrote:

- Check grub.conf that there is nothing beyond the kernel line that grub could interprete as a file to load

Cursor won't go past the end of where I think the line ends, so I assume this is OK
Earthwings wrote:

- Delete grub.conf and recreate it from scratch

Done, no change.
Earthwings wrote:

- Do an fsck for the boot partition
- Format the boot partition (backup data) and copy data back. Some weird things can happen if people don't reboot after altering the partition table with partitions in use.

Skipped the fsck and did the move, format, move back thing... No change
Earthwings wrote:

- Reinstall grub

I did the folowing in grub console:
root (hd0,0)
setup (hd0)
and it came back with the usual stuff about embedding, but no change in behaviour!
Earthwings wrote:

- Reemerge grub with CFLAGS="". Some weird things use to happen with grub and certain CFLAGS.

Had already done this from info in another posting... no change.
I can still boot, but this is not right! ARGHH!
Mike
Back to top
View user's profile Send private message
weierophinney
n00b
n00b


Joined: 08 Jun 2004
Posts: 17

PostPosted: Tue Jun 08, 2004 6:58 pm    Post subject: ext3 booting as ext2 by grub Reply with quote

I have grub correctly booting my gentoo 2004.1 install (first time in over 4 years of linux use that I actually have grub working!), but...

When I'm in the grub shell and type 'root (hd0,1)', I get the following:
Filesystem type is ext2fs, partition type 0x83

Stangely enough, from my fstab:
/dev/hda2 / ext3 defaults,noatime 0 0

If my machine crashes (I've had a number of seizures in X, all attributable to using an old profile on a new install), when rebooting, it determines that the filesystem is ext2, and goes through the long fsck instead of journal recovery for ext3.

Anybody else noticed this? Is there a way to get grub to recognize the partition as an ext3?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue Jun 08, 2004 7:41 pm    Post subject: Reply with quote

This is no grub problem. Grub doesn't care about the extra journal which makes the ext2 become a ext3 which is fine (grub doesn't write on your hd when booting). The fsck however should notice it's ext3. Does "mount" report it as ext3?
Back to top
View user's profile Send private message
weierophinney
n00b
n00b


Joined: 08 Jun 2004
Posts: 17

PostPosted: Tue Jun 08, 2004 7:46 pm    Post subject: Re: ext3 booting as ext2 by grub Reply with quote

mount shows it as ext2. However, when I run 'tune2fs -j /dev/hda2', I get the following:

tune2fs 1.34 (25-Jul-2003)
The filesystem already has a journal.

Would the initrd image be mounting it as ext2? Do I need to recompile the kernel?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue Jun 08, 2004 8:01 pm    Post subject: Reply with quote

Yes, ext3 support could be missing in the kernel. Verify this with
Code:

# gzcat /proc/config.gz | grep EXT3_FS=

or, if /proc/config.gz does not exist,
Code:

grep EXT3_FS= /usr/src/linux/.config

Both should give you
Code:

CONFIG_EXT3_FS=y

if support is compiled into the kernel. Maybe "m" for module instead of "y" does work, too, as you're using initrd.
Back to top
View user's profile Send private message
weierophinney
n00b
n00b


Joined: 08 Jun 2004
Posts: 17

PostPosted: Tue Jun 08, 2004 8:06 pm    Post subject: Re: ext3 booting as ext2 by grub Reply with quote

Earthwings wrote:
Yes, ext3 support could be missing in the kernel. Verify this with
Code:

# gzcat /proc/config.gz | grep EXT3_FS=

or, if /proc/config.gz does not exist,
Code:

grep EXT3_FS= /usr/src/linux/.config

Both should give you
Code:

CONFIG_EXT3_FS=y

if support is compiled into the kernel. Maybe "m" for module instead of "y" does work, too, as you're using initrd.


The latter worked, and I got CONFIG_EXT3_FS=m. I *do* have other volumes mounted as ext3, so I can verify that ext3 is loaded. Perhaps I should recompile with this switched to 'y'? CONFIG_EXT2_FS shows 'y'.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue Jun 08, 2004 8:11 pm    Post subject: Reply with quote

I'm no real initrd expert, but it might be worth a try. Recompiling should be fast anyway.
Back to top
View user's profile Send private message
weierophinney
n00b
n00b


Joined: 08 Jun 2004
Posts: 17

PostPosted: Tue Jun 08, 2004 8:44 pm    Post subject: Re: ext3 booting as ext2 by grub Reply with quote

Recompiling with CONFIG_EXT3_FS=y did the trick. Thanks for your help!
Back to top
View user's profile Send private message
Chruker
n00b
n00b


Joined: 14 Jun 2004
Posts: 3

PostPosted: Mon Jun 14, 2004 7:33 am    Post subject: Reply with quote

Hey

I have been messing with installing Gentoo for a couple of days. The system is running fine except for Grub. When I reboot after installing Grub, it just sits there after printing 'GRUB ' (it just prints it once)

This is my grub.conf file:
Code:

# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 0

# Gentoo Linux
title  Gentoo Linux
root (hd1,6)
kernel /boot/kernel-2.6.5-gentoo-r1 root=/dev/hdb7


And this is a lilo.conf file I'm using:
Code:

boot = /dev/hdb7
map = /boot/.map
install = /boot/boot-text.b

prompt
timeout=50
vga = normal

image = /boot/kernel-2.6.5-gentoo-r1
   root = /dev/hdb7
   label = gentoo
   read-only


When I try to install GRUB I'm entering the grub shell, while booted into my Gentoo system with Lilo. I then execute these commands:
Code:

root (hd1,6)
setup (hd1,6)


I know GRUB is installed into the partitions bootsector. But both Lilo and Grub are only used as secondary bootloaders.

OT: During my installation I chose to build a 2.6.5 kernel. However the MSDOS partition support was disabled by default, thus I had some problems with the kernel not being able to mount root. :oops: However reading this thread helped.

However may I suggest you trim down the post. I took forever reading through it to see if anyone has had the same problem as me. Many of the problems and solutions are the same. So when people have gotten their problem solved, you could 'compile' their experiences/feedback into the top thread.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Mon Jun 14, 2004 2:54 pm    Post subject: Reply with quote

Chruker wrote:

I know GRUB is installed into the partitions bootsector. But both Lilo and Grub are only used as secondary bootloaders.

Hello Chruker, welcome to the forums.
Let's see if I got you right. You are using some sort of primary boot loader (which one?) and using lilo with the config file above boots Gentoo, but switching to grub does not work?

Quote:

However may I suggest you trim down the post. I took forever reading through it to see if anyone has had the same problem as me. Many of the problems and solutions are the same. So when people have gotten their problem solved, you could 'compile' their experiences/feedback into the top thread.

I'm not really sure who you are adressing with "you", but there are a couple of problems with doing this. First, ideoneus, the one who started this thread, has not posted anything for about three months. Besides, he and anybody else has no rights to edit/delete posts other then his own. Moderators (which could do that) have other things to do.
While the above could be solved, there are more issues. Nobody really wants to go through all these posts and collect the useful information. Nobody even could do this perfectly. Furthermore, deleting other people's posts for no real reason offends them. Last not least it is often helpful to go through the posts of other people to see the problem from a slightly different perspective, which might be the key to solve your problem.
Back to top
View user's profile Send private message
Chruker
n00b
n00b


Joined: 14 Jun 2004
Posts: 3

PostPosted: Mon Jun 14, 2004 6:46 pm    Post subject: Reply with quote

Earthwings wrote:
Let's see if I got you right. You are using some sort of primary boot loader (which one?) and using lilo with the config file above boots Gentoo, but switching to grub does not work?


Yes you are understanding me correctly.

This is the linux partitions. They both reside inside a MSDOS extended partition.
hd6: linux swap (starts at 34 GB)
hd7: linux ext3

The primary boot loader I'm using is a homemade one (a project of mine since... wow 1997 :-)

About trimming the post: It was just a suggestion from a newcomer.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Mon Jun 14, 2004 6:58 pm    Post subject: Reply with quote

Homemade boot loader sounds fine :)

Two things (or just the last as lilo boots fine) from the Grub FAQ sound somehow interesting:
Quote:

13. GRUB hangs when accessing my large IDE disk.
If your disk is bigger than 32GB, probably updating your mainboard BIOS will solve your problem. This bug is well-known and most vendors should provide fixed versions. For example, if you have ASUS-P3BF, upgrading the BIOS to V1007beta1 or later can fix it. Please ask your vendor, for more information.

15. I installed GRUB, but it just hangs up.
There are many possibilities, but it is likely that there is something wrong in your device map file. Take a look at the file /boot/grub/device.map. The format is well-documented in the manual.
If there is something wrong, modify the file appropriately and re-run grub-install.
If you still have a problem or you don't know how you should modify it, it would be easier to install GRUB with a boot floppy rather than to stick to grub-install.
Back to top
View user's profile Send private message
Chruker
n00b
n00b


Joined: 14 Jun 2004
Posts: 3

PostPosted: Tue Jun 15, 2004 9:13 pm    Post subject: Reply with quote

The mobo is an Asus A7V600 with the newest BIOS. But as discussed since LILO loads...

About the device.map - there wasn't one in /boot/grub/ (however there isn't on my labtop where I just installed Gentoo, and it boots fine using GRUB).

Anyway I ran grub-install, and it created the device.map file. However GRUB could still not get beyond printing 'GRUB '

I redid the root (hd1,6) and setup (hd1,6) steps just to be sure. But still no luck. So now I'm back with LILO.

I'll have to debug the installed GRUB stage1 sector at some time, to see where it breaks.
Back to top
View user's profile Send private message
flyingpants
n00b
n00b


Joined: 13 Jun 2004
Posts: 12

PostPosted: Wed Jun 16, 2004 3:51 pm    Post subject: Reply with quote

i was redirected to this thread when i asked for help, it seems none of you have this problem though, so here it is

grub fails to load. what am i doing wrong? i followed the guide more or less exactly, cept for the obvious case-specific stuff.

i setup grub like so:
Code:

root (hd0,0)
setup (hd0)
quit


grub.conf
Code:

default 0
timeout 30

# no splash image, i dont care about pretty colors as long as i can boot
title=Gentoo Linux 2.6.4
root (hd0,0)
kernel /kernel-2.6.4-linux root=/dev/hda3

title=Windows 2000
rootnoverify (hd0,3)
chainloader +1


this looks like the right way to me. but it doesnt work. if (in fdisk) my boot partition is set to boot, i get an error:
Error - Failed to load operating system
or something very similar.

however, if i take out the last three lines (windows), it goes fine, but then i can only boot linux cause windows is not in the list (surprise surprise).

ive been recommended to do a low-level format (i like the sound of this) since i have nothing important on this hard drive anyway. and then to install windows FIRST on the drive, since apparently its best to do that.

can someone clarify what the "NT loader" is, do i need to install it to MBR, etc. sorry for my noobness..

i am also going to try replacing the last 2 lines with
Code:

root (hd0,3)
chainloader (0,3)+1

or something similar because i think i read something about that.
Back to top
View user's profile Send private message
Kurono
n00b
n00b


Joined: 19 Jun 2004
Posts: 16
Location: Toronto, ON

PostPosted: Sun Jun 20, 2004 4:25 pm    Post subject: Reply with quote

I have a problem with GRUB too. I can load into Windows XP fine, but I can't seem to get into Gentoo. Everytime I select it, the screen goes black and then goes back to the OS selection.

I am currently using two hard drives:

An 80GB (master) partioned into two 40GB hard drives; first 40GB is running Windows XP, while the other 40GB is storage.

A 4GB (slave) which is where I installed Gentoo to.

This was what I used for the grub.conf file:

Code:
#Which listing to boot as default. 0 is first, 1 the second etc.
default 0

#How many seconds to wait before the default listing is booted.
timeout 30

#Nice, fat splash-image to spice things up :)
#Comment out if you don't have a graphics card installed
splashimage=(hd1,0)/grub/splash.xgm.gz

title=Gentoo Linux 2.4.25
#partition where the kernel image (or OS) is located
root(hd1,0)
kernel /kernel-2.4.25-gentoo root=/dev/hdb3 vga=792

#The next three lines are only if you dual boot with a Windows System.
#In this case, Windows is hosted on /dev/hda0
title=Windows XP Pro
rootnoverify(hd0,0)
chainloader +1
Back to top
View user's profile Send private message
johnnyrags
n00b
n00b


Joined: 25 Feb 2004
Posts: 7
Location: Connecticut

PostPosted: Wed Jun 23, 2004 4:00 am    Post subject: Reply with quote

i see the loads and loads of windows grub configs, but none of them include the issue that im having. Ive got my winblows hard drive set up as the secondary hdd. yea, i slave out winblows to linux, like it should be. however when i reformatted my linux drive i forgot my grub loader conf. it was something like root (hd0) (hd1) root (hd1) (hd0) i think, but i dont remember exactly. if there is a thread somewhere with this, can someone link me? thanx

johnnyrags
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Jun 23, 2004 7:48 am    Post subject: Reply with quote

You don't mean "root", but "map". It's on the first page of this thread in ideoneus first post at the very end.
Back to top
View user's profile Send private message
Evangelion
Veteran
Veteran


Joined: 31 May 2002
Posts: 1087
Location: Helsinki, Finland

PostPosted: Wed Jun 23, 2004 4:07 pm    Post subject: Reply with quote

OK, I haven't read this thread entirely, so if this has already been coveren, I apoligize.

First of all, the specs of the machine:

A64 3200+
1GB of RAM
2x 160GB SATA-HD

One of the HD's is dedidated to W2K, while other is dedidated to Gentoo (64bit). the Gentoo-HD is hde. It has been partitioned as follows:

/dev/hde1 = /boot (ext2)
/dev/hde2 = swap
/dev/hde3 = /home (40GB, reiserfs)
/dev/hde4 = / (120GB, reiserfs)

The Gentoo HD is the first HD on the machine. DVD-writer resides on hda

My grub.conf (relevant part):

root (hd0,0)
kernel (hd0,0)/boot/kernel-2.6.7-gentoo root=/dev/hde4

Fstab is set up correct. Kernel has support for my chipset and filesystems.

This is the error I get when I boot:

Code:
VFS: Cannot open device "hde4" or unknown-block(0,0)
Please append correct "root=" boot option
Kernel Panic: VFS: Unable to mount fs on unknown-block(0,0)


Huh :?

EDIT:

FIXED! I hadn't compiled in some generic IDE-chipset-support in the kernel, just the specific driver for my chipset
_________________
My tech-blog | My other blog
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 ... 8, 9, 10 ... 22, 23, 24  Next
Page 9 of 24

 
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