[ubuntu-us-mi] expand USB persistent disk under Ubuntu

Robert Citek robert.citek at gmail.com
Wed Sep 19 19:07:05 UTC 2012


At the last Bug Jam I created a bootable USB stick.  Unfortunately, I
specified a persistent disk that was too small.  Booting from a CD, I
was able to expand the persistent disk on the USB stick by an
additional 1GB using these steps:

# mount USB drive, often automounted to someplace under /media/ as
soon as the stick is inserted

# open a terminal and cd to the USB drive
cd /media/CD6A-1A89/

# check the filesystem on the persistent file
fsck.ext3 casper-rw

# append 1 GB of zeros onto the file
dd if=/dev/zero bs=1M count=1000 >> casper-rw

# expand the filesystem to use the new space
resize2fs casper-rw

# exit the shell and eject the USB stick



More information about the ubuntu-us-mi mailing list