在microSD卡中安装并运行Ubuntu?

我正在尝试将Ubuntu Budgie 18.04安装到我的64GB microSD卡中。 microSD已通过适配器插入,即使在插入时也未锁定。

It all went fine but i get a strange error when i try to run simple commands too:
sudo: unable to open /var/lib/sudo/username/1: Read-only file system

这是在我登录一段时间后发生的,所以这是在我使用系统时发生的。

I fixed the errors on the filesystem with fsck but after i rebooted my system, it happened again and again.

更新 我尝试使用没有任何适配器的普通16GB SD卡。 但是有了这个,我什至无法完成安装: 安装grub时,它将崩溃并显示致命错误消息

UPDATE
Searching on google, it seems it can be something related to systemctl suspend, in fact i noticed this to happen when i resume the system.
I will try installing Mint 19.1 to see if this is a bug from Ubuntu 18.04.

最佳答案

听起来好像您对卡进行了过多写入操作而使卡耗尽。在此网站上搜索优化USB,相同的优化适用于micro SD卡。基本上,方法是关闭(主要是)对挂载了noatime的目录进行不必要的写操作,然后将其尽可能多地移动到ram(如/ tmp,/ var / log,浏览器缓存等)。

如果适配器出现在启动菜单中,则应该可以。并非所有计算机都将尝试启动SD卡。在这种情况下,将其放入USB阅读器可能会允许从允许的设备启动。