LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-10-2009, 01:13 PM   #1
henu
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Grub error 22


Hello, I have an Suse 9.3 installation in one partition and Windows XP on the other one like this:

/dev/hda1 Linux
/dev/hda2 W95
/dev/hda5 HPFS/NTFS
/dev/hda6 Linux swap
/dev/hda7 Linux

I needed some space so I deleted the hda5 partition using fdisk. After rebooting I have an Grub Error 22 saying that the partition doesn't exist. I think it is trying to boot from hda5 instead of hda1.

I tried Super Grub Disk, and it says it fixed grub, but after a reboot I still get the same message.

What can I do please? What aditional information do you guys need in order to help me?

Thanks in advance,

henu

PS: I don't know if this thread belongs here, if not, please tell me where should it be

Last edited by henu; 11-10-2009 at 01:16 PM. Reason: Added a PS
 
Old 11-10-2009, 01:29 PM   #2
henu
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Actually I have to correct something:

The booting partition was /dev/hda7, but after I deleted partition /dev/hda5, the booting partition should be on /dev/hda6 (I think so), but I believe grub is still trying to boot from /dev/hda7.
 
Old 11-10-2009, 02:16 PM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by henu View Post
Actually I have to correct something:

The booting partition was /dev/hda7, but after I deleted partition /dev/hda5, the booting partition should be on /dev/hda6 (I think so), but I believe grub is still trying to boot from /dev/hda7.
Post you're menu.lst and the outcome of fdisk -l
 
Old 11-10-2009, 02:33 PM   #4
rkski
Member
 
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247

Rep: Reputation: 51
Please post the following:

Code:
#fdisk -l
and your grub.conf file.
 
Old 11-11-2009, 06:47 AM   #5
henu
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, thank you very much, here is all the requested info:

output of fdisk -l:

Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa85da85d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2551    20490876   83  Linux
/dev/sda2            2552        9729    57657285    f  W95 Ext'd (LBA)
/dev/sda5            8866        8928      506016   82  Linux swap / Solaris
/dev/sda6            8929        9729     6434001   83  Linux

Disk /dev/sdb: 16.0 GB, 16030597120 bytes
32 heads, 63 sectors/track, 15530 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Disk identifier: 0x7712506d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       15530    15654208+   b  W95 FAT32
Contents of grub.conf:

Code:
setup --stage2=/boot/grub/stage2 (hd0) (hd0,6)
quit

Contents of menu.lst:

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

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

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

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.3
    kernel (hd0,6)/boot/vmlinuz root=/dev/hda6 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp noapic maxcpus=0  3
    initrd (hd0,6)/boot/initrd

And you guys didn't ask for fstab but here it is anyway:

Code:
/dev/hda6            /                    reiserfs   acl,user_xattr        1 1
#/dev/hda5            /windows/D           ntfs       ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda5            swap                 swap       pri=42                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
sysfs                /sys                 sysfs      noauto                0 0
/dev/cdrecorder      /media/cdrecorder    subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0             /media/floppy        subfs      noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0
/dev/hda1            /usr                 reiserfs   acl,user_xattr        1 2
Thanks again guys
 
Old 11-11-2009, 11:01 AM   #6
rkski
Member
 
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247

Rep: Reputation: 51
Quote:
gfxmenu (hd0,6)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.3
kernel (hd0,6)/boot/vmlinuz root=/dev/hda6 vga=0x317 selinux=0 splash=silent resume=/dev/hda6 showopts
initrd (hd0,6)/boot/initrd
In the above change all references to (hd0,6) to (hd0,5)
In grub numbering (hd0,5) is the 6th partition of the 1st HDD.
 
Old 11-11-2009, 11:41 AM   #7
henu
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Wow!, thank you very much. I didn't know that
 
  


Reply

Tags
grub



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
install kubuntu 8.10 with lilo rather than grub (because of grub error 18) dukeinlondon Ubuntu 7 12-27-2008 06:53 PM
Loading Grub 1.5 Please Wait...... Grub Failed Error 18 2words4uready Linux - Newbie 5 06-12-2008 05:37 PM
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

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

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