3 ms·
Throw out the SDD. A 1G usb thumb drive is enough. Agreed, though if you do, you have to be careful with writes. I literally had to reflash my drive every time
by icebraining 10y ago
Throw out the SDD. A 1G usb thumb drive is enough.
Agreed, though if you do, you have to be careful with writes. I literally had to reflash my drive every time the power went out (I don't have an UPS). My solution was to move every writable directory to a tmpfs, then mount the root fs as readonly. Logs get shipped by a cron job over ssh. It's been rock-solid ever since.
If you want to upgrade or reconfigure without reflashing, you can still remount with rw, do your thing and then remount with ro again.
- fnj 10y agoOr, rather than going through all that rigmarole, just use an SSD. If you want to save money, get a really cheap one. You can easily get a 60 GB SSD for $30.
- icebraining 10y agoWell, it's not like filesystems in SSDs never get corrupt when power goes off. And the USB stick is helpful if you need to mount it on a laptop, for example if you fucked up the firewall rules and you're now unable to SSH in :)
- arpa 10y agoOr, alternatively, just use that USB drive for bootup and continue running purely in ram.