LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-29-2006, 06:01 PM   #1
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Rep: Reputation: 15
Installing GRUB - Slackware 10.2


Hello everyone,


I need help for Installing GRUB 1.93 on Slackware 10.2...

I want to install GRUB on Slack 10.2 b/c I overclocked my comp and LILO can't boot Linux when its overclocked...

Before, I was on Fedora Core 4, and GRUB was able to boot Fedora Core 4 under my overclocked PIII... So that's why I want to install GRUB...
And YES, I did some searches on Google, but its so coplicated, im not very friendly with the installation of GRUB, b/c on FC4, it was automatic...

On my comp, GRUB is compiled, now I have to use the "grub-install" script..,

So can you tell me what commands to do to install GRUB on my computer...

I want to do a dualboot Windows XP / Slackware 10.2

Windows XP is on /dev/hda1
The root (/) directory of Slackware is /dev/hda2
My kernel image is located in /boot/vmlinuz
Im using the newer 2.6.17.5 kernel...

Can you tell me what to do with teh grub.conf and all these things?

Oh and, I heard GRUB was better than LILO... Is it true?

Thanx alot

Blue
 
Old 07-30-2006, 11:35 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Here is an example grub.conf:

# Nick's GRUB config
default 0
timeout 60
splashimage=(hd1,2)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.17
root (hd1,2)
kernel /boot/linux-2.6.17-gentoo-r4 root=/dev/hdb3

title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

The "default 0" line tells GRUB which entry to boot as the default. 0 corresponds to the first entry, 1 to the second and so on. So here, the default is Gentoo.

"timeout x" - x is the number of seconds to wait before booting the default.

The "splashimage" line sets the background to the image specified, clearly this is optional!

Now on to the important info: GRUB counts disks and partitions from 0 using (hdx,y), where x corresponds to the disk and y the partition. So, /dev/hda would be written as hd0 and /dev/hda1 is (hd0,0). For /dev/hda2, it'd be (hd0,1).

For your Linux entry, the root "(hdx,y)" line specifies the partition on which the kernel image resides. If /boot is not on a separate partition to / itself, then this will be the same as your root partition (/dev/hda2 in your case). The "root=/dev/hdxy" in the kernel line specifies the root partition. Since I don't have /boot on a separate partition to /, I have "root (hd1,2)" and "root=/dev/hdb3", i.e. those are the same.

The kernel line specifies the image name, so you'll want "kernel /boot/vmlinuz" if that's what your image is called.

So, your Linux entry should probably look something like this:

title=Slackware Linux 10.2
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2

Your Windows entry will probably be the same as mine, since I also have mine on /dev/hda1.

After editing the file, save it and run "grub-install /dev/hda".

Hopefully that'll work .
 
Old 07-30-2006, 11:40 AM   #3
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,751
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Darn! Multitasking again and Nylex beat me to it. I would suggest that you start by reading the GRUB manual before you start. I would never recommed doing anything to your computer unless you understand what you're doing.
 
Old 07-30-2006, 12:02 PM   #4
commander.cb
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Rep: Reputation: 15
ok

HOw about trying the legacy grub - 0.9 or whatever .
it will do the job just the same.

..just a idea ...

slackware-10.2/extra/grub

title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1




title=Gnu Linux 2.6.17
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2

should be close
grub is kinda a pain - but lilo is FAR worse.
 
Old 07-30-2006, 03:46 PM   #5
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 15
WoW guys thanx but...
Im suppose to have "menu.lst" in /boot/grub, but I DONT have it...
Or is it only on Fedora?

And for the legacy GRUB, why using it?
I have the 1.93, and its newer, so better, no?

And does GRUB can work on Slackware?

Thanx

Blue

Edit : Can you show me your menu.lst ?

Last edited by BlueSpirit; 07-30-2006 at 04:35 PM.
 
Old 07-30-2006, 07:53 PM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,751
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Here's a link to a multi-boot menu.lst file. It is also referred to as grub.conf and usually (at least in newer distros) menu.lst is a link to grub.conf.

If you have a grub.conf file, then make a link to it called menu.lst in the /boot/grub directory. Menu.lst is actually the file that GRUB is looking for.

Newer isn't always better. You should probably ask yourself why the 0.9* versions are the ones being used by the distro maintainers. It's probably because the older ones have most of the bugs worked out. But, if you want to live on the edge at the risk of not being able to boot your machine, that's OK too.
 
Old 07-30-2006, 08:00 PM   #7
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 15
OK I fixed my problem...
But I have another...



Now, when I boot on GRUB, I see the menu with the 2 entries (Slackware 10.2 and Windows XP), but when I press the arrows to scroll select the second entry, It does't work...
I mean : The arrows doesn't work to scroll down an entry...
But, If I press E (to "edit") on an entry, in the little editor, the arrows WORK, I can scroll down a line...

What's the problem?

Thanx

Blue
 
Old 07-30-2006, 11:00 PM   #8
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 15
OOPS...
OK after trying many versions into GRUB2, I decided to take the Legacy 0.97 version, and WOW!, its working!
Boots Linux or WinXP perfectly, and fastly...
I like GRUB alot more than LILO...

Thanx guys!

FINALLY, after 5 weeks trying to resolve my booting problems (it started with my problems with LILO), FINALLY, GRUB rescue ME!

Thanx GOD!

Blue...
 
  


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
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM
Installing GRUB/Slackware 10 with Win 2k Pro Roblobob Linux - Newbie 6 09-30-2004 06:16 AM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 05:55 AM
Grub in Slackware bongski55 Slackware 2 06-16-2003 07:40 PM
Slackware 8.1 and GRUB StevenPUlrick Slackware 10 02-16-2003 01:02 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration