LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2012, 11:39 PM   #1
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 393

Rep: Reputation: 81
[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:
Code:
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:
Code:
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:
Code:
grub
grub> root (hd0,6)
grub> setup (hd0,6)
grub> quit
he, he, he!
 
Old 09-30-2012, 12:35 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
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.
 
  


Reply



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

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

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

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