grub and encrypted LVM
Most of my HD is an encrypted LVM (exception is /boot on unencrypted partition) with Ubuntu Lucid as my main OS. I want to test other OS and releases and created another LVM partition for it. I added a configuration for grub as /etc/grub.
$ cat /etc/grub.
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'Ubuntu+1, next development release' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
insmod lvm
set root='(
linux /vmlinuz root=/dev/
initrd /initrd.img
}
update-grub has no problem to see the partition although there are a few warnings about /dev/sdb (which actually is not present!) as "error: cannot open `/dev/sdb' while attempting to get disk size."
$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /memtest86+.bin
Found Ubuntu Natty (development branch) (11.04) on /dev/mapper/
/usr/sbin/
/usr/sbin/
done
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu grub2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: