LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2005, 09:27 PM   #1
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Rep: Reputation: 15
GRUB configuration


I am trying to configure GRUB for booting Windows XP, Fedora, and Slackware. All are working fine except for Slackware. Seems I have the wrong path for the vmlinuz file. Can someone tell me what the path is for that file in a default install of Slackware??
 
Old 10-02-2005, 09:46 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
/boot/vmlinuz I suppose.

If you post your grub.conf and a partition table I could help you a lot better...
 
Old 10-02-2005, 09:50 PM   #3
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
/boot/vmlinuz isn't working. Let me try it again and I'll post the error message.
 
Old 10-02-2005, 09:50 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hello,
post yr grub.conf.

anyways...default entry slackware is

image = /boot/vmlinuz
root = /dev/hda8
label = Slackware
read-only

but since u r dealing with grub.conf, so entries will be a little different

Note: slackware has lilo.conf

regards
 
Old 10-02-2005, 10:00 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Please post grub.conf and a partition table, at least for your slack partitions. If slack has a separate /boot partition then configuration will be different.

Are you even sure the slack kernel is called vmlinuz?
 
Old 10-02-2005, 10:09 PM   #6
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
Error is
13 : Invalid or unsupported executable format

grub.conf is

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd1,1)
#          kernel /boot/vmlinuz-version ro root=/dev/hdb2
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=7
splashimage=(hd1,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Redhat Fedora Core (2.6.11-1.1369_FC4)
	root (hd1,1)
	kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=REDHAT rhgb quiet
	initrd /boot/initrd-2.6.11-1.1369_FC4.img
title Windows XP
	rootnoverify (hd0,0)
	chainloader +1
title Slackware Linux
	root (hd0,4)
	kernel /boot/vmlinuz root=/dev/hda5
 
Old 10-02-2005, 10:21 PM   #7
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
OK, I don't think your kernel is called vmlinuz.

Try:
Code:
title Slackware Linux
        root (hd0,4)
        kernel /boot/bzImage root=/dev/hda5
If that doesn't work then I can walk you through some grub command line magic to find out what your kernel really is called...
 
Old 10-02-2005, 10:25 PM   #8
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
Now I'm getting file not found. What commands do I need to do to find out the kernel name?
 
Old 10-02-2005, 10:38 PM   #9
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Ok. When your in the grub menu press 'c'. This will give you a command line:
grub>

Now you want to set the root to your slack install:
Code:
grub> root (hd0,4)
Filesystem is ext2fs, partition type 0x83
Now lets see what is in /boot:
Code:
grub> kernel /boot/[Tab] # press 'tab' key here
Possible files are: foo bar baz
Now this will list all files in /boot. One must be your kernel
At this point you can:
Code:
grub> kernel /boot/fooKernel root=/dev/hda5
grub> boot
And slack should boot. Now edit grub.conf to reflect what your kernel is called.
 
Old 10-02-2005, 10:57 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,052

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
conf looks o.k. for a default Slack install.
You sure it's on hda5 ??? - same disk as Winders, whilst FC4 is on the other disk.
Is this correct ???.
 
Old 10-02-2005, 11:37 PM   #11
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
Yes, same disk as Windows.

I tried and there were only two files that appeared to be kernels, vmlinuz and vmlinuz-ide-2.4.29. Neither one worked. Both gave me the same error.
 
Old 10-02-2005, 11:46 PM   #12
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Ok, so this kernel, did you make it yourself or is it the default slack kernel?
On my system I have this:
title slackware
root (hd0,8)
kernel /boot/vmlinuz root=/dev/hda9

And it works fine. So if it is not working for you, even though the file clearly exists, I can only assume that the kernel itself is borked, and not grub.

Looks like you may have to boot slack with a rescue cd and redo your kernel.

Another idea is that sometimes automated kernel tools place the kernel in the '/' directory, so have a look using the method I showed before and see if there is a kernel like: '/vmlinuz'
 
Old 10-02-2005, 11:52 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,052

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Whoops - didn't notice it was error 13.
Only time I've ever seen that is if the wrong file was copied from ..arch/i386/boot/ after a compile.
Copy .config as vmlinuz - that sort of thing.

If this is Pats shipped system, I guess that's unlikely.
 
Old 10-03-2005, 12:09 AM   #14
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
OK, well it appears I might have to reinstall Slackware to get it to work, so I might go with another distribution all together. Any recommendations?? I want something that is actively being developed and isn't a no-name version.
 
Old 10-03-2005, 12:14 AM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,052

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Maybe before doing that, try booting your HD Slack from the Slack bootCD - it's in the doco somewhere.
I had to do it once, worked fine. Will at least prove the install itself is o.k.
 
  


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 Configuration RJDavison Fedora 4 05-21-2004 02:44 PM
Grub configuration unicef2k Red Hat 3 05-12-2004 07:25 AM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 08:16 AM
GRUB configuration jiggywiggy Linux - Software 5 09-02-2003 05:34 PM
GRUB Configuration RedHatMN Linux - Software 3 01-22-2002 08:12 PM


All times are GMT -5. The time now is 04:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration