I made a boot/installation media of Mythbuntu 16.04 by mkusb 10.6.6. I run a persistent live session. Unattended-upgrades started to operate and install e.g. new kernel on the USB flash drive. The consequence was that system ran out of inodes here: /dev/loop0 mounted at /rofs. How to recover?
2 Answers
Upgrades do not work for the kernel in any persistent live system, because the kernel is started before the overlay structure becomes active.
In general it is not a good idea to upgrade a persistent live system completely, like an installed system - you can add new program packages, and you can upgrade a few application programs, where you really need an upgraded version for something to work. And you need regular backups, for example via the system described at https://help.ubuntu.com/community/mkusb/persistent#Backup_and_restore_of_persistent_overlay_data
If you want a generally updated and upgraded system, it is better to
either create an installed system, which is suitable to update && dist-upgrade via the command line or automatically.
or grab the current 16.04 LTS daily iso file, and create a new persistent live system. You find it via this link: http://iso.qa.ubuntu.com/qatracker/milestones/351/builds. In your case, select a version of Mythbuntu, and you will find a link to the download information. (The 16.04 daily iso files will no longer be updated after 16.04.5 is released.)
I suggest that you save the /home directory in the casper-rw partition (to another drive) and copy it to your new persistent live system (now based on the current daily live iso iso). It will save your tweaks. You must re-install the additional program packages you need manually.
-
I was surprised the system started automatic security upgrades by default. Not sure if it is a bug in mkusb, but I had better to disable unattended upgrades there in the persistent session. I have not tested if the upgrades will run in normal live session, too.– jarnoCommented Aug 29, 2016 at 3:17
-
I guess I had better make new persistent live system and disable unattended-upgrades immediately once I boot it.– jarnoCommented Aug 29, 2016 at 13:48
-
Looking at the persistent live Ubuntu 16.04 LTS system - the Software & Updates screen / Update - I notice, that Automatic updates is set to 'Download and install automatically'. This is bad in a persistent live system. I am still waiting for it to get into action ...– sudodusCommented Aug 30, 2016 at 13:11
-
After leaving the persistent live Ubuntu 16.04 LTS system running overnight, I found that it had performed an automatic upgrade:– sudodusCommented Aug 31, 2016 at 5:39
-
1Yes, and
df -i
indicates high inode usage, which may cause upgrade to fail.– jarnoCommented Sep 1, 2016 at 3:25
I am surprised that the persistent live system started an automatic security upgrade. I don't think it is caused by the installer (mkusb), because the files controlling those actions are not touched. I tested in an Ubuntu 16.04.1 LTS system, that I left running overnight: It updated & dist-upgraded too. I made a small survey and found:
- This bug affects 16.04 LTS, 16.04.1 LTS and Yakkety.
- Several flavours are affected.
- Lubuntu is not affected.
You find a table of the survey and screenshots at
https://ubuntuforums.org/showthread.php?t=2335669&p=13538805#post13538805
See the corresponding bug report at
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1619188
-o-
Until this is resolved, it is a good idea to disable unattended-upgrades, but above all, to take regular backups. The following screenshot illustrates where to change 'what to do when there are security updates' in Ubuntu 16.04.1 LTS. Click on it to make it full size and easier to read the text.
Edit: From mkusb 11.0.2 you are given an option to change the default from 'Download and install automatically' to 'Display immediately', which will disable unattended-upgrades. So if you create a persistent live drive with the current version of mkusb, you can avoid this problem 'automatically'.