Why Does My Persistent Linux USB Stop Booting After a Few Uses?
Asked by
CuriousCactus77
I've set up a persistent Linux Mint system on a USB stick using a regular live USB. I chose the "something else" option during installation to properly direct the bootloader to the USB. My main system is also running Linux Mint 22. The USB was functioning perfectly for a few boots, but now it won't boot at all. I just get a black grub screen, and I can't get past it. I've tried reinstalling the system on different USB sticks, but the same issue happens every time. It's fine for a few boots and then suddenly stops working. Someone suggested using Ventoy, but there are recent security concerns with it that make me hesitant. Is there a way to manually install the grub bootloader on the USB? And are there any alternatives to Ventoy that are reliable and not too complicated to set up?
Answers
From what you described, it sounds like you did a complete installation on a second USB like you would do on a regular drive. If itโs having consistency issues, Iโd suggest looking into the quality of the USB sticks youโre using. Some simple tweaks can help prolong their life: switch to ext4 (which you already seem to be using), change the vm.swappiness value to 1 to limit swap, and tweak Firefox settings to limit disk writes. Also, adding "noatime" to your fstab can help reduce wear from accessing files.
Reply to this answer
Itโs common for USB sticks to have pretty limited write endurance, which might explain why yours stops booting after a few uses. About Ventoy, I wouldnโt stress too much about the xz-utils issue; not all developers from a certain region are up to no good. You might want to consider using an external hard drive instead of a USB if you find you're running into this problem a lot.
Reply to this answer
You want to minimize write operations to keep the USB from failing quickly. You said you're using ext4 and have turned off swap, which is good! Regarding the noatime option, it simply stops the system from updating the access times on files. This can save some write cycles on the USB. Using lower quality sticks can definitely lead to more issues, so investing in better ones might make a big difference!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions