Upgrading Ubuntu on systems with small disks
I used this procedure to upgrade from 9.04 NBR to 9.10 NBR on an Eee 701 4G. After the upgrade, the internal drive was 89% full. (It barely fits!)
Note: This is a horrible, unsupported thing to do, and you should just do a fresh install. Nonetheless, it's worked fine for me for two Ubuntu upgrades and kept me from having to reconfigure everything to get things just the way I like them. Here we go…
Switch to a console via, say, Ctrl+Alt+F1 (do not do the upgrade from within Gnome, KDE, etc.)
Make yourself root
Run apt-get clean
Mount a large external drive, SD card, USB stick, network share, etc., as /mnt/storage
Create the directories /mnt/storage/aptcache and /mnt/storage/aptcache/partial
Create /etc/apt/apt.conf (if it doesn't exist) and add the following line:
dir::cache::archives ”/mnt/storage/aptcache”;
Edit /etc/apt/sources.list and replace all instances of “jaunty” with “karmic” (or whatever)
Run apt-get update
Run apt-get dist-upgrade (generally answer “Yes” to things)
Run apt-get autoremove
Reverse the changes you made to /etc/apt/apt.conf
Unmount and remove the external drive
Reboot
Enjoy Ubuntu!