LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-23-2005, 12:30 PM   #1
redduck666
Member
 
Registered: Dec 2004
Posts: 32

Rep: Reputation: 15
grub error 22


after following the gentoo handbook i installed i rebooted my computer. i get that error and i have no idea what to do.

my hd is partitioned in a way hda1 450 MB swap,hda2 5.5 gb where gentoo installation is and 32 gb empty partition. hda2 and hda3 are reiserfs partitions with 3.6 jurnal.

i think that grub is on my mbr because i did something like grub.install /dev/hda.

Code:
default 0
timeout 30
title gentoo by rd
root (hd0,1)
kernel /boot/boot/kernel-2.6.11-gentoo-r6 root=/dev/hda2

the above is my /boot/grub/grub.conf

i do not have a separate partition mounted as /boot.

i used fdisk and made partition containing gentoo bootable.

"kernel /boot/kernel-2.6.11-gentoo-r6 root=/dev/hda2" as a last line of grub.conf doesn't work either.

i have only on had disk.

any help appreciated

Last edited by redduck666; 04-23-2005 at 01:45 PM.
 
Old 04-23-2005, 01:45 PM   #2
redduck666
Member
 
Registered: Dec 2004
Posts: 32

Original Poster
Rep: Reputation: 15
Code:
warty@ubuntu:~ $ sudo fdisk -l /dev/hda

Disk /dev/hda: 40.0 GB, 40037760000 bytes
16 heads, 63 sectors/track, 77578 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         873      439960+  82  Linux swap
/dev/hda2             874       11531     5371632   83  Linux
/dev/hda3           11532       77578    33287688   83  Linux
i got the above in ubuntu live cd.
 
Old 04-23-2005, 04:57 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
In your first post, you give this line:

kernel /boot/boot/kernel-2.6.11-gentoo-r6 root=/dev/hda2

Now, if gentoo has a directory/subdirectory called /boot/boot, that should work. Otherwise, I suspect your error is in this line.

This is what my SuSE setup for me:

kernel (hd0,1)/vmlinuz root=/dev/hda2 (and so on).

Look into your /boot directory, and use the name of the compressed kernel image you find there. If it's kernel-2.6.11-gentoo-r6, then use that. If you find vmlinuz, then use that.

To my knowledge, grub is distribution-independent, and is probably set up the same, no matter which distro you're using.

So, try changing the syntax to the example I've supplied, and see if that works. Something like:

kernel (hd0,2)/kernel-2.6.11-gentoo-r6 root=/dev/hda2 (or use the vmlinuz keyword if you find that in your /boot directory).
 
Old 04-24-2005, 07:26 AM   #4
redduck666
Member
 
Registered: Dec 2004
Posts: 32

Original Poster
Rep: Reputation: 15
i tried what you suggested and still can't get it to work .

i don't have anything called vmlinuz in /boot. i also tried making a separate partition for /boot and i still get the damn error 22.

any input welcome
 
  


Reply



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 error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
GRUB bootloader spits out "GRUB hard disk error" Crampedson Linux - Software 2 01-26-2005 06:34 PM
GRUB Section2 load error, partition error. Ryle Linux - General 1 06-27-2004 02:55 PM
GRUB error? DriveReady SeekComplete DataRequest Error sth Linux - Hardware 3 02-26-2003 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration