Huwawei E220 broadband dongle not working
I was experiencing this problem for my E220 on Ubuntu 11.10 and 12.04 as well. It works sometimes and sometimes the "just keeps on and on for a long time and then say I'm offline" thing happens. So to connect I have to do things like unplugging and re plugging the dongle, restarting the machine etc.
But now Huawei offers a Linux version of its Mobile Partner software. I found this software with a new E303 which I bought from Mobitel. I installed this software on my computer and this Mobile Partner detects the E220 dongle as well. It works fine and even allows SMS and all the data monitoring facilities.
So, my suggestion to you is to install the Linux version of Mobile Partner which comes with new dongles. Please be careful about the Linux versions of the Mobile Partner which are available online. Some people have complained that the installation changed their configuration files and couldn't connect to internet afterwords. So use the software which comes in a new dongle.
I solved this problem but not so elegantly.
In Disc utility, I unmounted and safely disassembled the unit CD Huawei. One minute after that, the 3G modem is recognized properly.
It works for me. I think the problem is the CD-Huawei and not the USB mass storage.
I have Ubuntu 12.04 and Huawei E156G (I think this is like E220).