"Error 22: No Such Partition" from GRUB after openSUSE 11.3 install
I tried to install openSUSE 11.3 from the Gnome live CD. I had four partitions set already for /boot, /, /home (ext4 all) and swap from a previous failed Linux Mint installation. I installed into them, and formatted them. The /boot partition is primary and pretty well into the disk. The other partitions are logical and at the end of an extended partition which has several partitions before them. There's also an inactive Windows primary partition at the start, and a second disk with a Windows installation and a lot of logical partitions.
After install, it looks like booting into grub works fine, and I get "Error 22: No Such Partition". I then get to the GRUB menu. If I choose openSUSE from there I get: Booting 'openSUSE 11.3' root (hd1,2) Error 22: No Such Partition Booting from the live CD it looks like /boot, / and /home contain data, so they must be formatted fine. Help would be appreciated. |
Could you provide that actual drive and partition details.
Boot with a live disk and get fdisk -l. Also the GRUB configuration would be helpful. GRUB numbers disks/partitions starting from 0. Here it's looking for the partition with /boot on it. This is pointing to the 3 partition on the 2nd disk: Code:
Booting 'openSUSE 11.3' GRUB provides the ability to modify the entries and an excellent command line interface. You can change that root line and see if it boots correctly. |
root (hd1,2)
This implies that you are trying to lock to root on drive 2, partition 3. Is this a second drive? Is the "/" partition on the 3rd partition? |
No, that's actually where '/boot' is. '/' is on the 13th partition, IIRC. I'm confused now, thought, because if I understand jasohl correctly, that should be '/boot' (and it is), but your version makes more sense, since '/' is the OS itself.
I've since installed Fedora, the only distro so far that installed without problem, but if this really should point to '/' then it's probably an easy fix, and I might try openSUSE again, since I think it's friendlier. |
No, that is the grub root. If you have a separate boot partition it should be that. From a terminal run "fdisk -l" (as root) and post the output.
|
root (hd1,2) specifies GRUB root. where it looks for the boot files and kernels.
you specify OS root on the 'kernel' line. for example: Code:
kernel /vmlinuz-2.6.28-11-generic root=/dev/sda1 |
I made a new install, cleared up 20GB of space at the start of the disk and put '/' there (and booting is from there). Wasn't easy, since that partition manager in the installer is pretty awful, but it's done. Still doesn't work, but the error looks more informative.
Here's the menu.lst for GRUB: Code:
# Modified by YaST2. Last modification on Wed Aug 4 07:20:01 IDT 2010 Filesystem type unknown, partition type 0x7 kernel /boot/... (i.e., the command from menu.lst for linux) Error 17: Cannot mount selection partition fdisk -l gives: Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes |
More or less what I expected - the BIOS is enumerating the disks differently to the Linux initscripts. Try this - at the boot menu, highlight the openSuse option, then hit the "e" key (for edit). Then highlight the "root (hd1,0)" and hit "e"again. Change the line to "root (hd0,0)" and hit enter. Then "b" to boot.
This is a temporary change only, just for a test. |
Thanks! I also got this response at the openSUSE forums, though I only saw the response after posting the above. I changed from hd1 to hd0 in menu.lst and got a working openSUSE desktop.
|
syg00,
Just curious, how did you figure that "BIOS is enumerating the disks differently to the Linux initscripts." fdisk shows the bootable Linux partition is on /dev/sdb1. My first thought was /dev/sda > primary master /dev/sdb > primary slave. But if root(hd0,0) cause is it to boot correctly then /dev/sdb must be as primary drive designated by BIOS. If I'm understanding you correctly. How did you catch that? |
Quote:
Recent Ubuntus (for example) got around this by hacking (classic) grub to use uuid instead of root. Grub2 has that option as well. |
Cool. Thanks man. You guys are teaching me something new all the time.
|
All times are GMT -5. The time now is 02:25 PM. |