Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
On Sun, Dec 27, 2009 at 05:50:35PM -0800, Lapohos Tibor wrote: > > grub-install --modules=raid /dev/md126 You're not supposed to force addition of raid.mod. If it wasn't auto-detected, it means there is a problem somewhere. Working around it just makes GRUB fail later on in a more unpleasant way ;-) -- Robert Millan "Be the change you want to see in the world" -- Gandhi ___ Help-grub mailing list Help-grub@gnu.org http://lists.gnu.org/mailman/listinfo/help-grub
Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
On Sun, Dec 27, 2009 at 5:50 PM, Lapohos Tibor wrote: > Thanks for your reply. > > What the OROM says is that both of my volumes are bootable. > /dev/md126 corresponds to Volume0, and its first partition (ext4) has the > boot flag set. > > My problem is that I cannot get grub2 installed on the device at all. I did > try, as you suggested, to set > > (hd0) /dev/md126 > > in the device.map file and then issue > > > grub-install --modules=raid /dev/md126 > > but I still get the same error message(s): > > grub-probe: error: no mapping exists for 'md126' > grub-setup: error: no mapping exists for 'md126' > > What is interesting is that, at the grub shell, I can do > > grub> probe -l (hd0,1) > > it returns "OS" which is the label I set for it, so the device can, under > certain circumstances, definitely be detected. Nevertheless, grub-install > does not seem to behave the same way. > > Thanks, > Tibor > > --- On *Sun, 12/27/09, Michael Evans * wrote: > > > From: Michael Evans > Subject: Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 > on fake (IMSM) RAID > To: "Lapohos Tibor" > Cc: help-grub@gnu.org > Date: Sunday, December 27, 2009, 7:26 PM > > > On Sat, Dec 26, 2009 at 5:33 AM, Lapohos Tibor > http://ca.mc882.mail.yahoo.com/mc/compose?to=tibor.lapo...@rogers.com> > > wrote: > >>Hello All, >> >> I have 2 SATA disks in an Intel Matrix RAID setup. It contains two >> volumes, one in RAID1, the other in RAID0 configuration. These I created >> using the Option ROM of the motherboard, partitioned using cfdisk, and >> finally assembled into RAID devices using mdadm v3.0.3. As such, I obtained >> the following devices: >> >> /dev/md127 (the container to which /dev/md/imsm0 is pointing) >> /dev/md126 (the RAID1 "Volume0" pointed at by /dev/md/Volume0) >> /dev/md126p1 (the first partition intended to serve as the root fs) >> /dev/md126p2 (intended for user space) >> /dev/md126p3 (intended for swap) >> /dev/md125 (the RAID0 "Volume1" pointed at by /dev/md/Volume1) >> /dev/md125p1 (intended for user scratch space) >> /dev/md125p2 (itended for swap) >> >> (the long names came from mdadm v 3.0.3). >> >> If I boot from my USB memory stick, and make a stop at the grub shell, I >> can see all these partitions listed as (hd1) (hd1,[123]), (hd2) and >> (hd2,[12]), while my USB stick comes up under (hd0) and (hd0,[12]). >> Therefore, I would dare to say that grub does detect these devices. >> >> I tried to install grub 1.97.1 on /dev/md126 by countless ways without >> success. The command >> >> $ grub-install --modules=raid /dev/md126 >> >> for example returns the error message >> >> $ grub-setup: error: no mapping exists for "md126" >> >> The /boot/grub folder got created correctly, but the "device.map" file >> does not mention any virtual RAID devices. It reads: >> >> (hd0) /dev/sda (SATA1) >> (hd1) /dev/sdb (SATA2) >> (hd2) /dev/sdc (USB flash memory stick) >> >> which, by the way, does not resemble what the >> sh: grub> ls >> command returns before booting (see the list described before). >> >> Do I need to give up using "fake RAID" and turn to pure SW RAID to get the >> system up and running, or is there a way to install GRUB2 in this >> configuration? >> >> Your help is much appreciated. Thanks ahead, >> Tibor >> >> >> ___ >> Help-grub mailing list >> Help-grub@gnu.org<http://ca.mc882.mail.yahoo.com/mc/compose?to=help-g...@gnu.org> >> http://lists.gnu.org/mailman/listinfo/help-grub >> >> If you -know- that given drives will be in some positions during startup > then you can edit the device.map file your self to tell grub where things > will be on reboot. > > You should only provide the containers; however a very important question > exists. Are you able to select one of those containers as your boot volume > within the bios? If so make it like that and tell grub that the volume is > 'hd0' instead of /dev/sda. Then you can do the usual setup/install and it > should work when using that device.map. > > -Inline Attachment Follows- > > > ___ > Help-grub mailing list > Help-grub@gnu.org<http://ca.mc882.mail.yahoo.com/mc/compose?to=help-g...@gnu.org> > http://lists.gnu.org/mailman/listinfo/help-grub > > I have yet to do a manual install of grub2; however grub I'd manually install using the grub shell. You should try performing a manual install, or somehow increasing the verbosity so that you can see where it fails. ___ Help-grub mailing list Help-grub@gnu.org http://lists.gnu.org/mailman/listinfo/help-grub
Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
Thanks for your reply. What the OROM says is that both of my volumes are bootable. /dev/md126 corresponds to Volume0, and its first partition (ext4) has the boot flag set. My problem is that I cannot get grub2 installed on the device at all. I did try, as you suggested, to set (hd0) /dev/md126 in the device.map file and then issue > grub-install --modules=raid /dev/md126 but I still get the same error message(s): grub-probe: error: no mapping exists for 'md126' grub-setup: error: no mapping exists for 'md126' What is interesting is that, at the grub shell, I can do grub> probe -l (hd0,1) it returns "OS" which is the label I set for it, so the device can, under certain circumstances, definitely be detected. Nevertheless, grub-install does not seem to behave the same way. Thanks, Tibor --- On Sun, 12/27/09, Michael Evans wrote: From: Michael Evans Subject: Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID To: "Lapohos Tibor" Cc: help-grub@gnu.org Date: Sunday, December 27, 2009, 7:26 PM On Sat, Dec 26, 2009 at 5:33 AM, Lapohos Tibor wrote: Hello All, I have 2 SATA disks in an Intel Matrix RAID setup. It contains two volumes, one in RAID1, the other in RAID0 configuration. These I created using the Option ROM of the motherboard, partitioned using cfdisk, and finally assembled into RAID devices using mdadm v3.0.3. As such, I obtained the following devices: /dev/md127 (the container to which /dev/md/imsm0 is pointing) /dev/md126 (the RAID1 "Volume0" pointed at by /dev/md/Volume0) /dev/md126p1 (the first partition intended to serve as the root fs) /dev/md126p2 (intended for user space) /dev/md126p3 (intended for swap) /dev/md125 (the RAID0 "Volume1" pointed at by /dev/md/Volume1) /dev/md125p1 (intended for user scratch space) /dev/md125p2 (itended for swap) (the long names came from mdadm v 3.0.3). If I boot from my USB memory stick, and make a stop at the grub shell, I can see all these partitions listed as (hd1) (hd1,[123]), (hd2) and (hd2,[12]), while my USB stick comes up under (hd0) and (hd0,[12]). Therefore, I would dare to say that grub does detect these devices. I tried to install grub 1.97.1 on /dev/md126 by countless ways without success. The command $ grub-install --modules=raid /dev/md126 for example returns the error message $ grub-setup: error: no mapping exists for "md126" The /boot/grub folder got created correctly, but the "device.map" file does not mention any virtual RAID devices. It reads: (hd0) /dev/sda (SATA1) (hd1) /dev/sdb (SATA2) (hd2) /dev/sdc (USB flash memory stick) which, by the way, does not resemble what the sh: grub> ls command returns before booting (see the list described before). Do I need to give up using "fake RAID" and turn to pure SW RAID to get the system up and running, or is there a way to install GRUB2 in this configuration? Your help is much appreciated. Thanks ahead, Tibor ___ Help-grub mailing list Help-grub@gnu.org http://lists.gnu.org/mailman/listinfo/help-grub If you -know- that given drives will be in some positions during startup then you can edit the device.map file your self to tell grub where things will be on reboot. You should only provide the containers; however a very important question exists. Are you able to select one of those containers as your boot volume within the bios? If so make it like that and tell grub that the volume is 'hd0' instead of /dev/sda. Then you can do the usual setup/install and it should work when using that device.map. -Inline Attachment Follows- ___ Help-grub mailing list Help-grub@gnu.org http://lists.gnu.org/mailman/listinfo/help-grub ___ Help-grub mailing list Help-grub@gnu.org http://lists.gnu.org/mailman/listinfo/help-grub
Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
On Sat, Dec 26, 2009 at 5:33 AM, Lapohos Tibor wrote: > Hello All, > > I have 2 SATA disks in an Intel Matrix RAID setup. It contains two volumes, > one in RAID1, the other in RAID0 configuration. These I created using the > Option ROM of the motherboard, partitioned using cfdisk, and finally > assembled into RAID devices using mdadm v3.0.3. As such, I obtained the > following devices: > > /dev/md127 (the container to which /dev/md/imsm0 is pointing) > /dev/md126 (the RAID1 "Volume0" pointed at by /dev/md/Volume0) > /dev/md126p1 (the first partition intended to serve as the root fs) > /dev/md126p2 (intended for user space) > /dev/md126p3 (intended for swap) > /dev/md125 (the RAID0 "Volume1" pointed at by /dev/md/Volume1) > /dev/md125p1 (intended for user scratch space) > /dev/md125p2 (itended for swap) > > (the long names came from mdadm v 3.0.3). > > If I boot from my USB memory stick, and make a stop at the grub shell, I > can see all these partitions listed as (hd1) (hd1,[123]), (hd2) and > (hd2,[12]), while my USB stick comes up under (hd0) and (hd0,[12]). > Therefore, I would dare to say that grub does detect these devices. > > I tried to install grub 1.97.1 on /dev/md126 by countless ways without > success. The command > > $ grub-install --modules=raid /dev/md126 > > for example returns the error message > > $ grub-setup: error: no mapping exists for "md126" > > The /boot/grub folder got created correctly, but the "device.map" file does > not mention any virtual RAID devices. It reads: > > (hd0) /dev/sda (SATA1) > (hd1) /dev/sdb (SATA2) > (hd2) /dev/sdc (USB flash memory stick) > > which, by the way, does not resemble what the > sh: grub> ls > command returns before booting (see the list described before). > > Do I need to give up using "fake RAID" and turn to pure SW RAID to get the > system up and running, or is there a way to install GRUB2 in this > configuration? > > Your help is much appreciated. Thanks ahead, > Tibor > > > ___ > Help-grub mailing list > Help-grub@gnu.org > http://lists.gnu.org/mailman/listinfo/help-grub > > If you -know- that given drives will be in some positions during startup then you can edit the device.map file your self to tell grub where things will be on reboot. You should only provide the containers; however a very important question exists. Are you able to select one of those containers as your boot volume within the bios? If so make it like that and tell grub that the volume is 'hd0' instead of /dev/sda. Then you can do the usual setup/install and it should work when using that device.map. ___ Help-grub mailing list Help-grub@gnu.org http://lists.gnu.org/mailman/listinfo/help-grub