I have installed a full Ubuntu on a USB flash drive. Every time I want to boot into Ubuntu, I just plug the USB drive in and it boots into Ubuntu, and everything works just fine. There is one problem, though. When I suspend the laptop, i.e. when I press the sleep button or when I close the lid, after some time I turn it on again and it gives me external drive errors and some other errors. I think this is due to the USB drive. It somehow automatically turns itself off and since everything is on the drive, I cannot do anything. Whenever this happens, I just force a shutdown.
Is there any way to resolve this?