LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-04-2009, 12:59 PM   #1
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
Thumbs up Slackware64 ext4 grub installation trick/guide


Since 13.0, Slackware has an official x86_64 port. There is no grub package by default, and if you simply try to install it, you will get an error. A lot of users, including me, prefer grub over lilo.

It is not so much difficult to install grub on Slackware64, and I finally managed to do it. So it I thought it will be helpful for those who are new to Slackware64 and wants the old grub back. Hence the guide. Hope this will help you guys.

First, we have to keep two things in mind :

  • Slackware64 is pure 64-bit, it build binaries only in 64-bit.
  • Its multilib-compatible, just the multilib libraries (here, 32-bit compilers and libraries) are not present.
  • grub can be compiled in only 32-bit mode.
alien(Eric Hameleers) is well-known for slackware packages. He is really kind to make the multilib packages for Slackware64, so we can just use those packages to make our system multilib (like Slamd64).

you can get the packages from http://slackware.com/~alien/multilib/. Here is an excellent guide made by alien http://alien.slackbook.org/dokuwiki/...kware:multilib for how to do it step-by-step.
Quote:
download the following packages form there :
* The gcc compiler suite:
- gcc-4.3.3_multilib-x86_64-4alien.txz
- gcc-g++-4.3.3_multilib-x86_64-4alien.txz
- gcc-gfortran-4.3.3_multilib-x86_64-4alien.txz
- gcc-gnat-4.3.3_multilib-x86_64-4alien.txz
- gcc-java-4.3.3_multilib-x86_64-4alien.txz
- gcc-objc-4.3.3_multilib-x86_64-4alien.txz

* The GNU libc libraries:
- glibc-2.9_multilib-x86_64-3alien.txz
- glibc-i18n-2.9_multilib-x86_64-3alien.txz
- glibc-profile-2.9_multilib-x86_64-3alien.txz
- glibc-solibs-2.9_multilib-x86_64-3alien.txz
- glibc-zoneinfo-2.9_multilib-noarch-3alien.txz

then just upgrade the packages by running:
upgradepkg --reinstall --install-new *.t?z


Next step is to get the grub source (It is inside /extra/source/grub)
from the Install DVD.

Now we have to apply the ext4 patch since by default grub is compiled
without ext4 support. you can get the patch from http://svn.cross-lfs.org/svn/repos/c...7-ext4-1.patch.

Then its quite simple, just modify the grub.SlackBuild file to include
the patch and make the package.

Quote:
There is one last thing left now, go to grub install folder
(by default /boot/grub ) and copy the file e2fs_stage1_5 as ext4_stage1_5.

#cd /boot/grub
#cp -v e2fs_stage1_5 ext4_stage1_5


Now you are all set, just run grubconfig, install grub and edit menu.lst if you wish so.

Voila!! Now you have Slackware64 with grub and ext4.




 
Old 09-04-2009, 02:35 PM   #2
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
That is only worth it if you were going to use miltilib for other more important tasks that just booting your Slackware installation.
Just for GRUB this is plain overkill.
 
Old 09-04-2009, 02:37 PM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
It might be overkill, but if someone needs GRUB, this works. Until GRUB can be compiled on a 64-bit system without such procedures, then technically this is the only option.
 
Old 09-04-2009, 03:06 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I'm using the legacy GRUB and have done so for as long as I have used GNU/Linux systems. In another thread I asked for people to share caveats with migrating from 32-bit 13.0 to 64-bit 13.0. Related to that thread is this news about GRUB.

Am I to understand correctly from this thread that, if I install 64-bit 13.0 in its own partition(s), that I no longer will be able to use GRUB as already installed as my bootloader? That the currently installed GRUB cannot boot a 64-bit OS?
 
Old 09-04-2009, 03:09 PM   #5
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
how is it that grub is hailed as better than lilo (by some users) but is not actively developed to facilitate the development of grub2 which isn't ready for anything more than 'usable,but'?

@ Woodsman
you can't compile grub on 64bit only architecture. However, if you have a 32bit binary of grub, it will still be able to boot any of your partitions provided that you have the 32bit libs that grub requires or you have a static compile of grub. If somebody provides you the grub package for slackware64, you probably only need the glibc multilib packages

Last edited by lumak; 09-04-2009 at 03:17 PM.
 
Old 09-04-2009, 05:58 PM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
you can't compile grub on 64bit only architecture. However, if you have a 32bit binary of grub, it will still be able to boot any of your partitions provided that you have the 32bit libs that grub requires or you have a static compile of grub.
Okay, that makes sense. Thanks. I never had read anything that GRUB could not be used to load a 64-bit OS. I intend to install 64-bit 13.0 in different partitions from 32-bit 13.0. As the GRUB files will be stored on the 32-bit 13.0, according to your description GRUB should be able to boot the 64-bit version.
 
Old 09-04-2009, 10:50 PM   #7
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
I'm using this grub package:
ftp://slackware.mirrors.tds.net/pub/....0/extra/grub/
I use a small boot partition that it's installed to.
After you run:
grubconfig
it boots Slack, Slack64, Slamd64, BW64 - ext3 or ext4.

Last edited by slackass; 09-04-2009 at 11:00 PM.
 
Old 09-04-2009, 11:28 PM   #8
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136

Original Poster
Blog Entries: 1

Rep: Reputation: 29
@sahko

well if you use wine, you also need multilib. grub and wine are two very common packages which are only compiled in 32-bit.

@slackass

can you please a bit elaborate? you use a separate ext3 boot partition?
 
Old 09-05-2009, 12:06 AM   #9
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
jedi_sith_fears:
Yes.
My 1st partition is my boot partition. 256 MB
 
Old 09-05-2009, 12:10 AM   #10
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136

Original Poster
Blog Entries: 1

Rep: Reputation: 29
Ok, yes, if you use a ext3 boot partition there is no problem at all. Cheers.
 
Old 09-05-2009, 07:10 AM   #11
slackd
Member
 
Registered: Sep 2009
Location: Bangalore, India
Distribution: Fedora, Slackware, Arch Linux
Posts: 260
Blog Entries: 1

Rep: Reputation: 60
Thumbs up

Thnx jedi_sith_fears, works like a charm.
 
Old 09-05-2009, 10:00 AM   #12
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
I tried the above procedure and now GRUB is working fine on Slackware64. If you use slackpkg to update, you have to remember to blacklist the multilib packages, otherwise they will be overwritten by the standard packages.
 
Old 09-05-2009, 12:44 PM   #13
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136

Original Poster
Blog Entries: 1

Rep: Reputation: 29
Smile

Quote:
Originally Posted by plasmonics View Post
I tried the above procedure and now GRUB is working fine on Slackware64. If you use slackpkg to update, you have to remember to blacklist the multilib packages, otherwise they will be overwritten by the standard packages.
yes, that is explained in the alien's wiki. I am glad that you are booting now with grub and ext4.
 
Old 09-09-2009, 10:42 PM   #14
el_b
Member
 
Registered: Apr 2009
Distribution: Slackware 13.0
Posts: 48

Rep: Reputation: 17
Quote:
Originally Posted by slackass View Post
I'm using this grub package:
ftp://slackware.mirrors.tds.net/pub/....0/extra/grub/
I use a small boot partition that it's installed to.
After you run:
grubconfig
it boots Slack, Slack64, Slamd64, BW64 - ext3 or ext4.
Thanks, it worked, but I had to cp -v e2fs_stage1_5 ext4_stage1_5
 
Old 09-18-2009, 11:49 PM   #15
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136

Original Poster
Blog Entries: 1

Rep: Reputation: 29
Yes thats natural since grub comes with only e2fs_stage1_5 by default and booting into ext4 needs a ext4_stage1_5 file to be there. Though on boot messege it shows ext4 as e2fs ... since its just a renaming
 
  


Reply

Tags
grub, slackware, slackware64



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
[SOLVED] Slackware64-C client wont detect Slackware64-C Samba server slackass Slackware 5 08-07-2009 11:23 PM
ext4 and grub mbvo Linux - Software 4 03-13-2009 05:29 PM
Grub installation on an ext4 partiton phoenix12345 Linux - Newbie 2 01-30-2009 07:39 AM
vim :gui trick and undo-trick dazdaz Linux - Software 3 09-10-2007 02:45 PM
Using GRUB to trick Windows to fit on a different partition? fyhuang Linux - General 4 07-12-2005 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration