Wednesday, September 9, 2009

Dual-booting Windows 7 x64 and Ubuntu 9.10 x64 on Intel Matrix RAID'ed hard disks, with TrueCrypt

  1. Install Windows 7.
  2. Encrypt system volume with TrueCrypt.
  3. Boot a Linux live CD with support for isw (Intel Matrix RAID), e.g. Ubuntu 9.04.
  4. Plug in a thumb drive, mount it on /media/thumb
  5. dd if=/dev/sda of=/media/thumb/truecrypt.mbr count=1 bs=512
  6. Install Ubuntu 9.10, DO NOT REBOOT JUST YET because grub2 does not support isw, we want to install grub1
  7. mount --bind /dev /target/dev
    mount -t proc proc /target/proc
    mount -t sysfs sys /target/sys
    cp /etc/resolv.conf /target/etc
    chroot /target /bin/bash
  8. apt-get update
    apt-get install grub
  9. mkdir /boot/grub
    cp /usr/lib/grub/x86_64-pc/* /boot/grub
    grub --device-map=/dev/null
    device (hd0,5) /dev/mapper/isw_xxxxxxxxxx_Volume05
    root (hd0,5)
    setup (hd0)
  10. Plug in the thumb drive where you put truecrypt.mbr, mount it on /media/thumb
  11. cp /media/thumb/truecrypt.mbr /boot/grub
  12. Add this to /boot/grub/menu.lst:
    title Windows 7
    rootnoverify (hd0,5)
    makeactive
    chainloader /boot/grub/truecrypt.mbr

No comments: