LinuxQuestions.org
Register a domain and help support LQ
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 01-29-2009, 11:12 AM   #1
phoenix12345
LQ Newbie
 
Registered: Apr 2008
Posts: 15

Rep: Reputation: 1
Grub installation on an ext4 partiton


I'm trying to install Gentoo, but i get stuck when installing grub.
I have 2 ext4 partitions, one for / and another for /home, and the grub from grub-static(only this one works on amd64) ebuild doesn't seem to support installing on an ext4 partition.

So i decided to compile grub myself without the use of portage. I found an ext4 patch, but then i ran into the 256 inode problem. And since ext4 needs those 256 inodes for extents i couldn't use the quick fix of changing the inodes with tune2fs.
I found some patches from fedora that offer support for 256 inodes and i applied them, but now grub won't compile.
I get this error:
Code:
pre_stage2_exec-char_io.o: In function `grub_vsprintf':
/usr/src/grub-0.97/stage2/char_io.c:309: undefined reference to `__moddi3'
/usr/src/grub-0.97/stage2/char_io.c:309: undefined reference to `__divdi3'
/usr/src/grub-0.97/stage2/char_io.c:329: undefined reference to `__umoddi3'
/usr/src/grub-0.97/stage2/char_io.c:329: undefined reference to `__udivdi3'
collect2: ld returned 1 exit status
make[2]: *** [pre_stage2.exec] Error 1
make[2]: Leaving directory `/usr/src/grub-0.97/stage2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/grub-0.97'
make: *** [all] Error 2
I also looked into the file char_io.c and at line 309 and 329 there's no refference to those symbols.

Is there any alternative, besides lilo, that i can use to boot my system up?

Last edited by phoenix12345; 01-29-2009 at 11:16 AM.
 
Old 01-29-2009, 12:41 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
http://en.gentoo-wiki.com/wiki/Grub2
 
Old 01-30-2009, 07:39 AM   #3
phoenix12345
LQ Newbie
 
Registered: Apr 2008
Posts: 15

Original Poster
Rep: Reputation: 1
Thanks for the link, but i decided to stick to grub legacy. I've created an ext2 boot partition and it works fine now.
 
  


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
Grub SuSe, XP, Redhat Error 17: Cannot mount selected partiton hrg Linux - General 5 08-19-2006 07:47 AM
Grub SuSe, XP, Redhat Error 17: Cannot mount selected partiton hrg Linux - Newbie 3 10-02-2004 08:38 AM
Grub SuSe, XP, Redhat Error 17: Cannot mount selected partiton hrg Linux - Laptop and Netbook 1 07-16-2004 04:34 PM
Grub SuSe, XP, Redhat Error 17: Cannot mount selected partiton hrg Linux - General 1 07-16-2004 09:14 AM
Grub SuSe, XP, Redhat Error 17: Cannot mount selected partiton hrg Linux - Software 1 07-16-2004 09:06 AM


All times are GMT -5. The time now is 06:41 AM.

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