Ubuntu – How to install programs on USB stick

usb-drive

I have Ubuntu on pen drive. I was wondering why there is an installation app on the desktop. Is that for installing other programmes like chrome browser? When I click this, will it not install on my hard disk? Because I now use Windows as operating system and I would like to try Ubuntu with the possibility to install programs. I do not have much experience with Ubuntu.

Thank you

https://www.ubuntu.com/download/desktop/try-ubuntu-before-you-install

Best Answer

In some USB creator applications like UNetbootin from the default Ubuntu repositories there is an option to allocate space used to preserve files across reboots. UNetbootin supports up to 4GB persistent storage, and its size is limited by the FAT32 file system. The default size of the persistent storage space is 0 MB, but it can be changed from the default size at the same time that you create the Ubuntu live USB. In the below screenshot the persistent storage space is 4GB on an 8GB USB flash drive with one FAT32 partition ( /dev/sdd1 ).

enter image description here
UNetbootin in Ubuntu 16.04

The persistent storage space enables you to install software or save files on an Ubuntu live USB persistently across reboots. The persistence feature is not supported in Ubuntu 16.04-19.04, but persistent storage is supported again in 19.10 and later.

UNetbootin is compatible with Windows, Mac and Linux, however UNetbootin has been dropped from the official Ubuntu 18.04 repositories in Ubuntu 18.04 and later. When I tested the built-in Startup Disk Creator application as a UNetbootin replacement app with several non-*buntu live .iso images it worked in Ubuntu 18.04. mkusb supports the persistent file storage feature. It can be set up by following the instructions at: https://help.ubuntu.com/community/mkusb/persistent.

Related Question