miércoles, noviembre 23, 2011

Resize ubuntu live usb persistence storage space

Warning: Block file size must be less than < 4096 MB on a fat32 formatted flash drive due to the 4GB file size limitation of a fat32 partition. Creating a NEW larger casper-rw loop file The following method will create a NEW casper-rw file that will replace the old one. If you want to resize an existing image see the next section. After your up and running in Linux, insert the flash drive that contains your casper-rw loop file Open a terminal Type the following into the terminal window and press enter dd if=/dev/zero of=casper-rw bs=1M count=1024 (replacing 1024 with the "size in MB" you wish to use for saving changes persistently) Type the following into the terminal and press enter mkfs.ext3 -F casper-rw Copy the new casper-rw file to your USB flash drive Restart your computer, booting from the USB flash drive and enjoy using the larger casper-rw loop block file you have just created. Resize an existing casper-rw loop file The following method will allow you to resize your existing casper-rw image (expand casper-rw). You should create a backup just in case before proceeding. After your up and running in Linux, insert the flash drive that contains your casper-rw loop file Open a terminal and change directory (CD) to the location of your casper-rw file Type the following into the terminal window and press enter dd if=/dev/zero bs=1M count=1024 >> casper-rw

(replacing 1024 with the size in MB you wish to increase the original size by)

Type the following into the terminal window and press enter
resize2fs casper-rw

If all goes well, you should now have a larger casper-rw loop file to use for saving your persistent changes.

No hay comentarios.: