Comment 4 for bug 70561

Revision history for this message
tarski (guy-laffitte) wrote :

   I found a way to install Xubuntu Dapper on a little machine ( laptop IBM Thinkpad with 128 MB memory ).

   The main problem is that ubiquity unmounts all swap parttions during disk partitioning.

   My solution needs two tricks :
1 Use a swap partition on a USB key,
2 Prevent ubiquity from unmounting it.

   I added a third trick : create a little ext3 partition on the USB key to store the interesting log files which are generally lost in case of system crash or freeze ( unmounting swap partition on a machine with not enough memory often leads to system freeze ).

   In what follows, I suppose that the USB key is recognized as device 'sda'. With gparted, create a swap partition sda1 of at least 100 MB, and an ext3 partiton sda2 of about 10 MB. Then, perform the following actions in a terminal :
1 sudo su
   # to feel quiet in following actions
2 swapon /dev/sda1
3 mkdir -p /media/sda2
4 mount /dev/sda2 /media/sda2 -t ext3 -o defaults
5 cd /media/sda2
6 touch syslog
7 touch partman
8 cd /var/log
9 ln -s /media/sda2/partman
10 mkdir -p installer
11 cd installer
12 ln -s /media/sda2/syslog
13 cd /usr/lib/python2.4/site-packages/ubiquity
14 rm -f misc.pyc
15 rm -f misc.pyo
   # to force python interpreter to recompile misc.py file
16 mousepad misc.py &
17 In 'disable_swap', replace line

        if swap.startswith('/dev'):

   by the three following lines

        if swap.startswith('/dev/sda'):
            pass
        elif swap.startswith('/dev'):

   then save the file and exit mousepad.

18 Launch the installer