Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


Search this Thread
Old 02-27-2013, 11:29 AM   #1
Senior Member
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, Slackware
Posts: 2,126

Rep: Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086
GRUB 0.97: no 64-bit version?


I wanted to fiddle with GRUB 0.97 (for a course on bootloaders), and I remember Slackware had always featured it in extra/. Curious thing: it's available indeed, but only for 32-bit Slackware.

How comes there's no GRUB 0.97 for Slackware64?
Old 02-27-2013, 11:54 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,783

Rep: Reputation: 482Reputation: 482Reputation: 482Reputation: 482Reputation: 482
The legacy grub sources will not build on a 64-bit arch -I think more because of the grub *program* than because of the grub *bootloader*. It will boot 64-bit kernels though (with patch to sources), so if you know how to create a menu.lst and are able to install the bootloader someway, then you can use it on a 64-bit machine.
1 members found this post helpful.
Old 02-28-2013, 12:29 PM   #3
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 892

Rep: Reputation: 78
I've been using grub 0.97 from 32 bit /exta on Slack64 systems by installing to a separate very small, unmounted partition.

Last edited by slackass; 02-28-2013 at 12:33 PM.
1 members found this post helpful.
Old 02-28-2013, 11:41 PM   #4
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 801

Rep: Reputation: 247Reputation: 247Reputation: 247
On a 64-bit system you can use the "grub" package from the 32-bit version of Slackware.
You can run "grub" using Alien Bob's multilib packages or boot "grub" from a CD or floppy to use the "native" command mode.

Even without the multilib packages "grub" will boot a 64-bit kernel. Without multilib you have to install "grub" using a grub boot CD or floppy. Use "info grub" to find out how to create the grub boot CD or floppy disk.

To boot from the hard disk using "grub", copy the files from "/usr/lib/grub/i386-pc" to "/boot/grub" and then create the file "/boot/grub/menu.lst" with your boot menu configuration. The "/boot/grub" directory can be in the same partition as your 64-bit kernel. You don't need a separate partition for "grub".

Unfortunately you can't copy or edit files using the "grub" command mode. You will have to copy the files to "/boot/grub" and create "menu.lst" using the Slackware setup CD or some other OS. However, if you boot a "grub" CD or floppy you can type in commands to boot Linux from the hard disk.

root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 ro
You can also put a "menu.lst" file on the boot CD or floppy with a menu entry for booting Linux on the hard disk.

After the files are copied to the hard disk, boot from the "grub" CD or floppy and press "C" to go into "grub" command mode.

You type in two commands to install grub. For example:
root (hd0,0)
setup (hd0)
The above commands are for installing "grub" to the Master Boot Record of the first hard disk when the "/boot/grub" directory is in the first primary partition on the first hard disk.

To install "grub" to the Partition Boot Sector of the first partition instead of the MBR use these commands.

root (hd0,0)
setup (hd0,0)
The nice thing about "grub" is that you don't have to re-install "grub" after you change the "menu.lst" file or the Linux kernel files. Usually you just install "grub" once and then edit "menu.lst" as much as you like to change the boot menu. Grub will even work with soft links like "/boot/vmlinuz" and use whatever the links currently point to.

If you have an unusual boot device such as "fake RAID" that LILO can't handle, you may still be able to install "grub" from "native" command mode by booting the grub boot CD or floppy. You also need the required root device and file-system drivers in the kernel or "initrd" so that the Linux kernel can mount the root file-system. I've used either "dmraid" or "mdadm" on Slackware 64-bit with "grub" to boot the kernel and "initrd".

Last edited by Erik_FL; 02-28-2013 at 11:43 PM.
1 members found this post helpful.
Old 03-01-2013, 04:39 AM   #5
Senior Member
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, Slackware
Posts: 2,126

Original Poster
Rep: Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086
Thanks for all the detailed information, guys. I admit I only wanted to give GRUB a spin because unlike LILO there's no 15-character limit to the entry labels. But given the serious other limitations of the software, I guess I'll stick with good old LILO and be happy with entry labels like "MLED64-14.0" instead of "Microlinux Enterprise Desktop 14.0 64-bit".


Old 03-02-2013, 07:14 PM   #6
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 1,809

Rep: Reputation: 235Reputation: 235Reputation: 235
You may not be able to compile grub legacy, but you can definitely use grub2. I just installed it yesterday on my cousin's laptop. He had a fresh installation of slackware64-14.0 and wanted grub on it.

I used sbopkg to compile and install it. You need to queue up the 3 packages it needs: gnu-unifont, os-prober and help2man then add grub2 to the queue last. Once it is finished downloading, building & installing these 4 packages [less than 5 minutes], it is ready to go. All you need to do is run these two commands:

# grub-mkconfig -o /boot/grub/grub.cfg
and then

# grub-install
It auto-detects all of the operating systems you have installed and adds the appropriate entries to the config file.

At first I wasn't confident about doing this, because I've been using LILO since, well, forever, but it worked...

Dunno how it works on an UEFI/GPT system, but on an old-school BIOS/MBR it works very well.
Old 03-02-2013, 11:02 PM   #7
Registered: May 2009
Location: australia
Distribution: slackware
Posts: 177

Rep: Reputation: 27
grub setup

Originally Posted by slackass View Post
I've been using grub 0.97 from 32 bit /exta on Slack64 systems by installing to a separate very small, unmounted partition.
I have used this setup with grub0.97 as a boot manager and load each loader to the specific os. I also have Grub4dos setup this way, on a different pc and do not see a difference between it and grub 0.97?
Old 03-03-2013, 06:27 AM   #8
Senior Member
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
If you find lilo to be inadequate for your purpose you might want to give syslinux a try.
It's a modern bootloader based on the simplicity of lilo.
You will have to do some stuff manually though cause there is no automated way that i know of to make it work as a bootloader on Slackware yet.



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
[SOLVED] Overwriting the Ubuntu 64 bit partition with installation of 32 bit version brantkings Ubuntu 7 09-12-2011 12:12 PM
10.3 32 Bit Realtek HD Audio Fixed - but will 64 bit version work 1kyle Suse/Novell 1 06-26-2008 06:36 PM
Can you dist upgrade a 32 bit version of debian to 64 bit? Zaskar Debian 1 03-06-2008 10:50 PM
How does the 64 bit version handle interacting with 32 bit programs? purelithium Mandriva 1 11-13-2005 06:16 PM
Which version of 32 bit redhat will install on IBM xSeries 366 (64 bit)? Hello123 Linux - Hardware 2 09-14-2005 06:50 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration