Tuesday, April 30, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 482  / 3 Years ago, wed, october 20, 2021, 3:46:45

So, I wanted to create a live Ubuntu USB but with the ability to save some files. However, I don't like the idea of persistence as it saves all 'changes'. Instead, here is what I wanted:


A USB with 3 partitions


- the first partition contains the live Ubuntu system
- the second partition will auto-mount on boot at the 'Desktop' directory of the live system
- the third partition will auto-mount at the 'Downloads' directory

In this way, I'd like to be able to save any downloads during the live run as well as any files created in the Desktop. Also, if the auto-mounting part is doable, can it be done in such a way that my live environment Desktop boots up to show all my files from the second partition, ie it would look like I have enabled some form of persistence?


The thing is, I had initially wanted a USB with a "Full install" of Ubuntu on it so I can carry around my entire workstation in my pocket. But that didn't quite work out due to the speed limitations of the USB(I think) and I figured this would be the next best thing. As for applications that I normally use everyday, I've decided to customize the Ubuntu ISO with 'Cubic' and pre-installed all the apps that I'd need.


UPDATE (output of lsblk -f after installing through mkusb):



More From » partitioning

 Answers
7

I don't know how to get exactly what you want, It may be possible but difficult. But I can discuss alternatives and suggest something similar, that is easy to make and might be good enough for you.



  • I would use a 'normal' persistent live system for this task (made with mkusb version 12 alias mkusb-dus). It can do what you want to do, and if you are cautious, you can avoid storing unnesseary files and avoid unwanted settings.



  • A simple alternative would be to create a live drive with a data partition with mkusb-plug.



  • An intermediate alternative would be to create a live system with persistent home (but not a persistent root, so that new application programs and system tweaks will not be persistent). Only what is stored in the home directory will be stored, user specific tweaks, the content of Desktop, Documents, Downloads, etc.


    This is done by modifying a 'normal' persistent live system:



    • removing the content (directories and files, if any) of the partition for persistence with the label writable, and

    • changing the label of this partition to home-rw




If you wish, you can boot a [partially] persistent live system without the boot option persistent (that is boot it live-only) and delete unwanted data from the partition for persistence. The next time you boot persistent live, those files and/or corresponding settings will be gone. This way you can keep only the content of 'Desktop' and 'Downloads'.


[#1505] Wednesday, October 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
scrubuz

Total Points: 194
Total Questions: 96
Total Answers: 127

Location: Monaco
Member since Fri, Sep 24, 2021
3 Years ago
;