Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 3 down vote accepted

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

share|improve this answer
I there an easy way to access the files in home-rw from my main (Ubuntu) system? – Hippo Jan 20 '12 at 6:58
yes. sudo mount -o loop /media/usb_name/home-rw /mnt. Adjust the path as needed to use an alternate mount location. – bodhi.zazen Jan 20 '12 at 7:37
Will try it. Thanks. – Hippo Jan 23 '12 at 6:49

You can also create persistent partitions instead of persistent files. Persistent partitions are not limited to the 4GB size that FAT32 files are.

Format the first partition FAT32, this is where Ubuntu Live will be installed. Format the next partitions ext2, (or ext3 or ext4), label the second partition casper-rw and the third one home-rw, (optional).

Delete the casper-rw file created by the Startup disk app.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.