Results 1 to 3 of 3

Thread: Multiple Partitions and Encryption on a USB drive

  1. #1
    Join Date
    Dec 2012

    Multiple Partitions and Encryption on a USB drive


    I am trying to make a USB drive with multiple partitions, with encryption.
    somewhat like this :


    Initially, both partitions will be encrypted.

    1. on windows, the green program would have to be run by the user.
    it will auth the user and allow access to just the red partition.
    blue (ubuntu) partition will still remain hidden

    my idea here is to "compartmentalize" the data. hiding ubuntu from windows and the red partition from other users (until auth'd with the green program

    2. on linux
    at splash screen, the credentials input will unlock the red portion. allowing it to be used normally as a usb drive.

    I am following steps for multiple partitions from here :
    and i've successfully managed to make the partitions.

    Now, im stumped at the "installing" part, ie, how to install Ubuntu to one of the partitions.
    And i mean "install". im not trying to create a installer here. i want a full fledged OS (think persistence with changes, like a portable OS)

    So, is there any linux command for doing this? ( I think i remember someone saying dd could write data to devices, but what about making it bootable?)

    Also, the normal methods (like unetbootin, LiLo), will they work? or will they use up the entire usb drive instead of a single partition?

    also, if anyone can help me figure out the encryption part, please do so!!!

    thanks a lot, and thats all for my maiden thread.
    *prays to sudo that thread is in correct section*
    Last edited by doomgiver; December 11th, 2012 at 12:18 PM.

  2. #2
    Join Date
    Dec 2012

    Re: Multiple Partitions and Encryption on a USB drive

    bump... any solution?

  3. #3
    Join Date
    Nov 2011

    Re: Multiple Partitions and Encryption on a USB drive

    Welcome to the Ubuntu Forums, doomgiver,

    I have done most of the things you want to do, and it is not too difficult.

    Look at these links

    So you can install Ubuntu (or even better Lubuntu or Xubuntu, that are smaller and therefore faster from a USB pendrive). Select encrypted home directory during the installation!

    An alternative is to install it to a HDD or SSD without any proprietary drivers, and when it works properly simply clone it to a USB pendrive. If you clone the whole drive, it will also include the boot sector. You will need to repair the partition table, because the sizes of the drive are different, but it should not be too difficult.

    If you make the first partition readable by Windows (for example with the FAT32 or NTFS filesystem) and use the second partition for Ubuntu (and possibly a third partition for swap), it will work. Then you need some tool to unlock the hidden partition, directory or files, that works in Windows and Linux. If "only" a directory with files, you can use gpg. I don't know if truecrypt is available for Windows.

Tags for this Thread


Posting Permissions

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