Fork me on GitHub
Skip to content

Upgrade Ubuntu Karmic Koala from 32bit to 64bit with encrypted /home

by anthony on January 5th, 2010

I was deciding if I wanted to take advantage of running on a 64bit kernel on Ubuntu 9.10 Karmic Koala, and I really had no reason to stick with 32bit. 64bit allows better performance, and has been reported to be as stable as 32bit while being faster.

I have been hesitant about upgrading in the past to 64bit for a number of reasons:  application support, driver support, flash support, etc.  Doing some reading lately (here, and here), I decided it’s time to leave 32bit in the dust and jump on the 64bit bandwagon.  If my hardware supports it, why not?

The next question I had was with my encrypted /home partition.  Is it as easy as reinstalling with the same options (read on, you’ll find out!)?  Will I have to copy my data elsewhere and copy back over when I’m done?  Can I upgrade in-place or do I have to reinstall entirely?  Is my laptop going to asplode?

My partitioning is as follows:

Screenshot--dev-sda - GParted

Screenshot--dev-sda - GParted

I was concerned about not having 64bit Karmic Koala pick-up/use my encrypted home directory automatically on login.  I decided to throw up a virtual machine of Karmic with the /home on a separate partition and used the encryption option on the user-creation box.  I then reinstalled the 64bit version on top of that using the same /home mountpoint, formatting the / mountpoint, installed with the same encryption option selected, and checked to see that a document that I had created on the Desktop was still there.  Lo-and-behold (where did that saying come from, anyway?) I had success!  The only thing left to do was the actual upgrade.

Before you start, make sure you have a proper backup of your data.  There’s the steps I used:

  • Downloaded the 64bit ISO and installed that to my USB drive
  • Booted from the USB drive
  • Formatted /dev/sda1 as ext4 and set mountpoint as /, used /dev/sda5 as ext4 and set mountpoint /home (do not format this)
  • Used the same username, password, checked the “automatically decrypt” option on the user creation form
  • Install!

I logged in and all of my settings and data were there as expected.  I only had to reinstall some programs that aren’t installed by default that I use, (chromium-browser, skype, etc).   Also, I am a good boy and have a backup of my home directory (which I can discuss in a later post) just in case it went bad.

I can now ride the wave of the future (with style) on 64bit Ubuntu 9.10 Karmic Koala! I hope this may be of use for some people.

From → technology

8 Comments
  1. Hey, since when do you use a swap partition?

  2. @Kyle Saunders: Actually, I did some re-partitioning and figured it couldn’t hurt. It’s encrypted swap, too, which was easy to set up.

  3. I had to install encryptfs-utils first (using tty1), but after that it did work. Maybe it’s because I used the alternate installer (I use LVM).

  4. @anthony: Why encrypt your swap? Does that serve a legitimate function?

  5. kevin robledo permalink

    hi…how can optimize my RAM capabilities?

    tnx

  6. cement_head permalink

    Can you explain this step in more detail?

    “Formatted /dev/sda1 as ext4 and set mountpoint as /, used /dev/sda5 as ext4 and set mountpoint /home (do not format this)”

    It doesn’t make sense to me.

  7. @cement_head

    When you run the installer, select manual partitioning. It will let you pick what partitions of your hard drive you can format and pick where you want to mount them. In my example, I formatted everything except the partition that I had my /home directory on.

    Does this help clarify at all?

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS