Bug 450091

Summary: GRUB Error 22
Product: [openSUSE] openSUSE 11.1 Reporter: Miro Hadzhiev <extigyro>
Component: InstallationAssignee: Torsten Duwe <duwe>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Blocker    
Priority: P1 - Urgent CC: extigyro, f.leerink, forgotten_Xh41Ao4q6j, martin.konopka
Version: RC 1Flags: coolo: SHIP_STOPPER+
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.0   
Whiteboard:
Found By: Localization Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: GRUB
GRUB "device.map" file
GRUB "menu.lst" file
GRUB "/etc/grub.conf" file

Description Miro Hadzhiev 2008-11-28 14:07:21 UTC
The bootloader installation failed. Using GRUB version 0.97.

Here is the output:

GNU  GRUB version 0.97 (640K lower/3072K upper memory)
[ Minimal BASH like editing is supported... ]
grub>setup --stage2=/boot/grub/stage2 --force-lba(hd0,1)(hd0,4)
checking if "/boot/grub/stage1" exists... yes
checking if "/boot/grub/stage2" exists... yes
checking if "/boot/grub/e2fs_stage1_5(hd0,1)" ... failed
checking if "/boot/grub/e2fs_stage1_5(hd0,4)" ... failed
Running "install --force-lba --stage2=/boot/grub/stage2 /boot/grub/stage1(hd0,1)
Error 22: No such partition
grub>quit


There are several options (everything is by defaults):
"- Boot from Extended Partition
 - Set active Flag in Partition Table for Boot Partition
 - Write Generic Boot Code to MBR "


There's such partition. I've never encountered such a problem with other SuSE version (except now with 11.1RC1). There is no such a bug even with 11.1beta5.
Comment 1 Marcus Meissner 2008-11-28 15:34:15 UTC
Please attach at least:

/boot/grub/device.map
/etc/grub.conf
/boot/grub/menu.lst

hwinfo --disk   output
Comment 2 Miro Hadzhiev 2008-11-29 13:25:11 UTC
Created attachment 256736 [details]
GRUB
Comment 3 Miro Hadzhiev 2008-11-29 13:25:24 UTC
Created attachment 256737 [details]
GRUB "device.map" file
Comment 4 Miro Hadzhiev 2008-11-29 13:26:14 UTC
Created attachment 256738 [details]
GRUB "menu.lst" file
Comment 5 Miro Hadzhiev 2008-11-29 13:27:00 UTC
Created attachment 256739 [details]
GRUB "/etc/grub.conf" file
Comment 6 Miro Hadzhiev 2008-11-29 13:39:15 UTC
The last line of the grub output of my first comment is wrong. It should be:

Running "install --force-lba --stage2=/boot/grub/stage2 /boot/grub/stage1(hd0,1) /boot/grub/stage2 /boot/grub/menu.lst"... failled

Some additional info:

* DVD Installation Media x86_64
* I'm not using "Automatic Configuration" during the installation process
* "New Installation" chosen during the installation process
* "Desktop Selection" > "KDE 3.5" chosen during the installation process
* "Custom Partition Layout" chosen during the installation process
* Package selection - unchanged, every single package is by default
* The bug leaved the system, showing the boot message: "Error No operating System"
Comment 7 Miro Hadzhiev 2008-11-29 22:00:50 UTC
hwinfo --disk output:

25: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: JDPt.Fxp0d3BezAE
  SysFS ID: /class/block/ram15
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram15
  Device Number: block 1:15
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

26: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: s19p.Fxp0d3BezAE
  SysFS ID: /class/block/ram14
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram14
  Device Number: block 1:14
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

27: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: Psuk.Fxp0d3BezAE
  SysFS ID: /class/block/ram13
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram13
  Device Number: block 1:13
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

28: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: ygeg.Fxp0d3BezAE
  SysFS ID: /class/block/ram12
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram12
  Device Number: block 1:12
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

29: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: VVOc.Fxp0d3BezAE
  SysFS ID: /class/block/ram11
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram11
  Device Number: block 1:11
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

30: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: 2K8Y.Fxp0d3BezAE
  SysFS ID: /class/block/ram10
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram10
  Device Number: block 1:10
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

31: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: XOSI.Fxp0d3BezAE
  SysFS ID: /class/block/ram9
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram9
  Device Number: block 1:9
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

32: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: 4DCE.Fxp0d3BezAE
  SysFS ID: /class/block/ram8
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram8
  Device Number: block 1:8
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

33: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: d1y9.Fxp0d3BezAE
  SysFS ID: /class/block/ram7
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram7
  Device Number: block 1:7
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

34: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: xamg.Fxp0d3BezAE
  SysFS ID: /class/block/ram6
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram6
  Device Number: block 1:6
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

35: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: UPWc.Fxp0d3BezAE
  SysFS ID: /class/block/ram5
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram5
  Device Number: block 1:5
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

36: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: 1EGY.Fxp0d3BezAE
  SysFS ID: /class/block/ram4
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram4
  Device Number: block 1:4
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

37: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: a20U.Fxp0d3BezAE
  SysFS ID: /class/block/ram3
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram3
  Device Number: block 1:3
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

38: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: 7tlP.Fxp0d3BezAE
  SysFS ID: /class/block/ram2
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram2
  Device Number: block 1:2
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

39: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: ghVL.Fxp0d3BezAE
  SysFS ID: /class/block/ram1
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram1
  Device Files: /dev/ram1, /dev/ram
  Device Number: block 1:1
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

40: None 00.0: 10600 Disk
  [Created at block.234]
  Unique ID: CWFH.Fxp0d3BezAE
  SysFS ID: /class/block/ram0
  Hardware Class: disk
  Model: "Disk"
  Device File: /dev/ram0
  Device Files: /dev/ram0, /dev/ramdisk
  Device Number: block 1:0
  Size: 1024000 sectors a 512 bytes
  Config Status: cfg=no, avail=yes, need=no, active=unknown

41: IDE 00.0: 10600 Disk
  [Created at block.234]
  UDI: /org/freedesktop/Hal/devices/storage_serial_SATA_HTS541010G9SA00_MP2ZX0XLGK4BES
  Unique ID: 3OOL.AFzJwy7EJ8F
  Parent ID: w7Y8.IEHZ9bEKhxE
  SysFS ID: /class/block/sda
  SysFS BusID: 0:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0
  Hardware Class: disk
  Model: "HTS541010G9SA00"
  Device: "HTS541010G9SA00"
  Revision: "MBZO"
  Serial ID: "MP2ZX0XLGK4BES"
  Driver: "ahci", "sd"
  Driver Modules: "ahci"
  Device File: /dev/sda
  Device Files: /dev/sda, /dev/disk/by-id/scsi-SATA_HTS541010G9SA00_MP2ZX0XLGK4BES, /dev/disk/by-id/ata-HTS541010G9SA00_MP2ZX0XLGK4BES, /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
  Device Number: block 8:0-8:15
  BIOS id: 0x80
  Geometry (Logical): CHS 12161/255/63
  Size: 195371568 sectors a 512 bytes
  Geometry (BIOS EDD): CHS 206742/15/63
  Size (BIOS EDD): 195371568 sectors
  Geometry (BIOS Legacy): CHS 1022/240/63
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #10 (SATA controller)
Comment 8 Forgotten User Xh41Ao4q6j 2008-12-01 02:08:43 UTC
Very similar to bug #444809 

Josef?
Comment 9 Josef Reidinger 2008-12-01 07:33:42 UTC
(In reply to comment #8 from Rajko Matovic)
> Very similar to bug #444809 
> 
> Josef?
> 

no this is different problems.
Comment 10 Josef Reidinger 2008-12-01 07:38:26 UTC
So to confirm that setup, do you have your second partition as LVM and in LVM first partition(/dev/sda4) is your root or boot?
Comment 11 Josef Reidinger 2008-12-01 08:48:12 UTC
*** Bug 450172 has been marked as a duplicate of this bug. ***
Comment 12 Josef Reidinger 2008-12-01 08:51:18 UTC
thorsten - due to comments in duplicate bug it looks like there is regression in grub, which break installing to extended partition. Because for all reporters it works in beta4-5 I think that it should be related to your last change -

Thu Nov 20 17:57:14 CET 2008  	duwe@suse.de  	11

- fix serious bug in "setup" command string handling

Comment 13 Stephan Kulow 2008-12-01 09:18:54 UTC
This fix is reducing the strncat to 16 (which is the correct size of the char array). But this makes the problem obvious: the device "/dev/disk/by-id/ata-HTS541010G9SA00_MP2ZX0XLGK4BES-part6" will not fit in 16 bytes.
Comment 14 Torsten Duwe 2008-12-01 10:44:31 UTC
Allright, fixed.
Strange how well the broken code did work before.
These paths always overwrote stuff on the stack.
Comment 15 Frans Leerink 2008-12-22 13:20:06 UTC
Hello,

I have made an install of 11.1 dvd-iso via an USB-Stick on a MEDION AKOYA  E1210 Netbook-MD97160, which is basically an MSI WIND clone. I followed URL:

         http://en/opensuse.org/SuSE_install_from_USB_drive)

The install went oke until the installation of GRUB. I get the same errors as mentioned in this bug-note.

Via the USB Stick and repair installed system I was able to log-in the 11.1/KDE4 system and tried via yast to correct the grub installation. This did not work since I get allways the same type of errors. I am still logged in.

What is the best way to correct the situation, sothat I have a normal duo boot system. Is there already an fix via on-line update ?

If you need more info please let me know

Regards,   Frans