booting iso from stick via grub2 loopback gets stuck on particular crypt-luks partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iso-scan (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: iso-scan
Booting lucid desktop iso 20100210 64 bit from usb-stick via grub2 loopback does not work. It says "mounting /dev/sda5 on /isodevice failed: Invalid argument" and I get dropped to the shell. /dev/sda5 is not where the iso is. It happens to be a crypt-luks partition.
Using Bug #454456 as recipe I was able to continue the boot process by using the following commands:
(initramfs) mount -t ext4 /dev/disk/
(initramfs) echo "LIVEMEDIA=
(initramfs) echo "LIVEMEDIA_
(initramfs) exit
Booting the iso via loopback from the hard disk works fine, as does booting via loopback from this usb-stick on a different computer with a far simpler partition layout (no crypt-luks partiton among other things).
I have then gone and made a luks partition on the computer with the simpler layout. Booting from the stick still worked.
I have then overwritten the offending luks partition on the first computer with an ext4 filesystem. Now booting from the stick works.
suspicion:
iso-scan/
the first bit of casper.log after boot with manual help:
Begin: Running /scripts/
Done.
Begin: ...waiting for devs... ...
Done.
stdin: error 0
mount: mounting /dev/sda5 on /isodevice failed: Invalid argument
Cannot mount /dev/sda5 on /isodevice
Done.
Done.
Begin: Creating debconf-communicate fifo mechanism ...
Done.
Begin: Running /scripts/
Begin: Moving mount points... ...
Done.
Begin: Adding live session user... ...
The layout:
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 63, size= 36419292, Id=83, bootable
/dev/sda2 : start= 0, size= 0, Id= 0
/dev/sda3 : start= 36419355, size=276157350, Id= 5
/dev/sda4 : start= 0, size= 0, Id= 0
/dev/sda5 : start=114543513, size= 60998742, Id=83
/dev/sda6 : start=175542318, size= 86879457, Id=83
/dev/sda7 : start= 36419481, size= 5012154, Id=82
/dev/sda8 : start=262421838, size= 20322162, Id=83
/dev/sda9 : start=282744063, size= 19534977, Id=83
/dev/sda10: start= 41431698, size= 45062262, Id=83
I also attach a copy of the mbr.
Both layout and mbr remained identical before (with luks partition) and after (with luks partition overwritten).