URL: <http://savannah.gnu.org/bugs/?34964>
Summary: grub-install fails when /boot is on an encrypted fs Project: GNU GRUB Submitted by: shlevy Submitted on: Thu 01 Dec 2011 08:19:08 PM GMT Category: Installation Severity: Major Priority: 5 - Normal Item Group: Software Error Status: None Privacy: Public Assigned to: None Originator Name: Shea Levy Originator Email: s...@shealevy.com Open/Closed: Open Discussion Lock: Any Release: Release: Bazaar - trunk Reproducibility: Every Time Planned Release: None _______________________________________________________ Details: On a fresh Debian install with an encrypted lvm, unmounting /boot and running grub-install --recheck fails. This happened with r3615. Setting GRUB_CRYPTODISK_ENABLE=y doesn't change the problem. Below is output of requested commands: #grub-probe -t fs -v -v -v /boot grub-probe: info: changing current directory to /dev/mapper. grub-probe: info: opening lvm/debian-root. grub-core/kern/disk.c:243: Opening `lvm/debian-root'... grub-probe: info: scanning hd0 for LVM. grub-core/kern/disk.c:243: Opening `hd0'... grub-probe: info: the size of hd0 is 16777216. grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda' in open_device() grub-probe: info: no LVM signature found. grub-core/kern/disk.c:336: Closing `hd0'. grub-core/kern/disk.c:243: Opening `hd0'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda1' in open_device() grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda' in open_device() grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda5' in open_device() grub-core/partmap/apple.c:123: bad magic (found 0x4c55; wanted 0x4552 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/apple.c:123: bad magic (found 0xeb63; wanted 0x4552 grub-core/kern/disk.c:336: Closing `hd0'. grub-probe: info: scanning hd0,msdos5 for LVM. grub-core/kern/disk.c:243: Opening `hd0,msdos5'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-probe: info: no LVM signature found. grub-core/kern/disk.c:336: Closing `hd0'. grub-probe: info: scanning hd0,msdos1 for LVM. grub-core/kern/disk.c:243: Opening `hd0,msdos1'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-probe: info: no LVM signature found. grub-core/kern/disk.c:336: Closing `hd0'. grub-core/disk/raid.c:108: Scanning for mdraid1x RAID devices on disk hd0 grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0. grub-core/kern/disk.c:243: Opening `hd0'... grub-probe: info: the size of hd0 is 16777216. grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda' in open_device() grub-core/kern/disk.c:336: Closing `hd0'. grub-core/kern/disk.c:243: Opening `hd0'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/apple.c:123: bad magic (found 0x4c55; wanted 0x4552 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/apple.c:123: bad magic (found 0xeb63; wanted 0x4552 grub-core/kern/disk.c:336: Closing `hd0'. grub-core/disk/raid.c:108: Scanning for mdraid1x RAID devices on disk hd0,msdos5 grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0,msdos5. grub-core/kern/disk.c:243: Opening `hd0,msdos5'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda5' in open_device() grub-core/kern/disk.c:336: Closing `hd0'. grub-core/disk/raid.c:108: Scanning for mdraid1x RAID devices on disk hd0,msdos1 grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0,msdos1. grub-core/kern/disk.c:243: Opening `hd0,msdos1'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda1' in open_device() grub-core/kern/disk.c:336: Closing `hd0'. grub-core/disk/raid.c:108: Scanning for mdraid09 RAID devices on disk hd0 grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0. grub-core/kern/disk.c:243: Opening `hd0'... grub-probe: info: the size of hd0 is 16777216. grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda' in open_device() grub-core/kern/disk.c:336: Closing `hd0'. grub-core/kern/disk.c:243: Opening `hd0'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/apple.c:123: bad magic (found 0x4c55; wanted 0x4552 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/apple.c:123: bad magic (found 0xeb63; wanted 0x4552 grub-core/kern/disk.c:336: Closing `hd0'. grub-core/disk/raid.c:108: Scanning for mdraid09 RAID devices on disk hd0,msdos5 grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0,msdos5. grub-core/kern/disk.c:243: Opening `hd0,msdos5'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda5' in open_device() grub-core/kern/disk.c:336: Closing `hd0'. grub-core/disk/raid.c:108: Scanning for mdraid09 RAID devices on disk hd0,msdos1 grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0,msdos1. grub-core/kern/disk.c:243: Opening `hd0,msdos1'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda1' in open_device() grub-core/kern/disk.c:336: Closing `hd0'. grub-core/disk/raid.c:108: Scanning for dmraid_nv RAID devices on disk hd0 grub-probe: info: Scanning for dmraid_nv RAID devices on disk hd0. grub-core/kern/disk.c:243: Opening `hd0'... grub-probe: info: the size of hd0 is 16777216. grub-core/kern/emu/hostdisk.c:819: opening the device `/dev/sda' in open_device() grub-core/kern/disk.c:336: Closing `hd0'. grub-core/kern/disk.c:243: Opening `hd0'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/apple.c:123: bad magic (found 0x4c55; wanted 0x4552 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x7a7fe, len 0x0 grub-core/partmap/apple.c:123: bad magic (found 0xeb63; wanted 0x4552 grub-core/kern/disk.c:336: Closing `hd0'. grub-core/disk/raid.c:108: Scanning for dmraid_nv RAID devices on disk hd0,msdos5 grub-probe: info: Scanning for dmraid_nv RAID devices on disk hd0,msdos5. grub-core/kern/disk.c:243: Opening `hd0,msdos5'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/partmap/msdos.c:106: partition 1: flag 0x0, type 0x5, start 0x7a7fe, len 0xf85002 grub-core/partmap/msdos.c:106: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0 grub-core/partmap/msdos.c:106: partition 0: flag 0x0, type 0x83, start 0x7a800, len 0xf85000 grub-core/kern/disk.c:336: Closing `hd0'. grub-core/disk/raid.c:108: Scanning for dmraid_nv RAID devices on disk hd0,msdos1 grub-probe: info: Scanning for dmraid_nv RAID devices on disk hd0,msdos1. grub-core/kern/disk.c:243: Opening `hd0,msdos1'... grub-probe: info: the size of hd0 is 16777216. grub-core/partmap/msdos.c:106: partition 0: flag 0x80, type 0x83, start 0x800, len 0x79800 grub-core/kern/disk.c:336: Closing `hd0'. grub-core/kern/disk.c:322: Opening `lvm/debian-root' failed. grub-core/kern/disk.c:336: Closing `lvm/debian-root'. grub-probe: error: no such disk. #cat /proc/self/mountinfo 14 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw 15 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw 16 19 0:5 / /dev rw,relatime - devtmpfs none rw,size=1032236k,nr_inodes=218149,mode=755 17 16 0:11 / /dev/pts rw,nosuid,noexec,relatime - devpts none rw,gid=5,mode=620,ptmxmode=000 19 1 254:1 / / rw,relatime - ext3 /dev/mapper/debian-root rw,errors=remount-ro,data=ordered 20 19 0:15 / /lib/init/rw rw,nosuid,relatime - tmpfs tmpfs rw,mode=755 21 16 0:16 / /dev/shm rw,nosuid,nodev,relatime - tmpfs tmpfs rw #dmsetup info Name: sda5_crypt State: ACTIVE Read Ahead: 256 Tables present: LIVE Open count: 2 Event number: 0 Major, minor: 254, 0 Number of targets: 1 UUID: CRYPT-LUKS1-c2ae0154a70a4cc4ab67fd09160d324e-sda5_crypt Name: debian-swap_1 State: ACTIVE Read Ahead: 256 Tables present: LIVE Open count: 1 Event number: 0 Major, minor: 254, 2 Number of targets: 1 UUID: LVM-f1RPasJTVWERliOIZ89qRtRa0HQC0yi3HwG0uMqmiO3GKhFB9h215Yc8bWeNyBF5 Name: debian-root State: ACTIVE Read Ahead: 256 Tables present: LIVE Open count: 1 Event number: 0 Major, minor: 254, 1 Number of targets: 1 UUID: LVM-f1RPasJTVWERliOIZ89qRtRa0HQC0yi35Ou2JOv3fyH9OWMnTCOkDM1DoREdFaJC _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?34964> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub