LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   install with grub (https://www.linuxquestions.org/questions/slackware-installation-40/install-with-grub-414882/)

aslocum 02-13-2006 07:55 AM

install with grub
 
i really want to test slack 10.2 but i dont want slack to install lilo...
can anyone write down the grub.conf for a slack 10.2 install?
is there any special boot param or just

title Slackware 10.2
root (hd0,0)
kernel /vmlinuz-whatever root=/dev/sda4 ro quiet vga=0x31B
initrd /initrd.img-whatever
savedefault
boot

thx :)

aus9 02-13-2006 08:04 AM

some tips

no need for boot that is for command mode only
no need for savedefault unless you made a mistake on which distro/kernel to boot into
delete quiet so you have verbose messages

I have a slackware type in my tut but more critical is to know why you have that root command from the tut

Woodsman 02-13-2006 06:11 PM

See if this helps:

Installing GRUB

aus9 02-14-2006 06:46 AM

that link has a 2.4 series kernel and has a parameter of scsi emulation for your your burner....it should not be necessary anymore

Woodsman 02-14-2006 03:05 PM

Quote:

it should not be necessary anymore
Because. . .?

aus9 02-14-2006 08:22 PM

http://www.brunolinux.com/02-The_Ter...Kernel_26.html

Bremsstrahlung 02-15-2006 07:14 AM

A good cheap roundabout way to get grub installed and working on your machine is this: finish the Slack installation with no boot loader. Get a linux live cd (Knoppix), and boot up from that. Mount your boot partition in Knoppix. Now, Knoppix has two programs. The names may vary, but there's one to install grub in a target directory, and one to generate a grub.conf file.

Run the grub install program from root in knoppix and target the proper directory in your slack boot partition (you might have to make it NOT read only first). Once that's done, copy the program that generates the grub.conf file into /usr/sbin of your boot partition (don't worry, this won't cause any problems). Not chroot into that partition and run the program. BAM! Instant grub.conf. A couple of tweaks and you're good to go!

BobL 02-15-2006 11:40 AM

Curious....
 
Hi all,

Just noticed that this grub question might help me answer a question of my own. If I am posting this in an inappropriate place, I apologize.

My grub conf looks like this (borrowing some from aslocum)

root (hd0,0)
kernel /vmlinuz-whatever root=/dev/hda3 ro vga=773
initrd /initrd.img-whatever

and the linux system boots just fine. However, I had thought that the root parameter has to match the root line in the kernel line... as below

root (hd0,2)
kernel /vmlinuz-whatever root=/dev/hda3 ro vga=773
initrd /initrd.img-whatever

Since Grub counts from 0 on up, the 3rd partition would be 2 ( 0,1,2).

If I use that, however, the system hangs with an Error 15 file not found.

Just hoping someone has run across this before, or that I have missed something REALLY obvious!

Thanks.

BobL

Woodsman 02-15-2006 06:47 PM

A lot of people still use the 2.4 series kernel. I for one intend to continue doing so until Slackware is officially released with 2.6 support. I simply do not possess the time to tinker with the new kernel and with old boxes, the 2.4 kernel still works well.

Quote:

If I use that, however, the system hangs with an Error 15 file not found.
I once ran into similar issues. This journal entry shares the story, although not providing complete solutions:

Migrating to GNU/Linux-Day 31

Just a thought about your menu.lst config file. I don't know your partition scheme, but GRUB and kernel images usually are installed in the /boot directory. Thus, a first guess is that your entry for:

kernel /vmlinuz-whatever root=/dev/hda3 ro vga=773

possibly should read:

kernel /boot/vmlinuz-whatever root=/dev/hda3 ro vga=773

If your vmlinuz image files are located in the /boot directory then that would explain your "File not found" error messages.

aus9 02-16-2006 05:32 AM

the question on root (hdX,y) and the root= is covered in my ummm tutorial heh heh

the first sets the partition where the grub booting files are and the root= sets the partition that / is

BobL 02-16-2006 12:50 PM

Oops,

Should have seen that. Makes sense too, as I do have a /boot partion. Oh well, it WAS something obvious.
Thanks for the help! :)


All times are GMT -5. The time now is 09:55 AM.