bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #27737] unable to install GRUB to a partitioned loop device


From: Erwin Bolwidt
Subject: [bug #27737] unable to install GRUB to a partitioned loop device
Date: Mon, 24 Jan 2011 06:37:43 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

Follow-up Comment #4, bug #27737 (project grub):

I found a workaround. It seems that the problem is the extra subdirectory in
/dev/mapper.

If I recreate the block devices that are under /dev/mapper and place them
directly under /dev (with a different name), and update the device.map file
for grub2, then I can install grub onto the disk using grub-install

Step 1: lookup the major/minor created under /dev/mapper
Step 2: mknod the same devices directory under /dev

I created two devices /dev/mapper/sda and /dev/mapper/sda1 using dmsetup and
kpartx. /dev/mapper/sda received major device number 252 and minor 0, and
/dev/mapper/sda1 received minor 1.

Then I did:

mknod /dev/msda b 252 0
mknod /dev/msda1 b 252 1

Make sure that you mount /dev/msda1 instead of /dev/mapper/sda1, update your
device.map with "(hd0) /dev/msda" and voila, grub-install works.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27737>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]