LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How do I compile GRUB 2 in Slack64? (https://www.linuxquestions.org/questions/slackware-14/how-do-i-compile-grub-2-in-slack64-753719/)

el_b 09-08-2009 10:10 PM

How do I compile GRUB 2 in Slack64?
 
I NEED to do this in order to use GRUB, unless there's a GRUB 2 slackbuild. Legacy WON'T work.
It won't compile, gives a "start" error. I figured out that it's because it is made for x86 only. How could I make it compile?
There's a 0.97 in Slack32-Extras, but 0.97 doesn't support EXT4, what I am using now, and it gave me errors that it couldn't find /sbin/grub, I was running grub-install as su root.
I want to run GRUB so I don't have to update LILO every time I compile a kernel...
Thanks in advance.

sahko 09-08-2009 10:34 PM

AFAIK GRUB 2 doesnt compile on 64bit either. But that might have changed as there seems to be a beta released lately. Debian switched to it.
Most people i trust who have tried the next generation of GRUB told me that its worst than legacy.

el_b 09-08-2009 10:45 PM

Update: Does the Grub in Slackware-13-32bit-extras support EXT4? There's a patch for grub-legacy that lets it handle EXT4...

I'm gonna switch over to Slack32, there's no reason to use 64 on my laptop anyway. I didn't expect so many difficulties at compiling.

Thanks for the reply

I got a slackbuild from post #6 here
http://www.linuxquestions.org/questi.../grub2-712278/
I ran grub-update (with grub 2) and got this. The file does exist, when I try to run it it gives me the same error. It doesn't seem to be a broken symlink or anything. Weird (or KDE can't get the difference between a symlink and the real thing)
/usr/sbin/grub-install: line 192: /usr/sbin/grub-mkdevicemap: No such file or directory

piratesmack 09-09-2009 12:46 PM

Quote:

Originally Posted by el_b (Post 3675251)
Update: Does the Grub in Slackware-13-32bit-extras support EXT4? There's a patch for grub-legacy that lets it handle EXT4...

Yep, it uses this patch

jedi_sith_fears 09-09-2009 12:49 PM

You dont even need a patch
just copy the e2fs_stage_1_5 to ext4_stage_1_5 and the supplied grub legacy package will work
for compiling grub2 or grub you need to use the multilib from alien's slackbuild.

read a guide here http://www.linuxquestions.org/questi...kguide-752713/

el_b 09-14-2009 06:43 PM

I just installed Slack32, with XFS... GRUB worked out of the box. Thanks anyway.


All times are GMT -5. The time now is 12:01 PM.