Wednesday, June 17, 2015

no common cd rom drive was detected

When installing Debian from external USB harddisk, you might encounter
this error message:

"no common cd rom drive was detected"

Just enter "No" and enter "/dev/sdb"



Monday, June 15, 2015

how to restore grub with encrypted partition (dm-crypt)

If you have an encrypted parition with dm-crypt for "/" and your GRUB
is corrupted (or wiped after installing other operating system onto the
same computer), please follow these tips.

- grub-install and update-grub need to be executed under chroot'ed.

This is the most important tip. You must chroot into the encrypted
partition first.

- cryptsetup luksOpen /dev/sda3 csda3
- mount /dev/mapper/csda3 /mnt/system
- (assuming csda3 is /)
- (assuming sda2 contains an unencrypted /boot for this operating
- mount /dev/sda2 /mnt/system/boot
- mount -o bind /dev/ /mnt/system/dev/
- mount -o bind /proc/ /mnt/system/proc/
- chroot /mnt/system
- grub-install /dev/sda
- update-grub

Friday, June 12, 2015

Friday, June 5, 2015

Super Cool configuration for VIM