LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-10-2007, 07:54 AM   #1
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Grub instead of LILO - before reboot


Tried to search one older thread that, if I remember correctly, had something to do with this. I couldn't find it, so I'll post this newer one (also to make another thing clear).

Shortly: when installing Slackware it still has LILO as default. I intend to use GRUB, and so I'll have to install LILO first and then overwrite it after rebooting. That's too much (for me anyway) so..how do I install GRUB after setup before rebooting?
Code:
grub-install /dev/hda
does not seem to work, it complains something about not finding suitable /boot (I don't remember the exact phrase, but if you need it, I could probably get it later).

The other thing is that if there's Linux+GRUB on a harddisk and the MBR happens to get trashed (I do use MBR for a reason), for example because of a Windows installation, I can use a bootdisk to boot the OS ("rescue mode" or something) but again doing grub-install doesn't work. Creating a GRUB bootdisk isn't possible since there's no floppydrive available and I wouldn't like to waste a cd for that (if it even worked). grub-install works perfectly from a working, booted Linux (like my Slackware), but if it's booted off a live-cd of some kind (or "rescue mode"), it complains about /boot even though I've mounted the disk filesystems and chroot'ed..

Any ideas (thanks already, if any)?

Last edited by b0uncer; 07-10-2007 at 07:56 AM.
 
Old 07-10-2007, 09:59 AM   #2
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
You might want to try out

Code:
# grubconfig
Should give you a straightforward menu setup for it.

And by the way, under Slackware 12 nowadays you can create a boot USB-stick, which is nice as most newer PCs don't come with floppy drives any more (sadly). Another possibility would be to install grub itself onto the stick for safekeeping. If anything happens to your MBR, shove in the stick, make sure the configuration is still valid for your system, and boot.

-A
 
Old 07-10-2007, 11:26 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Original Poster
Rep: Reputation: Disabled
Quote:
If anything happens to your MBR, shove in the stick, make sure the configuration is still valid for your system, and boot.
That does sound handy, yes, but I dislike the idea of spending an usb stick for that purpose only..stores nowadays sell 256MB+ sticks, and GRUB hardly uses that much. In addition I dislike usb keys because they're just in the way less than cds, but more than nothing..

I forgot to mention I did try to run 'grubconfig', which works a bit like 'liloconfig' but that didn' work either (exit with the same error about /boot). In the end I did use 'liloconfig' to install LILO and it ran just fine; this leads me to think that even though I had chroot environment, GRUB couldn't access /boot for some reason. That strikes me odd, because it should have (I tried manually that the access was ok).

But basically it should be sufficient to just mount /boot (and root?) and run grub-install chrooted?
 
Old 07-10-2007, 12:19 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
grubconfig will fail if /boot is mounted. grubinstall can be used. You'll need to copy the config files and stages into /boot/grub.
 
Old 07-10-2007, 12:36 PM   #5
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Original Poster
Rep: Reputation: Disabled
Quote:
grubconfig will fail if /boot is mounted. grubinstall can be used. You'll need to copy the config files and stages into /boot/grub.
All right. One more thing: at some point I managed to get another error instead of the /boot one, telling me I didn't have stage_1.5 (or something like that) and that I'd need to make sure it's in the right directory. GRUB was in this case already installed (so everything was supposed to be in place, just MBR was not right), but I couldn't find the asked file anywhere, not with find nor with (s)locate. Any clues?
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
LILO reboot a particular image Kocil Linux - Software 15 03-10-2010 10:05 AM
Bootloader Lilo competing with Grub, Grub wins vcfstephen Slackware 3 05-11-2007 12:05 AM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Lilo reboot K1d Slackware - Installation 10 10-13-2004 06:35 PM

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

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