Results 1 to 5 of 5

Thread: Persistent, secure Ubuntu on USB drive

  1. #1
    Join Date
    Nov 2007
    Beans
    24

    Persistent, secure Ubuntu on USB drive

    Okay, I searched all over and found some of my own answers to this, but I still need a little help.

    I want to run Ubuntu from a USB drive in a persistent way. So e.g. if I save a file to Home, install an application, or tell Firefox to "Remember me" on Gmail, it stays there between boots. I've seen it done before, and I've used Tails, so I know it must be possible. So my first question is about how to set this up.

    The answer I've found for myself so far is: use PenDriveLinux's Universal USB installer, along with an ubuntu ISO (downloading now). FYI I'm doing this from windows 7.
    Is this right? Or can the Ubuntu install disc make a persistent USB drive on its own?
    In that PenDriveLinux universal USB installer, what does "Set up a persistent file size for storing changes" mean? Will this set up an entirely separate, persistent partition, or does it just mean the home drive will be persistent? All I want is for my programs, settings, and Home drive to persist.

    My second question is about security. If I lose this stick, I mainly don't want someone to access my stored browser settings, e.g. the cookie that keeps me logged into gmail.
    I know Ubuntu natively supports an encrypted Home and Swap directory now. Is this sufficient to protect my browser settings?

    Also, crazy question, but I know Tails wipes the host computer's RAM when you log off. Is it really possible for someone to log onto the same host PC and access my data from the RAM? My guess is "it's extremely unlikely" but I'm curious to know.

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Persistent, secure Ubuntu on USB drive

    If you're worried about losing the USB drive then my suggestion would be to do a full installation on it using full drive encryption. This is exactly the same as a normal installation on a hard disk.

    When you use either the 'Universal USB Installer' or the 'Startup Disc Creator' you are basically creating a Live CD, with the extra option of storing all of your saved data and installed programs in a separate file on the USB drive. This casper-rw file isn't encrypted so anyone who has hold of the device could access all of your files.

    By doing a full installation instead you can choose to have everything encrypted.

    For the pros and cons of each method take a look at this post...
    http://ubuntuforums.org/showpost.php...55&postcount=2

    Also take a look through oldfred's posts on installing to a USB stick...
    http://ubuntuforums.org/showpost.php...97&postcount=2
    Cheesemill

  3. #3
    Join Date
    Nov 2007
    Beans
    24

    Re: Persistent, secure Ubuntu on USB drive

    Thanks, that helps! So it looks like I want a full install. Encrypting the entire OS might be overkill, but we'll see.

    The big remaining questions are:
    1. Is the browser data (cookies etc.) located entirely within the home directory? Will selecting "encrypt home directory" be enough to secure the browser data? This is really my main objective here, is preventing someone who finds the stick from, say, logging into my cookied email.
    2. Can I do a full install onto USB from the windows installer? Or do I have to go dig up a blank CD somewhere?


    edit: I took a further look at Wubi and yes, it looks like it can install to a USB drive.
    Last edited by alnilamski; January 8th, 2013 at 07:41 PM. Reason: more info about Wubi

  4. #4
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Persistent, secure Ubuntu on USB drive

    Quote Originally Posted by alnilamski View Post
    Is the browser data (cookies etc.) located entirely within the home directory? Will selecting "encrypt home directory" be enough to secure the browser data? This is really my main objective here, is preventing someone who finds the stick from, say, logging into my cookied email.
    Yes. All of your user documents and settings are contained within your home directory.

    1. Can I do a full install onto USB from the windows installer? Or do I have to go dig up a blank CD somewhere?

    No. You can't use Wubi to do a full installation onto a USB stick. You can either burn an installation DVD or create a separate Live USB stick to run the installation from.
    Cheesemill

  5. #5
    Join Date
    Nov 2007
    Beans
    24

    Re: Persistent, secure Ubuntu on USB drive

    Quote Originally Posted by Cheesemill View Post
    No. You can't use Wubi to do a full installation onto a USB stick. You can either burn an installation DVD or create a separate Live USB stick to run the installation from.
    So does that mean Wubi's option to "install to USB drive" just means it's creating a liveUSB?

    edit: Okay, I burned an installation disc and used it to do a full install to a USB stick as per C.S. Cameron's instructions that you linked to.
    It worked. Thanks!
    Last edited by alnilamski; January 10th, 2013 at 02:56 AM.

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
  •