[Gllug] Grub on lvm
Stephen Nelson-Smith
sanelson at gmail.com
Tue Jan 6 14:25:52 UTC 2009
Hi,
I have a machine set up as follows:
2 disks in a software raid1 presented as /dev/md0
Those disks make an LVM PV, in which there is one VG - /dev/lvmvolume
4 LVs - one for swap, root, home, and var.
The machine currently has lilo on it, and I've been asked to install grub.
What should I use as the INSTALL_DEVICE?
root at wol2:~# grub-install /dev/sda
/dev/mapper/lvmvolume-root does not have any corresponding BIOS drive.
You can run grub-install on your RAID device [/dev/mapper/lvmvolume-root],
or you can define [/dev/mapper/lvmvolume-root] in [/boot/grub/device.map].
root at wol2:~# grub-install /dev/mapper/lvmvolume-root
/dev/mapper/lvmvolume-root does not have any corresponding BIOS drive.
You can run grub-install on your RAID device [/dev/mapper/lvmvolume-root],
or you can define [/dev/mapper/lvmvolume-root] in [/boot/grub/device.map].
root at wol2:~# grub
Probing devices to guess BIOS drives. This may take a long time.
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0)
root (hd0)
grub> setup (hd0,0)
setup (hd0,0)
Error 17: Cannot mount selected partition
grub>
The machine is running Ubuntu 8.04
S.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list