Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-30-2012, 12:39 AM   #1
Registered: May 2008
Location: Republic of Texas
Posts: 300

Rep: Reputation: 53
[solved] grub (legacy) and slackware-64

Well now - I always wondered why we didn't have any legacy grub on slackware-64 - in a previous thread (which I now can't find), I was told it will _not_ compile under 64-bit. Fair enough - but archlinux has legacy grub on their 64-bit version - only ... it turns out that it is actually the 32-bit version - statically linked!!

So - in order to have my beloved legacy grub on slackware-64, all I did was the following: (please note, I use _one_ and only one partition for each distro - so everything belongs to the root filesystem)
Also, I was using my archlinux grub/distro just incase - haven't tried slackware's yet.
So here goes:
mount /dev/sda7 /mnt/hd   # mounting my slackware-64 partition from arch
mkdir /mnt/hd/boot/grub
cp /usr/lib/grub/i386-pc/* /mnt/hd/boot/grub
vi /mnt/hd/boot/grub/menu.lst
So - my menu.lst now looks like the following:
default 0
timeout 5
title slackware-14-64 (huge)
  root (hd0,6)
  kernel /boot/vmlinuz ro root=/dev/sda7
title slackware-14-64 (generic)
  root (hd0,6)
  kernel /boot/vmlinuz-generic-3.2.29 ro root=/dev/sda7
  initrd /boot/initrd-generic-3.2.29.gz
And finally, just install grub on the partition:
grub> root (hd0,6)
grub> setup (hd0,6)
grub> quit
he, he, he!
Old 09-30-2012, 01:35 PM   #2
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544
I use grub legacy as well and have for as long as I haved Linux based systems. I maintain grub in 13.1 32-bit system. Although I have read that grub legacy won't build in 64-bit, grub has no problem booting 64-bit systems. I multi-boot between 13.1 32-bit and 14.0 64-bit using grub legacy.


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] Will Grub legacy or Grub 1.9 find PCBSD? alfredo10 *BSD 2 08-01-2012 09:29 AM
[SOLVED] Dual Boot Hardy and Slackware - how to set up Legacy grub? ahzthecat Ubuntu 5 06-08-2010 03:43 AM
How do I need to format grub entry to boot from grub2 into grub legacy? mitchell7man Linux - Software 6 04-03-2010 04:03 AM
GRUB (Legacy) Configuration uNiVerse555 Linux - Newbie 1 01-25-2007 11:19 AM
Grub Legacy or Grub2? RAVC Linux - Software 2 01-21-2006 10:43 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration