LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-04-2009, 01:07 PM   #1
Skyhooker
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
Puppy Linux/GRUB error 22


Hi, everyone,

First post here - thanks in advance for any help!

I'm trying to do a full install of Puppy Linux 4.21 on an old Dell laptop that has some bad sectors on the HDD. I set aside an unformatted partition at the beginning of the drive where the bad sectors showed up using GParted. The installation goes off with no problems, but when I reboot GRUB gives error 22. Googling the error list gives this:

22 : "Must load Multiboot kernel before modules"

This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of location of such modules to a non-Multiboot-aware kernel.


I'm not actually doing a multiboot, but I'm guessing that GRUB sees that blank partition as a space taken up by another OS when I use the default setup options for GRUB in the Puppy install process. The drive I installed Puppy to shows as sda2. I'm guessing I have to edit the menu.lst file in GRUB, but I would really appreciate some help in doing so. If you need any more info, please let me know.

Thanks!

Last edited by Skyhooker; 10-06-2009 at 02:57 PM.
 
Old 10-04-2009, 01:23 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Show us the menu.lst.

My guess is Puppy has so many variations of installation and you might have picked the wrong one.

Boot up Pupply CD and in terminal and list out its menu.lst (or grub.cfg)
Code:
mkdir /mnt/sda2
mount /dev/sda2 /mnt/sda2 
ls /mnt/sda2/boot/grub/menu.lst
Your Grub error 22 looks like Pupply using Grub2 as Grub1's Error 22 is

22 : No such partition
This error is returned if a partition is requested in the device part of a device- or full file name which isn't on the selected disk.

If this is the case Grub2's menu.lst is called grub.cfg and stored at the same location as menu.lst.

The error sounds the partition has not been correctly identified as Grub2 counts from zero for disk but 1 for partition. Thus sda2 should be called by Grub2 as
Code:
root=(hd0,2)
 
Old 10-04-2009, 05:50 PM   #3
Skyhooker
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, I really appreciate the reply and suggestion. I'll post that menu.lst if I get it up and running again, but it looks like the hard drive may be in worse shape than I thought. I'm investigating it now.
 
Old 10-04-2009, 07:49 PM   #4
Skyhooker
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
menu.lst attached

Hi again,

I was able to get back up and running again. Here's the menu.lst from my GRUB installation. I selected the defaults in the simple installation of GRUB, but chose to install it to the "superblock area" of the Linux partition. Puppy is installed to sda2. As near as I can tell, sda1 is that unformatted area I left because of bad sectors on the HDD. Thanks for your help (noober here, still learning all the terminology).



# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Sun Oct 4 19:22:38 2009
#
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
gfxmenu /boot/grub/deep_stage1
# End GRUB global section
# Linux bootable partition config begins
title Linux (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 ro vga=normal
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 ro vga=normal
# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,1)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/sda2)
root (hd0,1)
setup (hd0,1)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)
 
Old 10-05-2009, 02:26 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Your menu.lst is a screw-up.

This is all that is needed (a line starts with "#" is not actioned by Grub.
Code:
color light-gray/blue black/light-gray

title Linux (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 ro vga=normal

title Linux (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 ro vga=normal
One of the entries, either sda1 or sda2 is an error unless you have installed Puppy twice.

Try to find out which one works.

Edit the menu.lst use the editor nano or vi like
Code:
mkdir /mnt/sda2
mount /dev/sda2 /mnt/sda2 
nano /mnt/sda2/boot/grub/menu.lst
If that doesn't work do it to sda1 as well
 
Old 10-06-2009, 10:43 AM   #6
Skyhooker
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, saikee,

I ended up reinstalling GRUB using the "expert mode," rather than the simple installation. The simple install adds all that extra code that screwed up the boot process for my configuration, whereas the expert mode let me choose only what's appropriate. It's booting up fine now.

Cheers!


Skyhooker
 
  


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
Puppy Linux: > Boot fails, Grub stage 1.5, error 15. johnbartley Linux - Newbie 3 08-12-2009 05:55 PM
[SOLVED] New to Linux Puppy - Grub question nelsonsam Linux - Newbie 4 07-18-2009 09:58 AM
Trouble With Grub Config in Puppy Linux dsnort33823 Linux - Newbie 1 04-17-2009 07:55 AM
puppy linux help grub error 22 m-man Linux - Newbie 1 01-08-2009 10:53 PM
Adding extra parameters to Grub, Puppy Linux How? silencer07 Linux - General 4 11-26-2008 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 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