HowTo extend HTC Desire internal memory to 2Gb using CyanogenMod 7 and Data2SD

Posted on Sat 13 August 2011 in HowTo • Tagged with Android, Google, Linux, howto, cyanogenmod



Even if it's not a new model, the HTC Desire is still a very good Android device, thanks to its 1Ghz CPU and 512 Mb RAM, but one of the biggest problems of this phone is that it comes with only 148Mb available in the ROM. Once the operating system is installed (ROM I mean), after installing few useful applications you'll end the available space very soon. There are many apps available, like App2SD that move your applications to the SD card, but it's not enough because only the application is moved, not the data. To move the data to the SD card, there is a very nice utility called Data2SD. Please note that this procedure requires you to reflash your device and partition your SD card, so please do a complete backup before proceding.

What you need

Backup your data

Before following these instructions, please do a complete backup of your microSD, of your original ROM (using Nandroid or similar) ecc...

Prepare the microSD card

  • Open GParted on your Ubuntu Linux or use the GParted Live CD/USB.
  • Delete all partitions on this microSD
  • Create the first one using FAT32 filesystem, leaving 2Gb (2047Mb) available at the end.
  • Create a second partition using ext4 filesystem.
  • Confirm your changes
  • Copy CyanogenMod7 rom, Data2SD installers and Google Apps on FAT32 partition

CyanogenMod 7 installation

  • Reboot your phone into Recovery (turn it off then press volume down + power)
  • WIPE all data (userdata, cache ecc...)
  • Choose "Install from SD card" and select CyanogenMod7 installation zip
  • when finished reboot your phone
  • Enter your Wifi settings, language ecc.... DO NOT enter your Google account settings.
  • reboot your phone

Data2SD installation

  • Boot into Recovery again
  • Choose "Install from SD card" and select (please note, you may have to turn off the signature verification in Other->Turn off ecc...)
  • when finished reboot your phone
  • now you should see 1,97Gb if you go in Settings->Storage->Internal Storage->Total space

Google Apps installation

  • Reboot your phone into Recovery
  • Choose "Install from SD card" and select the Google Apps zip file
  • reboot your phone


You now have 1,97Gb total space available instead of 148Mb. Enjoy your HTC Desire!

Update Aug 1, 2012: since December 2011 I don't have an HTC Desire anymore. These informations could be still valid but in any other case I don't have the possibility to help you more.

Crepes HowTo: come preparare le crepes alla Nutella!

Posted on Sat 09 August 2008 in HowTo • Tagged with crepes, HowTo, laura, nutella, ptlug, ricetta

Chi l'ha detto che all'interno di un LUG vengono realizzati soltanto guide e howto tecnici? Anche i pinguini dovranno pur mangiare, non trovate?

Grazie alla nostra pinguina Laura, il PtLUG è lieto di presentarvi il "Crepes HowTo", una video-guida che spiega come preparare le crepes alla Nutella!

Gustatevi il video... e le crepes!

Installing Maemo SDK 4 HowTo Updated

Posted on Thu 17 April 2008 in Maemo (EN) • Tagged with chinook, HowTo, maemo, nokia, SDK

I've updated my previous howto that explain how to install Maemo SDK 4 (Chinook). The other howto was written when Maemo SDK 4 Beta was out, now it's updated to 4.0.1 version of the SDK.

You can find it, as usual, on this wiki:

If you have any suggestion or if you want to give me any idea to improve this howto, please leave me a comment.

Using GtkIconView in Python: a small tutorial

Posted on Tue 15 April 2008 in Linux, Programmazione, Python • Tagged with gtk, gtkiconview, gtkliststore, HowTo, programming, Python, tutorial

In these days I was looking for a simple tutorial to understand how to use GtkIconView, but the only thing I was able to find was an example in PHP-Gtk. So I decided to translate it in Python language, thinking it would be useful for other people trying to use that Gtk control. You can find the code here:

import gtk
import gobject


# Main Window setup  
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
window.set_size_request(400, 240)
window.connect("destroy", gtk.main_quit)
window.set_title("Python GtkIconView Test")

# Add a VBox  
vbox = gtk.VBox()  

# Setup Scrolled Window  
scrolled_win = gtk.ScrolledWindow()
scrolled_win.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)

# Setup ListStore to contain images and description  
model = gtk.ListStore(gtk.gdk.Pixbuf, gobject.TYPE_STRING)

# Create a tuple with image files
immagini = (
    "BD786-TFR.jpg", "guido_sottozero.jpg", "IMG_0056.JPG", "movies_card.jpg"

for im in immagini:
        pixbuf = gtk.gdk.pixbuf_new_from_file(im)
        pix_w = pixbuf.get_width()
        pix_h = pixbuf.get_height()
        new_h = (pix_h * DEFAULT_IMAGE_WIDTH) / pix_w # Calculate the scaled height before resizing image
        scaled_pix = pixbuf.scale_simple(
            DEFAULT_IMAGE_WIDTH, new_h, gtk.gdk.INTERP_TILES
        model.append((scaled_pix, im))

# Setup GtkIconView  
view = gtk.IconView(model)  # Pass the model stored in a ListStore to the GtkIconView

# Pack objects and show them all  


The important thing to notice is that you have to store all the images in a GtkListStore and pass it to the GtkIconView as "model" parameter. I hope this example is clear. If you have any question, please comment this post and I'll try to answer.

This is a screenshot of this example: