Moving Ubuntu 10.04 to a ThinkPad X220

From ThinkWiki
Revision as of 20:34, 13 July 2011 by Jdthood (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Perhaps you think that Ubuntu 11.04 has too many annoying changes (and some irritating bugs that affect usability) to be considered as an option for use an a ThinkPad X220.

Suppose you have Ubuntu 10.04 installed on an older ThinkPad and you want to continue using that.

Unfortunately, you can't just move the hard drive over. First of all, a newer kernel is needed for the X220. But in any case the X220 does not accept a 9.5mm-thick notebook drive — it needs one of the new 7mm slim drives.

Here are the steps to take.

- boot the X220 with a Ubuntu 11.04 CD

- partition the disk in the X220 to your liking

- transfer your existing installation to the X220 disk over the network; I prefer using netcat + dump/restore, but rsync will work too

- chroot to your new installation

- add the following at the top of your /etc/apt/sources.list

   deb http://us.archive.ubuntu.com/ubuntu/ natty main restricted universe

- as root, run the following:

 apt-get update
 apt-get install linux-image-generic-pae linux-firmware

- make sure you install a boot loader in the new disk

And that's all it takes. You'll end up with your existing 10.04 installation running a recent kernel that supports the hardware on the X220.

Graphics

The recipe above will use the framebuffer for your graphic session. It is recommended that you install the intel driver from glasen as described here