Bug#612518: grub-pc: fails to install to RAID1
Mario 'BitKoenig' Holbe
Mario.Holbe at TU-Ilmenau.DE
Tue Feb 8 22:26:20 UTC 2011
On Tue, Feb 08, 2011 at 11:08:13PM +0100, Mario 'BitKoenig' Holbe wrote:
> the new 1.99~rc1-2 fails to install to my /dev/md0. 1.98+20100804-14 did
> well.
Forgot to add:
# grub-setup -v /dev/md0
...
grub-setup: info: /dev/sda2 starts from 140.
grub-setup: info: opening the device hd0.
grub-setup: info: the size of hd0 is 976773168.
grub-setup: info: Partition 0 starts from 34.
grub-setup: info: Partition 1 starts from 140.
grub-setup: info: getting the size of /boot/grub/boot.img.
grub-setup: info: reading /boot/grub/boot.img.
grub-setup: info: getting the size of /boot/grub/boot.img.
grub-setup: info: getting the size of /boot/grub/core.img.
grub-setup: info: reading /boot/grub/core.img.
grub-setup: info: getting the size of /boot/grub/core.img.
grub-setup: info: root is `md0', dest is `hd0,gpt2'.
grub-setup: info: Opening root.
grub-setup: info: Opening dest.
grub-setup: info: the size of hd0 is 976773168.
grub-setup: info: setting the root device to `md0'.
grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea..
grub-setup: error: embedding is not possible, but this is required when the root device is on a RAID array or LVM volume.
# ls -l /boot/grub/core.img
-rw-r--r-- 1 root root 28212 Feb 8 23:01 /boot/grub/core.img
installing directly to /dev/sda works:
# grub-setup -v /dev/sda
...
grub-setup: info: guessed root device `/dev/md0' and root_dev `md0' from dir `/boot/grub'.
grub-setup: info: getting the size of /boot/grub/boot.img.
grub-setup: info: reading /boot/grub/boot.img.
grub-setup: info: getting the size of /boot/grub/boot.img.
grub-setup: info: getting the size of /boot/grub/core.img.
grub-setup: info: reading /boot/grub/core.img.
grub-setup: info: getting the size of /boot/grub/core.img.
grub-setup: info: root is `md0', dest is `hd0'.
grub-setup: info: Opening root.
grub-setup: info: Opening dest.
grub-setup: info: the size of hd0 is 976773168.
grub-setup: info: setting the root device to `md0'.
grub-setup: info: the first sector is <34,0,512>.
grub-setup: info: saving <35,0,512>.
grub-setup: info: saving <36,0,512>.
...
grub-setup: info: saving <139,0,512>.
grub-setup: info: dos partition is -2, bsd partition is -2.
#
regards
Mario
--
Oh Du mein Koenig ... Eine Netzgroesse schrieb mal sinngemaess:
Du musst es so lesen wie ich es meine, nicht so wie ich es schreibe.
Ich meine es natuerlich so, wie Du es schreibst 8--)
-- O.G. Schwenk in de.comm.chatsystems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110208/1159be68/attachment.pgp>
More information about the Pkg-grub-devel
mailing list