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

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  
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
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Mon Jan 16, 2006 11:53 pm    Post subject: Reply with quote

I can't emerge Grub-1.91

When it checks the compiler, it tells me that "-Wl,-O1" isn't a valid option, despite building my entire system with it.

So I took the LDFLAGS out, checked emerge --info, and then tried to emerge again. Even though I have zero LDFLAGS now, it still gives me an error thatn "-Wl,-O1" isn't a valid option.

I'd post the exact error message, but I'm getting it on a laptop I'm doing a new install on, and I can't paste from it as it isn't fully up and running.

So I did an emerge -e grub with the LDFLAGS gone thinking that perhaps some of the other programs Grub interacts with must be compiled with no LDFLAGS as well. This time it starts compiling, but then it gives me:

Makefile: Too Many Open Files

That is the top-most error I can see. I've tried compiling with GCC 4.0.2. 4.1-20060106 and 4.1-20060113.

So I have a few questions. Has anyone run into this kind of problem before?

Will there be an ebuild for 1.92 and might that fix this? 1.92 has been released for three weeks now, and I checked Bugzilla as well, but I'm not seeing an ebuild.

I'm running:
2.6.14-nitro2
gcc 4.0.2
glibc 2.3.90-20060112
binutils 2.16.1-r1

CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ftracer"
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
syth
n00b
n00b


Joined: 01 Jan 2006
Posts: 15

PostPosted: Tue Jan 17, 2006 7:13 am    Post subject: Reply with quote

NeddySeagoon,

ls -l /boot
Code:

lrwxrwxrwx  1 root root     1 Jan  5 00:23 boot ->.
drwxr-xr-x  2 root root  1024 Jan 15 2-:14 grub
-rw-r--r--  1 root root 31904 Jan  5 22:40 kernel-2.6.14-gentoo-r5
drwx------  2 root root 12288 Dec 31 17:14 lost+found


For the second one there is no arch folder in /mnt/gentoo/usr/ .
Back to top
View user's profile Send private message
LeoQ2
n00b
n00b


Joined: 13 Jan 2006
Posts: 4
Location: Stockholm, Sweden

PostPosted: Tue Jan 17, 2006 11:50 am    Post subject: Reply with quote

NeddySeagoon wrote:
LeoQ2,

This line
Code:
kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r10 root=/dev/ram0 init=/linuxrc ramdisk=8192
is missing the real_root=/dev/<your_root_device> entry.
It must be on one very long line.


Ok, I solved the problem by reinstaling from scratch. I do however think that bit was there before i edited grub.conf and still didn't make it work.

I know I dont have to start over, but for me it's a learning process that I desperatly need since I have VERY limited experience with Linux before this, so now it boots just fine but my network wont work. : :D

A minor issue that easily can be resolved by doing it all over again. Each time I get new insight in this fascinating new world.

Next time I may have it up and running with network and everything.

Thanks all for your time and effort.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


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

PostPosted: Tue Jan 17, 2006 11:53 am    Post subject: Reply with quote

syth wrote:

Code:

-rw-r--r--  1 root root 31904 Jan  5 22:40 kernel-2.6.14-gentoo-r5


Hi.

You can be sure that the kernel file is not a kerne! If it were a kernel, it would be way larger than 30KB.
NeddySeagoon made a small typo, the command is
Code:
cp /mnt/gentoo/usr/linux/arch/i386/boot/bzImage /mnt/gentoo/boot/kernel-2.6.14-gentoo-r5

_________________
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
syth
n00b
n00b


Joined: 01 Jan 2006
Posts: 15

PostPosted: Tue Jan 17, 2006 4:53 pm    Post subject: Reply with quote

There is no linux folder either :( the only folders there are X11R6, bin, i386-pc-linux-gnu, include, kde, lib, libexec, local, portage, qt, sbin, share, src, tmp .
Back to top
View user's profile Send private message
dhk
n00b
n00b


Joined: 13 Jan 2006
Posts: 2

PostPosted: Tue Jan 17, 2006 9:41 pm    Post subject: Reply with quote

Syth, try this:

Code:
cp /mnt/gentoo/usr/src/linux/arch/i386/boot/bzImage /mnt/gentoo/boot/kernel-2.6.14-gentoo-r5


(all in one line)

dhk
Back to top
View user's profile Send private message
yeboy
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2004
Posts: 81

PostPosted: Tue Jan 17, 2006 10:52 pm    Post subject: Reply with quote

Still having a problem with grub coming up EXTREMELY slow. Motherboard is Asus P4P800S and I have the latest non-beta bios update.

Code:

Quantico ~ # cat /boot/grub/grub.conf
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.14-r5
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.14-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /initramfs-genkernel-x86-2.6.14-gentoo-r5

title=Windows XP
root (hd0,5)
makeactive
chainloader +1

title=Windows XP old
root (hd1,0)
makeactive
chainloader +1


hd1 is actually a sata device and doesn't boot right. The first XP isn't even installed yet. Not sure if any of that matters.

Pretty much, after the BIOS posts, I get a black screen with a curser at the top for 60-90 seconds... like there's no drive to boot... Then I get the "Loading Grub 1.5" message. Another 60-90 seconds, and I get the bringing up grub message. Another 60-90 sec and Grub finally appears.

The primary drive is a 250G WD IDE drive.

Any ideas?
Back to top
View user's profile Send private message
brims
Guru
Guru


Joined: 19 Apr 2004
Posts: 492
Location: Arizona

PostPosted: Wed Jan 18, 2006 6:50 am    Post subject: Reply with quote

This is extremely irritating. I just installed Gentoo on my one computer, I've done it many times before. I try to do a grub-install and I get the error
Quote:
Could Not Find Device For /boot: Not Found Or Not a Block Device
So I ran grub and did root (hd0,0) and setup (hd0) I get the error
Quote:
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found


I have /dev/hda1 is /usr/portage, /dev/hda2 is /var, /dev/hda3 is swap, /dev/hda4 is /.

I did the cp /proc/mounts /etc/mtab, I have another machine I installed a couple weeks ago with the same partition setup and didn't have this problem.

/boot/grub/grub.conf
Code:
default 0
timeout 5
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.15-gentoo-r1
        root (hd0,0)
        kernel /vmlinuz-2.6.15-gentoo-r1 root=/dev/hda4 hdb=ide-cd acpi=noirq


I don't have a clue what the problem is. Any help? Thanks.

EDIT: I figured it out, I specified the wrong freaking partition, its hd0,3 not hd0,0


Last edited by brims on Wed Jan 18, 2006 7:03 am; edited 4 times in total
Back to top
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Wed Jan 18, 2006 6:53 am    Post subject: Reply with quote

Anyone? I still can't get grub 1.91 to emerge at all.
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


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

PostPosted: Wed Jan 18, 2006 12:58 pm    Post subject: Reply with quote

enderandrew wrote:
Anyone? I still can't get grub 1.91 to emerge at all.

Hi.

Have you tried pursuing this matter in the GCC 4.0 thread? From your description, this seems to be either an ebuild or compiler issue.
_________________
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
syth
n00b
n00b


Joined: 01 Jan 2006
Posts: 15

PostPosted: Wed Jan 18, 2006 8:50 pm    Post subject: Reply with quote

dhk wrote:
Syth, try this:

Code:
cp /mnt/gentoo/usr/src/linux/arch/i386/boot/bzImage /mnt/gentoo/boot/kernel-2.6.14-gentoo-r5


(all in one line)

dhk

It's working now 10x :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32166
Location: 56N 3W

PostPosted: Thu Jan 19, 2006 5:54 pm    Post subject: Reply with quote

LeoQ2,

Instead of doing everything all over again, learn some problem solving skills from your network problem.
Follow this process and understand why you and doing when you are doing. I can explain the why in more detail if you want.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Deathwing00
Moderator
Moderator


Joined: 13 Jun 2003
Posts: 4079
Location: Dresden, Germany

PostPosted: Thu Jan 19, 2006 7:59 pm    Post subject: Reply with quote

Split from original due to its length. Please, follow up to: http://forums.gentoo.org/viewtopic-t-122656.html
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, 5, 6, 7, 8, 9, 10
Page 10 of 10

 
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