HOW TO: Expand the ‘ubuntu.img’ install for Xoombuntu.

NOTE: This is partially based on a post from here…. Thanks Murphy!

OK, to do this you have to have a linux running on a computer… it could either be installed or you could be running off a live CD/USB…

1.If you haven’t installed Ubuntu on your Xoom, or if you want to start new, just re download the ubuntu package from my original post, or you are going to have to copy over your ubuntu.img from /sdcard/ubuntu/ on your Xoom. Place this somewhere easy to access on your machine.

2. Open your terminal and type in ‘su’ so you have root access.

3. Change the directory to where you put ubuntu.img … lets say I am using Ubuntu to do this and I have ubuntu.img on my desktop. So I would do this: cd /home/user/Desktop

4. Now you are going to create a blank .img file… so I am going to make mine 4GB, so for the file size (x) I would put 4000999999 for (x)…. if you want to make it 3.5GB, you could put 3500999999. Now you are goi

create an empty image file: (the 3500999999 refers to the size – this one is 3.5 GB, basically take the first 4 digits and thats how many megabytes the image will be)

dd if=/dev/zero of=ubuntu2.img seek=x bs=1 count=1 –Where x is the file size you want it to be. The installed ubuntu.img that I provided in the original install is about 2.5GB, so make sure it is more than that.

Your new image file is called ubuntu2.img

5. Now on your ubuntu machine (in the same terminal window):

mke2fs -F ubuntu2.img

Mount the two .img files (the empty one and the original)

mkdir ubuntu
mkdir ubuntu2
mount -o loop ubuntu.img ubuntu
mount -o loop ubuntu2.img ubuntu2

Copy the contents of the original .img into the new:

cd /home/user/Desktop/ubuntu/

cp -R -f * /home/user/Desktop/ubuntu2

Now you are going to unmount the folders.

umount ubuntu
umount ubuntu2

(sometimes this doesn’t work… if it doesn’t, reboot your machine and try again)

Once that’s done

Back to your linux terminal:

As root (su):

Delete the 2 folders ubuntu and ubuntu2

rm -r -f ubuntu
rm -r -f ubuntu2

delete the original img:

rm ubuntu.img

rename the new img:

mv ubuntu2.img ubuntu.img

change permissions:

chmod a+x ubuntu.img
chmod 777 ubuntu.img

Then move the new ubuntu.img to the Xoom’s /sdcard/ubuntu (If it asks you, replace the old ubuntu.img)

Finally on your Xoom boot ubuntu shell as normal and at the localhost$ prompt do:

cd /var/lib/dpkg/updates

rm -r -f *


dpkg –configure -a (may take a few minutes, ignore the errors)

And there you go! More space on your Ubuntu install.

Now I am working on getting 10.10 to run on the Xoom well (And then 11.04, which has a touch optimized UI). I am also still working on iOS on the Xoom, but I am making fairly limited progress at the moment (Hey Saurik, want to help?)

I am also trying to find someone who will be getting an Acer Iconia tablet, or Asus Transformer (Both upcoming Android 3.0 honeycomb tablets with a Tegra 2 chip) who would be willing to test my Xoombuntu install on them… or some of you guys could pitch in to give me a early Festivus? :P

5 comments. Leave a Reply

  1. Murphy

    Hi, you should at least change:
    cd /home/user/Desktop/ubunu/
    cd /home/user/Desktop/ubuntu/

    • Oy…. I should really stop writing guides early in the morning. Thanks man.

  2. Hi ,

    is unity ported on arm version.
    also nice work on dual img file however that again is something which will depend on the need… like in my case i have a 8GB card on Xperia X10 and in that if i will give 7 GB to Ubuntu that leaves very little for myself.

  3. TomL

    Worked for my Galaxy Tab great. 4gb max though on FAT32. Looking forward to all you have to offer!!!

  4. AtomicAngel

    I have an Iconia and I’m interested in seeing if this will work so I will post my results on here later for you guys and if I had to modify any steps…

    Also, could I hypothetically unzip all this on the tablet and drop it into the system that way since I am already rooted or must it be ADB’d? (I’ll find out shortly, but I’m asking mostly so you can reply and possibly let me know.)

Leave a Reply

Your email is never published nor shared.

You may use these HTML tags and attributes:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>