LinuxQuestions.org
Help answer threads with 0 replies.
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 01-27-2006, 02:28 PM   #1
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Rep: Reputation: 15
GRUB Configuration file Woes.


I have no idea on how to configure grub... I need to re-configure GRUB to boot /dev/hd5, which has OpenSuSe 10.0 on it.

Here's the info on my system:

The /boot/grub/menu.lst file:
Code:
# Modified by YaST2. Last modification on Sat Dec 24 19:39:17 UTC 2005

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,0)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
    root (hd0,0)
    kernel /boot/vmlinuz root=/dev/hda1 vga=0x31a selinux=0    resume=/dev/hda0  splash=silent showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows###
##title Windows
##    chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.0
    root (hd0,5)
    kernel /boot/vmlinuz root=/dev/hda1 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd
a screen dump of gparted: http://www.xugle.com/gparted.tiff

Grub error Code: "GRUB ERROR 22"

I think I have to change
"kernel /boot/vmlinuz root=/dev/hda1 vga=0x31a selinux=0 resume=/dev/hda0 splash=silent showopts" to "kernel /boot/vmlinuz root=/dev/hda1 vga=0x31a selinux=0 resume=/dev/hda1 splash=silent showopts"
... but I'm not sure what else.

Any Help would be appreciated... my copy of UT2004 is on there... wouldn't be fun to loose it.

Any Chance for help
 
Old 01-27-2006, 04:12 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
There is no /dev/hd5
post fdisk -l
if it is on /dev/hda5 you could try
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5
initrd /boot/initrd

Last edited by comprookie2000; 01-27-2006 at 04:16 PM.
 
Old 01-27-2006, 04:24 PM   #3
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Original Poster
Rep: Reputation: 15
Post fdisk -l

Here Ya go

Code:
root@ubuntu:/media# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1            9486       13382    31302621   83  Linux
/dev/hda2           13383       14593     9727357+  83  Linux
/dev/hda3               1        8954    71922973+   5  Extended
/dev/hda5   *           1        8823    70870684+  83  Linux
/dev/hda6            8824        8954     1052226   83  Linux

Partition table entries are not in disk order
root@ubuntu:/media#
 
Old 01-27-2006, 04:56 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Are you booting from suse at hda5 or hda1 with something else?
grub counts from 0,1,2,3 etc so the first hd0 is the hard drive a and hd0,0 is /dev/hda and hd0,4 is /dev/hda5

Last edited by comprookie2000; 01-27-2006 at 04:58 PM.
 
Old 01-27-2006, 05:02 PM   #5
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Original Poster
Rep: Reputation: 15
hda5 is the SuSe Install, and I currently dont have a bootable partition on this drive. I'm currently on Kubuntu 5.10 Live until I get this sorted out.
 
Old 01-27-2006, 05:44 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Whats on hda1
While your on the live cd look in hda /boot/grub/grub.conf and see what the kernel is named + the initrd , same for hda5 and right it down, you should be able to install grub to the mbr and boot them both
Here is how you reinstall grub with suse;
http://www.neowin.net/forum/lofivers...p/t382036.html

Last edited by comprookie2000; 01-27-2006 at 05:49 PM.
 
Old 01-27-2006, 05:47 PM   #7
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Original Poster
Rep: Reputation: 15
huh. upon looking at the file system and comparing a few MD5s... it looks like an image of hda5.
 
Old 01-27-2006, 06:45 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Simdude90015
huh. upon looking at the file system and comparing a few MD5s... it looks like an image of hda5.
????----This does not seem to relate to ANY of the discussion so far
 
Old 01-27-2006, 06:47 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Simdude90015
hda5 is the SuSe Install, and I currently dont have a bootable partition on this drive. I'm currently on Kubuntu 5.10 Live until I get this sorted out.
What do you mean by bootable partition?

in your fdisk output, you show hda5 as bootable.

Do you mean that you dont have a bootloader in the MBR?
 
Old 01-27-2006, 08:15 PM   #10
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Original Poster
Rep: Reputation: 15
No, I have grub on the MBR (I beleive; any way to check for sure? Partitoning and me have never gotten along) it's just that something in the grub config is making it so that my system won't boot.

Error 22 in grub means No Such partition, therefore I think the problem is in the menu.lst file.

And to clarify, hda1 could be the end result of "$ dd if=/dev/hda5 of=/dev/hda1". I found this out by using md5 to look for differences in kernel files. they are completely identical.
 
Old 01-27-2006, 08:29 PM   #11
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by comprookie2000
Are you booting from suse at hda5 or hda1 with something else?
grub counts from 0,1,2,3 etc so the first hd0 is the hard drive a and hd0,0 is /dev/hda and hd0,4 is /dev/hda5
I was looking over the page, and I saw this (for the first time, in my uber newbness). I re-configured the menu.lst file, and it gets a little further... error 17 this time... File system not supported.

As the Gparted screendump earlier has shown, I only have ReiserFS, Swap, ext3 and vfat partitions.
 
Old 01-27-2006, 08:42 PM   #12
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I think you are booting from hda1 may be /boot
then hda2 may be /
try
root=/dev/hda2
post /etc/fstab
 
Old 01-27-2006, 08:51 PM   #13
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Original Poster
Rep: Reputation: 15
nope... hda2 is actually the partition I use to store projects of mine and a couple live disk isos. nothing more.

guess I should have made this known in my original post . sorry.


I know my posts seem completely noobish, but partitioning and grub are the most frustrating part of GNU/Linux for me. I dont know why.,.. it just is. Thanks for putting up with my complete lack of helpfullness.


./
 
  


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 configuration file Buruma Linux - Newbie 10 06-20-2005 09:29 PM
Where to find the GRUB configuration script file? piggysmile Red Hat 2 10-09-2004 03:15 PM
How to change the GRUB configuration file with kernel 2.6.7 Bassam Linux - Software 2 06-22-2004 02:44 AM
grub bootloader : saving a new configuration file? lynnsbomb Mandriva 3 02-03-2004 04:10 PM
Bootloader configuration woes peeks Linux - Newbie 1 09-13-2003 09:42 PM

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

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