View Single Post
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#98
The easiest and safest solution is to first put this script in /etc/event.d:

Code:
start on started hildon-desktop
stop on starting shutdown
console none
service

script

drivelist=$(sfdisk -lnd /dev/mmcblk1)
swapmicro=$(echo "$drivelist" -n | grep Id=82 | awk '/mmcblk1/ {print $1}')
if [ "$swapmicro" ]; then
    swapon $swapmicro
    swapoff /dev/mmcblk0p3
    swapon /dev/mmcblk0p3
fi

end script
Then backup your MicroSD card, and reformat it (Gparted is a good graphical tool to use) with the FAT32 partition as the first partition, and the linux swap partition as the second (whatever size you choose, 384 or 768MB are good sizes). Then put your data back.

And that's it. Totally safe and easy.
__________________
"Impossible is not in the Maemo vocabulary" - Caballero