I munged my GRUB when I installed 9.10 from a LiveCD onto a USB hard drive. After ejecting the LiveCD and disconnecting the hard drive, I can no longer boot my machine. GRUB tells me something to the effect that the disc isn't found. My guess is that installing onto an external USB drive modified my GRUB settings on my internal hard drive. The problem is that my internal drive is encrypted via LVM+LUKS. My plan is to boot into the LiveCD, unlock my internal drive, mount my internal drive, chroot into my internal drive's Ubuntu 9.10 installation, fix GRUB, and live happily ever after. Unfortunately, I'm stuck at decrypting my internal drive. From everything I've gathered (e.g. http://ubuntuforums.org/showthread.php?t=611165), the steps I need to do this are:
1) sudo su
2) aptitude install lvm2 cryptsetup
3) modprobe dm-crypt
4) cryptsetup luksOpen /dev/sda5 crypt1
The last step gives me this error, which doesn't seem to be explained in any of the threads I've seen on the subject:
Command failed: Can not access device
Which is strange, because "cryptsetup isLuks /dev/sda5" returns true and looking at fdisk -l reveals:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xDEADBEEF
Device Boot Start End Blocks Id System
/dev/sda1 * 1 12 96358+ 83 Linux
/dev/sda2 13 30401 244099642+ 5 Extended
/dev/sda5 13 30401 244099611 83 Linux
Any suggestions?
Thanks,
TM



Adv Reply
Bookmarks