Difference between revisions of "Moving Ubuntu 10.04 to a ThinkPad X220"

From ThinkWiki
Jump to: navigation, search
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Ubuntu 10.04 does not work out of the box on the Thinkpad X220, and Ubuntu
+
Perhaps you think that Ubuntu 11.04 has too many annoying changes
11.04 has too many annoying changes (and some irritating bugs that affect
+
(and some irritating bugs that affect usability)
usability) to be considered as an option. To make matters worse, the X220 does not accept a standard notebook drive (it needs one of the new 7mm slim drives), so one can't move the old drive to the new laptop (I think the Thinkpad engineers screwed up big-time here, but that's just my opinion).
+
to be considered as an option for use an a ThinkPad X220.
  
Anyway, if you already have a working Ubuntu 10.04 installation on your machine
+
Suppose you have Ubuntu 10.04 installed on an older ThinkPad
and want to move it to your new X220 here's a simple recipe:
+
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
 
- boot the X220 with a Ubuntu 11.04 CD
Line 19: Line 27:
  
 
- as root, run the following:
 
- as root, run the following:
 +
 
   apt-get update
 
   apt-get update
 
   apt-get install linux-image-generic-pae linux-firmware
 
   apt-get install linux-image-generic-pae linux-firmware
Line 33: Line 42:
 
[https://launchpad.net/~glasen/+archive/intel-driver glasen] as described
 
[https://launchpad.net/~glasen/+archive/intel-driver glasen] as described
 
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_10.04_%28Lucid_Lynx%29_on_a_ThinkPad_X220 here]
 
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_10.04_%28Lucid_Lynx%29_on_a_ThinkPad_X220 here]
 +
 +
[[Category:Ubuntu 10.04]]
 +
[[Category:X220]]

Latest revision as of 20:34, 13 July 2011

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