ello, my boot is broken. I installed the new kernel (3.0.36?) last night with aptitude, but I run torsocks with it. It was late and I cancelled the thing (WRONG!). Before shutting down the computer with 'shutdown now' (and then pressing the power button), I did 'dpkg --configure -a' '/usr/bin/aptitude install linux-image-' and had to come back from bed, because the laptop was not off. I pushed the power button, and went to sleep. This morning, grub is telling me that it can't find my root partition which is encrypted with dm-crypt (cryptsetup). For what I have read, this might have to do with initrd.img not loading the dm-crypt modules, but I don't know. I end up being in a busybox shell that tells me that root is not found (that is /dev/mapper/Lap-root).

I tried doing a chroot by first mounting the encrypted drive:
(credits go to
http://stephentanner.com/index.php/2011/05/restoring-grub-for-an-encrypted-lvm/
blog.lifebloodnetworks.com/?p=1348
)
modprobe dm-crypt;
cryptsetup luksOpen /dev/sda5 hd;
vgscan;
vgchange -a y system;
lvscan;
mount /dev/system/root /mnt && sudo mount /dev/sda1 /mnt/boot && sudo mount -o bind /dev /mnt/dev ; sudo mount -t proc proc /mnt/proc ; sudo mount -t sysfs sys /mnt/sys;
chroot /mnt;
grub-install /dev/sda;
update-grub


the blkid from liveCD shows:
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="5a07711e-189b-441f-a84c-774924575bb4" TYPE="ext2"
/dev/sda5: UUID="23020fcc-61ae-47f0-9215-a77a446b78c1" TYPE="crypto_LUKS"
/dev/sr0: LABEL="trisquel-mini 6.0 amd64" TYPE="iso9660"


the grub.cfg shows
...
search --no-floppy --fs-uuid --set=root 5a07711e-189b-441f-a84c-774924575bb4
linux /vmlinuz-3.5.0-36-generic root=/dev/mapper/Lap-root ro splash quiet $vt_handoff
...


zcat /mnt/grub/ | cpio -t | grep crypt
lib/modules/3.5.0-36-generic/kernel/drivers/block/cryptoloop.ko
lib/modules/3.5.0-36-generic/kernel/crypto
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_memcpy.ko
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_pq.ko
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_xor.ko
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_tx.ko
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_raid6_recov.ko
lib/modules/3.5.0-36-generic/kernel/crypto/xor.ko

So... can someone help me? Should I give more info?


Thanks!

Reply via email to