bugGNU GRUB - Bugs: bug #25581, can't boot ICH9R bios-raid with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #25581: can't boot ICH9R bios-raid with grub2

Submitter:  gionnico <gionnico>
Submitted:  Fri 13 Feb 2009 05:26:44 PM UTC
   
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  1989 Reproducibility:  Every Time
Planned Release:  None

Fri 21 May 2010 08:47:57 PM UTC, comment #3: 

No answer from author. I assume bug to be fixed

Vladimir Serbinenko <phcoder>
Group administrator
Thu 11 Jun 2009 07:49:47 PM UTC, comment #2: 

Try using latest svn checkout of grub2. This error should be fixed now

Vladimir Serbinenko <phcoder>
Group administrator
Fri 13 Feb 2009 05:34:47 PM UTC, comment #1: 

# fdisk /dev/mapper/isw_bdjebbgcif_Volume0

The number of cylinders for this disk is set to 121602.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Comando (m per richiamare la guida): p

Disco /dev/mapper/isw_bdjebbgcif_Volume0: 1000.2 GB, 1000210694144 byte

255 testine, 63 settori/tracce, 121602 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x15371536

                         Dispositivo Boot      Start         End      Blocks   Id  System
/dev/mapper/isw_bdjebbgcif_Volume0p1               1         262     2098144+  82  Linux swap / Solaris
La partizione 1 non termina al limite del cilindro.
/dev/mapper/isw_bdjebbgcif_Volume0p2   *         262       12010    94371840    7  HPFS/NTFS
/dev/mapper/isw_bdjebbgcif_Volume0p3           15765      121602   850141184    7  HPFS/NTFS
/dev/mapper/isw_bdjebbgcif_Volume0p4           12010       15765    30155776   83  Linux

gionnico <gionnico>
Fri 13 Feb 2009 05:26:44 PM UTC, original submission:  

I've got x86_64 gentoo and compiled grub from svn.

Now I have a "weird" configuration.
Indeed I use ICH9R (motherboard raid support) to have a RAID0 of 2 500GB hard drives.
So the "Volume0" is 1TB.

Now in linux this volume is recognized though dm-map as:
/dev/mapper/isw_bdjebbgcif_Volume0

In grub-legacy the only way I found to install it was though the grub shell in this way:
rm /dev/grub/device.map
grub --device-map=/dev/null
grub> device (hd0) /dev/mapper/isw_bdjebbgcif_Volume0
geometry (hd0) 121602 255 63
root (hd0,3) <-- this is the 4th partition that has linux / and /boot alltogether.
setup (hd0)



Don't ask me why but it works.
Now in grub2 there's shell nomore.

I tried:
# grub2-install /dev/mapper/isw_bdjebbgcif_Volume0
grub-probe: error: no mapping exists for `isw_bdjebbgcif_Volume04'
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

So i changed /boot/grub/device.map this way:
(hd0)   /dev/mapper/isw_bdjebbgcif_Volume0

And:
# grub2-install /dev/mapper/isw_bdjebbgcif_Volume0
grub-probe: error: no mapping exists for `isw_bdjebbgcif_Volume04'
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.


I also tried using a fake hardlink called /dev/sdc
So:
ln /dev/mapper/isw_bdjebbgcif_Volume0 /dev/sdc
ln /dev/mapper/isw_bdjebbgcif_Volume01 /dev/sdc1
ln /dev/mapper/isw_bdjebbgcif_Volume02 /dev/sdc2
ln /dev/mapper/isw_bdjebbgcif_Volume03 /dev/sdc3
ln /dev/mapper/isw_bdjebbgcif_Volume04 /dev/sdc4

Then let grub create device.map
So:
# grub-mkdevicemap
# cat /boot/grub/device.map
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc

Then:
# grub2-install /dev/sdc
grub-probe: error: unknown filesystem
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

So I specified the filesystem (I can remember a similar problem in grub-legacy if I didn't use the geometry setting).

# grub2-install --modules=ext2 /dev/sdc
grub-probe: error: unknown filesystem
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub2-install'.

(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc


Here we go. If I reboot I get the grub rescue shell.
If I try to root it says:
(hd0): "unknown filesystem"

even though ext2 module is insmod'd.

And I can do nothing else.



The passage I miss seems to be that:
geometry (hd0) C H S
That I used in grub-legacy shell.
But seems there's shell nomore and geometry nomore.

gionnico <gionnico>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by gionnico (Voted in favor of this item)
  • -email is unavailable- added by gionnico (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-05-21 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
        ReleaseNone Bazaar - trunk
    2009-02-13 gionnico Carbon-Copy- Added gionnico

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code