Results 1 to 9 of 9

Thread: Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

  1. #1
    Join Date
    Nov 2012
    Beans
    8

    Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

    People experience lots of problems with Windows 7 and Ubuntu 12.10 both encrypted (Truecrypt and Luks) and installed on the same machine. There are different methods for different versions of Ubuntu, which involve identification of correct partitions and typing multiple commands. Most options involve alternative CDs, which are no longer used in Ubuntu 12.10.

    The idea is to have: 2 partitions for Windows; 2 partitions for Ubuntu; installation of Windows 7 first; then Ubuntu 12.10 (with Luks); automatic Grub repair via graphical interface; and Truecrypt. At Truecrypt prompt, you will either enter a password to load Windows or press “Esc” to load Ubuntu (after entering your Luks password). This works in Ubuntu 12.10, which unlike Kubuntu or its other brothers, has an option to have a logical partition with encryption in its installer's "something else" option. Here are simple instructions:

    You need the following:

    1. Ubuntu 12.10 live CD;
    2. Windows 7 CD; and
    3. Boot repair tool.

    First, start Windows and choose custom install. Pick the size for your Windows 7 partition. Windows will automatically create a 100mb additional boot partition for itself. Leave the rest of your space unallocated. Install Windows and configure it the way you like it. Next, insert Ubuntu 12.10 CD and reboot your computer. Start installation. At installation type prompt, pick “something else. “ Next, you will be taken to partition editor. You will see your 2 windows partitions and perhaps some other stuff depending on your computer. Highlight "free space" and create your Ubuntu boot partition by clicking “+” in the left bottom corner of the partition editor. Boot partition is usually about 250mb in Ubuntu 12.10. Pick the size of your boot partition, set it as /boot and use it as Ext2 or 4. Leave other options untouched. In other words, you will be creating a logical partition with boot mount point. Click OK. Next, you will again be presented with partition editor reflecting your newly created boot partition. Highlight "free space" again and create your root partition for Ubuntu install. Pick the size and this time use it as “physical volume for encryption.” You will immediately be presented with an option to enter your Luks password. Do it and press OK (there will also be an option to overwrite your empty disk space, which is optional). You are not done yet. Once you get to the partitioner again, you will see you newly created second partition as “dev/mapper/sda*.” Now, highlight it and choose “change” (again in the left bottom corner). This time, set the mount point as root, i.e. “/” and use Ext4. Next, you will again be taken to the main partitioner window, which should show your boot and root partitions. DONE. Install your Ubuntu.

    Once you are finished and reboot, you wouldn't be able to get into your Ubuntu, because unlike an alternative CD (which Ubuntu no longer uses), 12.10 doesn't let you choose where to install Grub. In addition, you disregarded installer's suggestion to set Ubuntu alongside Windows 7 (in that case, you wouldn't have been able to use Luks full drive encryption). As a result, Grub has no idea about your windows 7.

    Hence, you reboot with Ubuntu live CD and choose “try ubuntu.” Now, this is crucial: click on your Luks encrypted drive icon (which should be visible on your desktop) and enter your password. Your drive will be unlocked and mounted. Next, get Boot Repair tool by entering the following in your terminal:

    sudo add-apt-repository ppa:yannubuntu/boot-repair
    sudo apt-get update

    sudo apt-get install -y boot-repair


    Open Boot-Repair tool and let it work. It will examine your configuration and offer options. Choose recommended repair. Boot-repair will start working. At some point, it will instruct you to enter a number of commands in terminal. Do it (copy/paste). Then finally, your Grub will be repaired and properly installed. Reboot your computer and you should get to a familiar grub menu with options for Ubuntu and Windows. Make sure that you can boot both. Next, load Windows 7 and install Truecrypt. Start encryption wizard. Choose to encrypt Windows 7 partition. Use multi-boot option. Truecrypt forces you to create a recovery CD and to test its boot loader before actual encryption takes place. Do as required and reboot your computer. You should be presented with a Truecrypt prompt. At that point, if you enter your Truecrypt password, you should be able to load Windows. If you press “Esc” you should get to Grub menu. Once you pick Ubuntu, you should get your Luks password prompt. Again, make sure that you can load both OS. Then encrypt your Windows partition in Truecrypt.

    If something goes wrong, you have Truecrypt recovery CD to take care of Windows 7 and Ubuntu CD to help your Ubuntu 12.10. Good luck and Hail to Privacy...
    Last edited by optimumpro; December 30th, 2012 at 07:13 AM.

  2. #2
    Join Date
    Sep 2012
    Beans
    4

    Re: Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

    I apologize if this is a stupid question, but how would I modify these instructions if I already have Windows 7 installed (haven't touched the partitioning since purchasing the computer with Windows 7 preloaded)? I'd prefer not to reinstall Windows 7, particularly since I'm not sure I still have all the OEM discs.

    Thanks.

  3. #3
    Join Date
    Nov 2012
    Beans
    8

    Re: Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

    Quote Originally Posted by biolizard89 View Post
    I apologize if this is a stupid question, but how would I modify these instructions if I already have Windows 7 installed (haven't touched the partitioning since purchasing the computer with Windows 7 preloaded)? I'd prefer not to reinstall Windows 7, particularly since I'm not sure I still have all the OEM discs.

    Thanks.
    It is possible to install Ubuntu on top of already installed windows 7, but you obviously need at least 2 partitions for your Ubuntu installation. You can try to use Windows to shrink your existing partitions, but it didn't work in my case: I would always get a not enough space error, although there was plenty of space available on my hard drive. Also, keep in mind that if your Windows 7 is already encrypted, you will need to decrypt it first unless you have a Truecrypt recovery CD. Otherwise, the instructions are the same. On some computers, you don't even need boot-repair to fix your grub. So, once you have installed Ubuntu (on top of Windows), reboot, and if you get into Grub menue and both Windows and Ubuntu could be booted, then you are fine to proceed with encryption without boot repair. Also, you might want to look at my post regarding dual boot encryption using Diskcryptor instead of Truecrypt: http://ubuntuforums.org/showthread.p...ryptor+windows
    Last edited by optimumpro; January 11th, 2013 at 08:08 PM.

  4. #4
    Join Date
    Sep 2012
    Beans
    4

    Re: Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

    Quote Originally Posted by optimumpro View Post
    It is possible to install Ubuntu on top of already installed windows 7, but you obviously need at least 2 partitions for your Ubuntu installation. You can try to use Windows to shrink your existing partitions, but it didn't work in my case: I would always get a not enough space error, although there was plenty of space available on my hard drive. Also, keep in mind that if your Windows 7 is already encrypted, you will need to decrypt it first unless you have a Truecrypt recovery CD. Otherwise, the instructions are the same. On some computers, you don't even need boot-repair to fix your grub. So, once you have installed Ubuntu (on top of Windows), reboot, and if you get into Grub menue and both Windows and Ubuntu could be booted, then you are fine to proceed with encryption without boot repair. Also, you might want to look at my post regarding dual boot encryption using Diskcryptor instead of Truecrypt: http://ubuntuforums.org/showthread.p...ryptor+windows
    Excellent, thank you for the information.

  5. #5
    Join Date
    Dec 2006
    Beans
    36

    Re: Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

    I'm having trouble following these directions.

    Everything is fine until I encrypt my windows partition with truecrypt and then I am unable to boot into ubuntu. When I push escape it can't find my ubuntu partition. If windows is unencrypted then I can boot either ubuntu or windows from the grub menu following boot-repair.

  6. #6
    Join Date
    May 2009
    Beans
    106

    Re: Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

    why dont you use truecrypt for the linux install too?

    thats how i have it setup.

  7. #7
    Join Date
    Dec 2006
    Beans
    36

    Re: Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

    system encryption in truecrypt does not work with non-windows operating systems.

  8. #8
    Join Date
    May 2009
    Beans
    106

    Re: Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

    Quote Originally Posted by BenWhitey View Post
    system encryption in truecrypt does not work with non-windows operating systems.
    what?

    im not understanding what you mean..

    seems to work fine for me?

  9. #9
    Join Date
    Dec 2006
    Beans
    36

    Re: Windows 7 plus Truecrypt plus Ubuntu 12.10 plus Luks encryption

    http://www.truecrypt.org/docs/?s=sys...n-supported-os

    You need to chain your bootloaders in order to get it to work

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •