Super User is a question and answer site for computer enthusiasts and power users. 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 created a live Ubuntu USB that has persistent storage using Universal USB Installer. Every time I boot the USB, I keep getting an alert message telling me that the drive is low on space. Is it not possible to clear or remove files in persistent storage?

share|improve this question
    
What operating system are you on? – Arvanitis Christos Jun 30 '12 at 15:39

Yes it is possible.

If you're booting from the USB, you don't want to repartition the whole thing, you just want to recreate the loopback casper-rw partition.

I've just done it with a Karmic Koala USB stick from 2009. Current ones may work a bit differently (I've been on a bit of a holiday from Ubuntu the last year or so).

Enable expert mode and remove "persistent" from the kernel boot command line. Then it won't even try to use the casper-rw file for persistence (it will use a ramdisk overlay instead).

Say your usb stick is mounted at /cdrom (for some reason that's what I got).

You will need to do

sudo mkfs.ext3 /cdrom/casper-rw

and prompt it to proceed even though the file is not a block device.

If it complains that your USB stick is mounted read-only, use

sudo mount -o remount -o rw /cdrom

first, to make it read-write.

You can also do the mkfs command line on any other working linux system where you can mount your USB stick.

share|improve this answer

You should use dd command to delete the partition table of USB and later use gparted to repartition the USB.

dd bs=1024 count=1 if=/dev/zero of=/dev/sdb where /dev/sdb is your usb drive, be carefull with this command!

And start gparted to repartition.

share|improve this answer

You must log in to answer this question.

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