Repairing SD memory cards hosed by N800

Unfortunately my N800 still “eats” memory cards from time to time. It seems to be due to a corruption of the card’s partition table. Here are the steps I use to recover the cards. The example is for an 8 GB PNY SDHC card formatted with Ext2 filesystem. I used Kubuntu 7.10 Gutsy and TestDisk 6.6 for this.

Generating PDF from scanned images using ImageMagick

I used the following command with some success. To keep the resulting file size down, you may play with the quality parameter and with resampling to an even lower density.

convert -page A4 -quality 20 -density 400x400 -resample 300x300 *.jpeg Result.pdf