LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-13-2014, 01:03 AM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Grub 1


Is anybody able to compile Grub 1 on 14.1?

The package from 14.0 /extra seems to work fine, but I am unable to compile Grub 1 under 14.1. I get a failure in asm.S.

Just curious.

Thanks.

P.S. Yes, I know 14.1 comes with Grub 2 and Lilo.
 
Old 06-13-2014, 01:20 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Grub-legacy may require patches to build on current systems, but you may have to scour other distributions for them.
 
Old 06-13-2014, 10:22 AM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I have been looking. I was hoping to find a distro still using Grub 1, to find the sources and patches, but no luck yet.
 
Old 06-13-2014, 11:37 AM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Gentoo has grub-legacy, you might want to take a look at it.
 
Old 06-13-2014, 11:40 AM   #5
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
I think PCLinuxOS uses it as well...
 
Old 06-13-2014, 02:39 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Gentoo might as well. They hang onto a lot of old packages.
 
Old 06-13-2014, 04:08 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,863

Rep: Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570
PCLinuxOS does as does CentOS.
 
Old 06-13-2014, 04:55 PM   #8
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 393

Rep: Reputation: 81
You should find grub (0.97) under slackware-14.0 and 'extra'
Otherwise, I have got it as a slackware package - I'll mail it to you ...
Note that grub-0.97 is _only_ 32-bit - to my (meagre) knowledge, nobody has successfully managed to compile it using 64-bit :-(

That being said - I'm a big fan of grub-legacy - use it all the time as my 'master-boot', then whenever I install a distro, I put its bootloader on the root filesystem and just chainload to it.
IMHO - the downfall of grub2 is that its trying to be all-encompassing. If you want to remove the one distro whose grub2 is on the MBR - then you need to install another one there ...
'ts true what they say - grub2 is an OS looking for a decent bootloader! ;-)

Last edited by perbh; 06-13-2014 at 04:59 PM.
 
Old 06-13-2014, 06:55 PM   #9
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
32-Bit

Quote:
Originally Posted by perbh View Post
Note that grub-0.97 is _only_ 32-bit - to my (meagre) knowledge, nobody has successfully managed to compile it using 64-bit :-(
As I type and show my ignorance of grub (and other topics) ...

As a boot loader it shouldn't matter it it's 32 or 64 bit. It's independent of the OS to be installed, correct?

Perhaps it would matter if one only had a 64 bit resources available to build grub.

Would there be an advantage to having grub compiled as 64 bit?

You were probably just making an observation, but it made me wonder. Just asking.
 
Old 06-13-2014, 09:25 PM   #10
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
I think PCLinuxOS uses it as well...
I found an srpm from PCLOS. Contains a buttload of patches, far more than Slackware.

Quote:
You should find grub (0.97) under slackware-14.0 and 'extra'
Uh, yeah, I know, I mentioned that in my original post. That is where I got the sources to compile.

Quote:
nobody has successfully managed to compile it using 64-bit :-(
Yeah, I know. I am using 32-bit 14.1 to compile. My SWAG is gcc gets stricter with each release and that now causes the build failure.

Quote:
As a boot loader it shouldn't matter it it's 32 or 64 bit. It's independent of the OS to be installed, correct?
Operationally, Grub 1 is system agnostic. Just doesn't compile on 64-bit. I am guessing because part of the code is assembler.
 
Old 06-13-2014, 09:35 PM   #11
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 393

Rep: Reputation: 81
Quote:
As a boot loader it shouldn't matter it it's 32 or 64 bit. It's independent of the OS to be installed, correct?
Absolutely correct - you can easily boot a 64-bit distro. I mentioned the fact cuz Woodsman had trouble compiling it - so I just wondered if he was trying a 64-bit compile ...
Quote:
Just doesn't compile on 64-bit. I am guessing because part of the code is assembler
That has always been my understanding as well ...

Last edited by perbh; 06-13-2014 at 09:37 PM.
 
Old 06-13-2014, 09:46 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,251

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by Woodsman View Post
Operationally, Grub 1 is system agnostic.
Not if it needs to boot a non-supported filesystem. The change to 256 byte inodes for ext4 (and later ext3) exposed that. Or btrfs.
What about gpt formatted disks ?.

These are but a couple of the reasons grub legacy was abandoned. If you choose to pursue non-supported software, you have to expect dramas.
 
Old 06-14-2014, 01:37 AM   #13
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
These are but a couple of the reasons grub legacy was abandoned. If you choose to pursue non-supported software, you have to expect dramas.
Uh, no, I expect to poke around the web looking for help and solutions. Oh, wait, I am doing just that in this thread.
 
Old 06-14-2014, 09:45 AM   #14
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
I think I wouldn't hesitate to use the pclinuxos sources including all the patches. You could also use sources from fedora -even if a couple of years old. LFS or gentoo probably use less patches, if you prefer.
I'm still using grub-legacy -a version whose patches I have picked and chosen over the years.
 
Old 06-14-2014, 10:07 AM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
LFS switched to Grub-2.x a while ago, but the patches for legacy are still available and should allow for a compile in a 64-bit environment:

http://www.linuxfromscratch.org/patches/downloads/grub/

That should help, but if it conflicts with glibc or GCC you might be stuck.
 
  


Reply


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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 04:02 PM
GRUB GRUB GRUB.... all over the display while booting with USB. kapsikum Linux - General 5 01-08-2010 04:29 AM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

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

All times are GMT -5. The time now is 03:13 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