LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 04-21-2007, 12:41 AM   #1
DKMtnDrifter
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
GRUB error 15: How to fix?


I'm relatively new to Linux, and I've been messing around with it a lot lately. Well, today I installed Slackware, and it had worked before, but this time it says

GRUB loading, pleae wait...
Error 15

I've looked around online for some help, but I can't seem to find a way to fix it. Can anyone help?
 
Old 04-21-2007, 02:09 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
From the GRUB manual:

15 : File not found
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

So, check that the path to your kernel image is correct.
 
Old 04-21-2007, 11:35 AM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
check '/boot/grub/menu.lst' and make sure everything looks right.
 
Old 04-21-2007, 01:10 PM   #4
DKMtnDrifter
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
check '/boot/grub/menu.lst' and make sure everything looks right.
how can i look at this file if i can't get to a command line?
 
Old 04-21-2007, 01:28 PM   #5
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
grub has some simple commands build in. try help and more.
 
Old 04-21-2007, 01:33 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,192

Rep: Reputation: 120Reputation: 120
"how can i look at this file if i can't get to a command line?"

I suggest that you boot a liveCD such as knoppix, mount your filesystem, and take a look.
 
Old 04-21-2007, 01:33 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,794

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Quote:
Originally Posted by DKMtnDrifter
GRUB loading, pleae wait...
Error 15
So you never see the grub menu ???.
Error 15 would be (very) odd at that stage. Possibly means menu.lst never even got built.
Re-install grub. Should be able to do it from a chroot if the rest of the install is o.k. - ISTR Pat had some instructions for booting the disk install on the CD. Been quite a while since I looked at Slack though.
 
Old 04-21-2007, 02:20 PM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You should be able to use tab completion in the GRUB shell to find your kernel image.
 
Old 04-21-2007, 03:28 PM   #9
DKMtnDrifter
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
am i supposed to be able to open 'boot/grub/menu.lst' in a text editor? i can't. i tried with gedit, and i got a message that said 'cannot open display: (null)'. i tried with emacs, and i got the message 'file exists, but cannot read'.

p.s. i am using gentoo livecd
 
Old 04-21-2007, 04:39 PM   #10
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
You may need to re-install grub, but first try:

1) Are you sure you are root on the live CD ? Make sure you are root and have permission to access the file.

2) If you can access the file and it says the same thing, get rid of the old one and write another. Here's an example:

Code:
# Start GRUB global section
timeout 10
#color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
  title Linux on (/dev/hda1)
  root (hd0,0)
  kernel /boot/vmlinuz root=/dev/hda1 ro vga=normal
# Linux bootable partition config ends
title --- For help press 'c', type: 'help'
root (hd0)
title --- For usage examples, type: 'cat /boot/grub/grub.txt'
root (hd0)
3) If that don't work, re-install grub.
 
Old 04-21-2007, 05:53 PM   #11
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,192

Rep: Reputation: 120Reputation: 120
Quote:
Originally Posted by DKMtnDrifter
am i supposed to be able to open 'boot/grub/menu.lst' in a text editor? i can't. i tried with gedit, and i got a message that said 'cannot open display: (null)'. i tried with emacs, and i got the message 'file exists, but cannot read'.

p.s. i am using gentoo livecd
Did you mount your disk filesystem? If not, there's no way you're going to be able to edit it.

mount /dev/hda /mnt (or hdb or sda or whatever it is)
gedit /mnt/boot/grub/menu.lst
 
Old 04-21-2007, 06:52 PM   #12
ryanoa
Member
 
Registered: Jan 2006
Location: Santa Cruz, CA
Distribution: Slack 10.2 and 11.0
Posts: 102

Rep: Reputation: 15
Are you dual booting with another os on this box? If so, which one, and does it boot?

If Slackware is the only os on this box then grub shouldn't even be there unless you added it after the install, or it exists from some previous linux install and you didn't install lilo (the default bootloader) to the mbr.
 
Old 04-21-2007, 10:15 PM   #13
DKMtnDrifter
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Did you mount your disk filesystem? If not, there's no way you're going to be able to edit it.
I'm not really sure what "mounting" means exactly, except that I've never done it or been prompted to do it in any Linux installer. So my guess would be that I haven't mounted my disk filesystem, but maybe it was done automatically.


Quote:
Are you dual booting with another os on this box? If so, which one, and does it boot?
I'm not dual booting with another OS, but I have switched from Slackware to Gentoo and back, and reinstalled Slackware several times, for whatever reason (possibly my noobness). Slackware installed GRUB automatically, I think. It let me choose if I get to see the penguin on the splash sreen.

Quote:
If you can access the file and it says the same thing, get rid of the old one and write another.
I found another file in /boot/grub directory that was named "sample" something or other and it had the exact lines:

# Linux bootable partition config begins
title Linux on (/dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 ro vga=normal

in it.

Anyway, the problem came up when I switched from Gentoo back to Slackware, so I figured it would be fine if I just used Gentoo. So Gentoo works, but I still would like to figure out this whole thing. Thanks for all the help.
 
Old 04-21-2007, 10:20 PM   #14
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Slackware does NOT install grub automatically, it installs lilo automatically (if you tell it to). I'm betting you didn't install it to the MBR. You probably should.
 
Old 04-21-2007, 10:21 PM   #15
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,192

Rep: Reputation: 120Reputation: 120
Generally, when you're using a liveCD, the / directory, i.e. /root, /boot, /home, etc, are those of the liveCD, and not of that for your filesystem. The liveCD will usually mount your filesystem but as readonly. You need to mount it explicitly. From a terminal window in your liveCD, do the following:
Code:
su
mount /dev/hda1  /mnt     (or /dev/hda2 or whatever it is you need to mount)
gedit /mnt/boot/grub/menu.lst
Then you can make any changes you need to the actual menu.lst file. I don't know anything about gentoo or slack, so I'm afraid someone else will probably have to pick it up from here.
 
  


Reply

Tags
error, grub


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is Grub loading error 21, and how can I fix the problem! logiplex Linux - Software 26 06-30-2009 03:20 PM
GRUB Error 21. Should I use BIOS to fix it? dourk General 2 12-29-2006 07:55 AM
Quick-Fix for Grub error 17 eagles-lair LinuxQuestions.org Member Success Stories 0 07-07-2006 01:17 AM
How do I fix the Grub Error 18!?!?! pastordan Linux - General 3 03-09-2006 07:20 PM
grub or windows error and how to fix netquest1 General 2 04-30-2004 02:27 AM


All times are GMT -5. The time now is 11:54 PM.

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