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 12-14-2008, 05:31 PM   #1
fdahl_009
Member
 
Registered: Oct 2005
Location: Norway
Posts: 148

Rep: Reputation: 16
Slackware 12.2 and grub


Hi all!

I am now downloading 12.2 dvd. Cant wait to try it out!

On the pc I want to try it I have an mbr that I do not want to change, have grub setup and are having 4 os's on the same machine.

Can I skip installing the bootloader in the installation?

How do I then change the grub to boot my slackware instead?

I now have archlinux on sda5. This is where the whole / is, incl. /boot.
From archlinux installation that made the grub install.
I will install slackware over my archlinux. So it will be on sda5. The mbr is ofcourse on sda. Any easy steps on setting up menu.1st to boot my slackware install?


Fredrik.
 
Old 12-14-2008, 05:39 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You can, but you'll find life much easier if you install lilo to the root partition of your new slack partition, and simply chainload it like you do for Windoze.

Where is the active /boot ? - it'd better not be on that Arch system.
 
Old 12-14-2008, 06:14 PM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645

Rep: Reputation: 146Reputation: 146
EDIT: Quite tired, I am, it's late here I have fixed some errors and typos here and there, to my best knowledge the post should be correct now.

If you have no other place for your /boot folder you could just install Slackware, skip the LILO install, then switch to a second console (before rebooting!).

You will have to make a folder /boot/grub (actually /mnt/boot/grub, since during installation your new system is in /mnt), install grub package (installpkg -root /mnt /var/log/mount/extra/grub/grub*tgz), copy the files from /usr/lib/grub/i386-pc/ to /boot/grub (at that moment still /mnt/boot/grub) and create a file (/mnt)/boot/grub/menu.lst (with a minor "L", not a "One"). My menu.lst slightly modified:

Code:
timeout 10
color light-gray/blue black/light-gray
default 0

title Slackware 12.1
kernel (hd0,3)/boot/vmlinuz root=/dev/sda5 ro resume=/dev/path-of-your-swap-partition vga=791
initrd (hd0,3)/boot/initrd.gz

title Floppy
root (fd0)
chainloader +1

title Windows
root (hd0,0)
chainloader +1
Of course you have to adjust the (hd...) part and the resume part, if you don't delete the latter. Keep in mind that GRUB starts counting from 0 up, so sda1 is (hd0,0) if you have no IDE drive running but only this SATA/SCSI harddisk.

If you experience any problem with that setup you should boot from CD again into your Slackware installation (see the line at the boot prompt and substitute according to your Slackware partition). In this case something like

Code:
grub

# the following in grub console ....

grub>root (hd0,3)
grub>setup (hd0)

# pray that GRUB says it successfully installed :)
# now type "quit" to leave GRUB console,
should reinstall GRUB to your harddisk, again assuming you have *NO* IDE disk running and that you modify according to your actual Slackware partition.


ADDENDUM: If you really want to use GRUB instead of LILO your life will become easier if you have an extra partition just to hold the grub files, kernels and initrd.gz if needed.

Last edited by titopoquito; 12-14-2008 at 06:36 PM. Reason: Cleanup of code
 
Old 12-14-2008, 08:31 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
Can I skip installing the bootloader in the installation?
Yes. I have been using grub for years and never install lilo to my production box.

Quote:
How do I then change the grub to boot my slackware instead?
Edit /boot/grub/menu.lst. There is no automagic method. Well, there is a kgrubedit, but the package is not included with Slackware

If you maintain your original operating system, then grub will find the menu.lst and bootloader stage files in the same location. If not, then do not reboot from the installation CD without first installing grub from the extra branch.

But don't panic. If you reboot you can still boot the box with the installation CD and install grub.

After installing grub and editing menu.lst, be sure to run grub-install /dev/hda.

I prefer to maintain a separate boot partition so I never lose my grub menu.lst and bootloader files --- or my kernel files.
 
Old 12-15-2008, 01:10 AM   #5
fdahl_009
Member
 
Registered: Oct 2005
Location: Norway
Posts: 148

Original Poster
Rep: Reputation: 16
Thanks. Will see how I choose to do this.

I have XP, Vista, OS X and Linux on the same machine. And after I reinstalled the archlinux the last time, I spent hours trying to get all the os's to boot again.

But if I install lilo, I just need to change the configuration afterwards?
It does not messup the vista bootloader and so on?
 
Old 12-15-2008, 10:45 AM   #6
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
I came across an issue with my new Slackware install and grub which is worth being aware of.

I have been running Slackware 12.0 on sdb1. Grub was installed with menu.lst in /boot/grub of sdb1.

I made a fresh install of slackware 12.2 to sdb3, ignored lilo, and thought that I would get it booting by editing menu.1st on sdb1 which is my usual practice.

This gave me a file error on booting to slack 12.2. The problem seems to be that there is an incompatibility between the grub version packaged with 12.0 and with higher versions of slackware. Something to do with inode size.

What I did to rectify things was install the grub package from slackware12.2/extras into my 12.0 installation and then ran grub-install sdb from there.

slackware 12.2 then booted fine.
 
Old 12-15-2008, 11:51 AM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
The problem seems to be that there is an incompatibility between the grub version packaged with 12.0 and with higher versions of slackware. Something to do with inode size.
Apparently Slackware changed to an inode size of 256 bytes for ext2 and ext3 filesystems which breaks some versions of grub. This used to be 128 bytes and still is in a lot of other distros.
 
Old 12-16-2008, 01:44 AM   #8
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
http://rkrishna.tp.googlepages.com/slackerbasics#reeb

this is an old page but you can easily install grub before the first reboot, dont install lilo but exit the setup,.. mount the partition as mentioned in the link above... install grub from extra.....run grubinstall... use one of the menu.lst file.

Last edited by rkrishna; 12-16-2008 at 02:49 AM.
 
Old 12-19-2008, 11:38 AM   #9
fdahl_009
Member
 
Registered: Oct 2005
Location: Norway
Posts: 148

Original Poster
Rep: Reputation: 16
Thanks for all answers.

I just decided to install with lilo the normal way. Used expert configuration and setup for slackware, winxp, winvista and osx as an win entry. Just osx that did not boot. So I will now try to look for an solution to get osx booting as well..

EDIT: Osx is on hda3 and I have setup that in lilo.conf, but when I choose it it boots winvista, hda2...

Last edited by fdahl_009; 12-19-2008 at 11:44 AM.
 
Old 12-19-2008, 12:23 PM   #10
fdahl_009
Member
 
Registered: Oct 2005
Location: Norway
Posts: 148

Original Poster
Rep: Reputation: 16
Now it is working. This is what I did.

Installed slacware 12.2 from dvd.
Installed lilo with installer.
Booted into slackware, installed grub from /extra on dvd.
Setup grub with grubconfig, manually configured the os x entry as an win entry.

Now its working.


Also, with grub, I do not have the irritating thing where lilo is making booting slackware....> .... Right after it is pressed.
This part took 40sec before it started booting, with grub it starts right away!

This is great!
 
Old 12-19-2008, 01:56 PM   #11
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
You could also have done without the install of lilo during the set up. Once completed with installing you can 'chroot /mnt' and install grub that way... However, you also have to have the file visible from that chroot environment. so it would really be

Code:
umount /dev/cdrom
mount /dev/cdrom /mnt/mnt
chroot /mnt
upgradepkg --install-new /mnt/extra/grub/grub*.tgz
then set up grub however.
 
Old 12-19-2008, 03:41 PM   #12
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by fdahl_009 View Post
Hi all!

I am now downloading 12.2 dvd. Cant wait to try it out!

On the pc I want to try it I have an mbr that I do not want to change, have grub setup and are having 4 os's on the same machine.

Can I skip installing the bootloader in the installation?

How do I then change the grub to boot my slackware instead?

I now have archlinux on sda5. This is where the whole / is, incl. /boot.
From archlinux installation that made the grub install.
I will install slackware over my archlinux. So it will be on sda5. The mbr is ofcourse on sda. Any easy steps on setting up menu.1st to boot my slackware install?


Fredrik.
I use both and have been for years ilike the fact that in grub.
The backup copy of the MBR for drive '/dev/hda' is
# here '/boot/grub/mbr.hda.4016'. You can restore it like this.
# dd if=mbr.hda.4016 of=/dev/hda bs=512 count=1
4016 is generated by grub.
Lilo is wonderful I use it to. and if you keep your system simple both can save you if the MBR is corrupted. I see some of the new selinux stuff now days I have to get a note book out just to right down the boot id for a mbr failure. but all else fales if you put a grub in the boot any grub program will read the menu.1st.
Lillo works it's good and why not have both grub saves me and lilo does too.
 
  


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 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM
slackware and grub? quaylet Slackware 6 06-26-2005 10:53 PM
GRUB and Slackware 9.1 Noogie Slackware 12 02-15-2004 03:54 AM
Slackware and Grub rharvey@cox Slackware 8 01-27-2004 03:50 PM
Help with Slackware and grub? BajaNick Linux - Distributions 1 07-31-2003 04:58 AM

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

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