8

I made a persistent Live USB with the usb-creator, and I was wondering if I can just update as one normally would, or if there are special procedures I need to take.

6 Answers 6

4

If your live usb was created with persistence then it can be updated. However, to fit an entire Linux distribution into a small space it has been compressed & made read only via the squashfs method. So when it updates it recreates the updated parts of the file system outside of the squashfs, taking up a much larger space.

My live Kubuntu 16.04 had 500 MB of updates which finished using 4 GB of space - which fills up a normal casper-rw file. I had made a 8 GB casper-rw partition, hence I still had space.

I suggest you stick to security updates only.

When I made my usb I created 4 partitions: for the main file system, casper-rw for persistence, home-rw for my stuff, and a ntfs partion for sharing files. If the live iso images are updated, then the usb can be updated by copying the new iso files into the old usb. I'm also thinking about unsqashing the file system, updating it in virtualbox and resquashing it.

2

Startup Disk Creator now produces an ISO9660 partition that is read only.

There is no "persistence" option. Since there is no casper-rw persistence file, there is no place for updates to be stored.

If you want an updateable/upgradeable Bootable USB, do a Full install as you would to internal drive. (Best to unplug internal drives first).

3
  • Upvoting for the advice to do a full install. I thought that was probably the answer. I assume the advice about unplugging other drives is just to avoid accidentally installing on the wrong drive. Taking care to do it right on a laptop, I had no problem without that. I'll be cloning to a faster (Samsung) USB drive, though. Sep 23, 2020 at 19:13
  • @RayWoodcock: If doing a UEFI Full install, the installer will try to use the EFI partition of an existing OS and will write data about it to the new drives fstab. If you have problems after leaving the internal drive plugged in, check fstab and reinstall GRUB. For a few Full install methods that work see: askubuntu.com/questions/1217832/… Sep 24, 2020 at 10:38
  • This is the best thing to do. Thanks for the nice Guide btw
    – VidathD
    Jan 8, 2021 at 4:48
1

There are no special procedures. But your setting would not be saved if you have not made a persistent Live USB. You can read more about it on Ubuntu Wiki.

1

None of the existing ISO9660-based live operating systems provide a kernel update feature: the kernel and the initrd are the only components that a live operating system cannot update, because they lay outside of the data persistence partition (if any) and the system partition is, as said, ISO9660-formatted.

After some years of asking me why, I found the liveng whitepaper on Read the Docs.

The full aim of the liveng project is to give the Community a set of best practices in order to turn a common Debian Linux live into a live(ng) operating system which features:

native encrypted persistence;
kernel update (on a live ISO 9660 filesystem!);
UEFI, with UEFI Secure Boot compatibility, with a real efi partition.
0

yes of course . if live image on a usb ( there is space ) you can update as a ubuntu on hdd.

3
  • 1
    how? Every time I do an upgrade or turn it off I have to type again the WIFi passwords and update and install packages again. Jul 30, 2019 at 19:01
  • @FrancescoBoi The OP said he has set up persistence.
    – VidathD
    Jan 8, 2021 at 4:46
  • @FrancescoBoi The OP said he has set up persistence.
    – VidathD
    Jan 8, 2021 at 4:46
0

I've been able to update many things, but updates affecting the Linux kernel and its modules don't seem to happen correctly on those sticks I've created this way.

If I'm not mistaken, the reason is that the kernel being booted isn't with the rest of the root partition, but stored separately on the stick.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .