Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1932  / 2 Years ago, thu, august 25, 2022, 11:56:54

I have created a customised version of Ubuntu (basically I just installed the programs that I want), using UCK, to install on a pendrive and carry with me while travelling and boot on whatever computer is available.



What I want is to have a "home" folder on the pendrive and then mount it as /home/ubuntu in the live system.
That way, I can easily access my files from other systems as well as the pendrive, and the settings for the screen, etc will be reset every time I boot and won't cause problems when I use it on multiple machines.


More From » live-usb

 Answers
4

The easiest method is to use persistence. Make a file called home-rw



# this will make a 1 Gb file for storage, increase / decrease the count as needed
dd if=/dev/zero of=./home-rw bs=1M count=1000


Make a file system on the file



mkfs.ext4 home-rw

mke2fs 1.41.14 (22-Dec-2010)
home-rw is not a block special device.

# Answer ‘yes’ here

Proceed anyway? (y,n) y


Remove the reserved blocks



tune2fs -m 0 -L home-rw home-rw


When you boot your pendrive , hit the tab key to edit your boot options, and add persistent to the boot options.



You can edit /isolinux/txt.cfg (I think that is the file) to add a persistent option, looks like this:



boot splash


[#40885] Saturday, August 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
entmpy

Total Points: 52
Total Questions: 112
Total Answers: 113

Location: Marshall Islands
Member since Tue, Sep 21, 2021
3 Years ago
entmpy questions
;