HP TouchPad: After reinstalling CM9, one app refuses to re-install at all, and I cannot move apps to the internal SD card The app in question is Viral Floating Youtube Popup (a really awesome app, try it).
The notification bar says "Couldn't install on USB storage or SD card".
Here's my relevant ADB log output as it finishes downloading and attempts to re-install:


D/Finsky  ( 5512): [1] DownloadQueueImpl.onComplete: com.Mata.YTplayer: onComplete
D/Finsky  ( 5512): [1] DownloadQueueImpl.remove: Download com.Mata.YTplayer removed from DownloadQueue
I/installd(  164): free_cache(0) avail 1346953216
D/dalvikvm(  249): GC_EXPLICIT freed 861K, 57% free 6745K/15559K, paused 3ms+9ms
W/ActivityManager(  249): No content provider found for permission revoke: file:///data/data/com.android.providers.downloads/cache/downloadfile-3.apk
D/VoldCmdListener(  153): asec list
I/PackageHelper(10147): Size of container 8 MB
D/VoldCmdListener(  153): asec create smdl2tmp1 8 fat {} 10041
E/logwrapper(17534): executing /system/bin/newfs_msdos failed: No such file or directory
I/logwrapper(  153): /system/bin/newfs_msdos terminated by exit(255)
E/Vold    (  153): Format failed (unknown exit code 255)
E/Vold    (  153): ASEC FAT format failed (I/O error)
E/PackageHelper(10147): Failed to create secure container smdl2tmp1
E/DefContainer(10147): Failed to create container smdl2tmp1
W/ActivityManager(  249): No content provider found for permission revoke: file:///data/data/com.android.providers.downloads/cache/downloadfile-3.apk
D/dalvikvm(  249): GC_EXPLICIT freed 125K, 57% free 6739K/15559K, paused 3ms+8ms
D/Finsky  ( 5512): [265] 1.packageInstalled: Package install status for "null" is -18
D/Finsky  ( 5512): [1] InstallerTask.cancelCleanup: Cancel running installation of com.Mata.YTplayer
Error "-18" (see the previous-to-last line of your log) is a typical app2sd error. Trouble is, there were remains from a previous install left on the SDCard, and now the package manager cannot create a file with a name already existing. There are two possible approaches:


if the app is already installed, and you're trying to update: Move it back to "internal storage" (e.g. via Settings→Apps, scroll to the app, open it's entry, and use the corresponding button). Then try to update again. Once succeeded, optionall move the app back to SDCard
otherwise: attach the card to your PC using a card reader (or, if you have root access, use a file-manager with root support, e.g. ES File Explorer; without root, Android will hide the folder you need to access). In the root of the card, you should find a folder named .android_secure (note the leading dot!). Navigate into it. Watch out for a file named smdl2tmp1.asec (see the corresponding error message: Failed to create container smdl2tmp1), and remove it. If you had used a cardreader attached to your PC: unmount the card safely, and put it back to your device. Try installing the app again, it should work now.




Reading the log again, it looks like the cause was a little different here: executing /system/bin/newfs_msdos failed: No such file or directory is where the trouble starts. The system was unable to create a "handler" to deal with the FAT file system on the SDCard, thus could not access it (ASEC FAT format failed (I/O error)), and then couldn't deal with the "smdl2tmp1" container because of that. In short: It looks like there's a binary missing (or it's there but lacks the appropriate permissions).