LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Grub error 22 (https://www.linuxquestions.org/questions/linux-software-2/grub-error-22-a-768231/)

henu 11-10-2009 01:13 PM

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

henu 11-10-2009 01:29 PM

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.

ronlau9 11-10-2009 02:16 PM

Quote:

Originally Posted by henu (Post 3751916)
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

rkski 11-10-2009 02:33 PM

Please post the following:

Code:

#fdisk -l
and your grub.conf file.

henu 11-11-2009 06:47 AM

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

rkski 11-11-2009 11:01 AM

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.

henu 11-11-2009 11:41 AM

Wow!, thank you very much. I didn't know that


All times are GMT -5. The time now is 03:19 AM.