LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-18-2013, 12:58 PM   #16
La VloZ
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Rep: Reputation: Disabled

You just have to download Grub2 source and compile it
All dependecies are available in slackware
I already did it i hate lilo
 
Old 10-18-2013, 01:51 PM   #17
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
Ok, so I've successfully installed all packages, including grub2. Well, all except the gnu-unifont package. I can't figure out how to download the pcf.gz package, and it's necessary for the slackbuild.
 
Old 10-18-2013, 02:16 PM   #18
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 280

Rep: Reputation: 98
This is hopefully a total miss, but i shall ask anyway.

Quote:
Originally Posted by slack_ View Post
After I configure the system, instead of starting over. I open up a new TTY ...
Did you reboot the system after install, or are you hanging right after the "exit and reboot" message in another terminal? Because in that case you should chroot the system.
 
Old 10-18-2013, 03:25 PM   #19
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I often use wget to download stuff if I'm running a terminal outside of X11. Just cd to the directory you want it in, like /root/Downloads and then type in wget plus the url of the file. If I'm in X11, I just use Midori or Firefox depending on what's installed.

Locale-gettext is a recommended dependency for help2man.

Last edited by ReaperX7; 10-18-2013 at 03:27 PM.
 
Old 10-19-2013, 07:26 AM   #20
La VloZ
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Rep: Reputation: Disabled
You don't need SlackBuild to build Grub2

Note: YOU HAVE TO BE ON ROOT TO DO THIS, YOU CAN USE SU TO GAIN ROOT PRIVILIEGES.
download Grub2 from ftp://ftp.gnu.org/gnu/grub/grub-2.00.tar.gz
Then go to the directory where you've downloaded it Then run these commands
Code:
tar xfz grub-2.00.tar.gz
cd grub-2.00
./configure
make
make install
grub-install /dev/sda # I don't know what is your hard disk, probably is /dev/sda :)
grub-mkconfig -o /boot/grub/grub.cfg
You don't need to change the prefix on configure script , Don't complicate it

On Slackware 14 you don't need to care about dependecies because its already installed
And i already did these steps because i hate Lilo

Good luck ^__^.

NOTE: If you do a kernel update probably grub won't find the new kernel image so you have just to run again the last command :
Code:
grub-mkconfig -o /boot/grub/grub.cfg

Last edited by La VloZ; 10-19-2013 at 07:32 AM.
 
Old 10-20-2013, 02:16 AM   #21
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
Thanks, but I'm pretty sure I've successfully installed grub using the other method that was mentioned. I just need to start over fresh and verify that it works...

And hope that Grub will install to my USB :/
 
Old 10-20-2013, 04:11 AM   #22
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
Ok, thus far I've successfully installed Slackware, chrooted into the system, installed all the requred packages succesfully, the mounted /dev/sdb1 on /boot, created a /boot/grub directory and grub.cfg, then ran grub-install /dev/sdb.

I've also tried running grub-install --recheck /dev/sdb, as well as grub-install --target=i386-pc --recheck /dev/sdb. Here's the error I get:

Code:
/usr/sbin/grub-bios-setup: warning: attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..
/usr/sbin/grub-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.
/usr/sbin/grub-bios-setup: error: will not proceed with blocklists
EDIT: Sorry, I thought I was editing, I did not mean to double post.
 
Old 10-20-2013, 08:22 AM   #23
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Try grub-install --force /dev/sdb may have to use grub-install --force --boot-directory=<directory that sdb1 is mounted on>/boot /dev/sdb for things to work right.

Last edited by colorpurple21859; 10-20-2013 at 08:37 AM.
 
Old 10-20-2013, 11:14 AM   #24
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
This worked for me: grub-install --force /dev/sdb. Once I changed settings in the BIOS to boot from USB, and made a few small changes in /etc/fstab, then I tested it out. It works, so this is solved AFAIK. Now I can only boot into linux from USB. Can't remember but I'm pretty sure that if I have the key unplugged it just boots straight into Windows. Thanks for the help and input everyone. Cheers.
 
Old 10-20-2013, 05:33 PM   #25
La VloZ
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Rep: Reputation: Disabled
Slack_ please make the thread as solved
 
Old 10-20-2013, 11:33 PM   #26
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
Ok I will. But I have one last question first. For some reason none of the changes I make to grub.cfg actually take effect in grub. Not only that, but in grub.cfg there is only a menuentry for Windows, none for Slackware or Advanced options. And in grub, I only see Slackware and the Advanced options entry and not the one for Windows. Did I mess something up?
 
Old 10-21-2013, 06:40 AM   #27
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
My guess is that your dealing with two grub.cfg, one in /boot/grub on Slackware root partition and one in /boot/grub on the usb key.
 
Old 10-21-2013, 12:50 PM   #28
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
Turns out you were right. Once I mounted my flashdrive after starting X there was, infact, a different grub folder with the grub.cfg. Thanks for the help everyone it's much much appreciated.

/
 
  


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
Grub freeze and trouble installing Mads Holscher Linux - General 2 02-26-2011 03:44 AM
GRUB trouble - installing to unbootable logic partition / other options Ill-Phil Linux - General 9 12-12-2008 04:20 AM
Trouble installing fd9 and now fd8, wont bring up grub config bigmart01 Linux - Newbie 13 06-02-2008 10:56 AM
Trouble installing Grub jacatone Puppy 5 03-28-2007 07:59 AM
Trouble installing grub rastiazul Linux - Newbie 3 05-15-2006 05:06 PM

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

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