Installing GRUB - Slackware 10.2
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 18.104.22.168 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?
Here is an example grub.conf:
# Nick's GRUB config
title=Gentoo Linux 2.6.17
kernel /boot/linux-2.6.17-gentoo-r4 root=/dev/hdb3
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
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 :).
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.
HOw about trying the legacy grub - 0.9 or whatever .
it will do the job just the same.
..just a idea ...
title=Gnu Linux 2.6.17
kernel /boot/vmlinuz root=/dev/hda2
should be close
grub is kinda a pain - but lilo is FAR worse.
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?
Edit : Can you show me your menu.lst ?
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.
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?
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...
FINALLY, after 5 weeks trying to resolve my booting problems (it started with my problems with LILO), FINALLY, GRUB rescue ME!
|All times are GMT -5. The time now is 11:11 AM.|