Create A Larger Casper-Rw Loop File in Linux - USB Pen Drive Linux
Create A Larger Casper-Rw Loop File in Linux - USB Pen Drive Linux
a larger casperrw loop file in Linux | USB Pen Drive Linux
Home
Disclaimer
Contact
Create a larger casperrw loop file in Linux
The following tutorial explains how to create a larger casperrw loop file for your Ubuntu based flash drive
install. For example on: Ubuntu, Xubuntu, Kubuntu, Crunchbang or Linux Mint. A larger casperrw loop file is
particularly useful for those who have performed a Linux install to a large thumb drive using a Windows USB
tutorial and need more persistent storage space for saving changes. The default casperrw loop file we used in
the Windows USB installation tutorials is only 1GB.
Notes: You will need to perform the following steps from a booted Linux system other than the USB Linux
installation. I typically boot from the Live CD and then (once the system is up and running) insert the USB
flash drive that contains my Linux install and small casperrw.
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 casperrw loop file
The following method will create a NEW casperrw file that will replace the old one. If you want to resize an
existing image see the next section.
1. After your up and running in Linux, insert the flash drive that contains your casperrw loop file
2. Open a terminal
3. Type the following into the terminal window and press enter
dd if=/dev/zero of=casperrw bs=1M count=1024
(replacing 1024 with the "size in MB" you wish to use for saving changes persistently)
4. Type the following into the terminal and press enter
mkfs.ext3 F casperrw
5. Copy the new casperrw file to your USB flash drive
6. Restart your computer, booting from the USB flash drive and enjoy using the larger casperrw loop block
file you have just created.
Resize an existing casperrw loop file
The following method will allow you to resize your existing casperrw image (expand casperrw). You should
create a backup just in case before proceeding.
1. After your up and running in Linux, insert the flash drive that contains your casperrw loop file
2. Open a terminal and change directory (CD) to the location of your casperrw file
3. Type the following into the terminal window and press enter
https://www.pendrivelinux.com/howtocreatealargercasperrwloopfile/ 1/2
1/25/2017 Create a larger casperrw loop file in Linux | USB Pen Drive Linux
dd if=/dev/zero bs=1M count=1024 >> casperrw
(replacing 1024 with the size in MB you wish to increase the original size by)
4. Type the following into the terminal window and press enter
resize2fs casperrw
If all goes well, you should now have a larger casperrw loop file to use for saving your persistent changes.
Similar Portable Linux Posts:
How to resize casperrw Images in Windows
Create a Larger than 4GB Casper Partition
PDL CasperRW Creator – Make a persistent file from Windows
Create a larger casperrw loop file in Linux published under Using and Configuring Linux
casperrw, casperrw loop file, resize casperrw, resize casperrw loop files, resize casperrw partition
Portable Linux Categories
Flash drive installs using Live CD
Flash drive installs using Windows
USB Virtual Machine Emulation
Using and Configuring Linux
Pendrive Linux Posts
Make a USB Boot CD for Ubuntu 11.10
Boot DOS from USB – RUFUS
LiveUSB Install – Live USB Creator
XBOOT – Multiboot ISO USB Creator (Windows)
YUMI – Multiboot USB Creator
SARDU – Multiboot USB Creator (Windows)
Boot Multiple ISO from USB via Grub2 using Linux
Creating a Kubuntu Live USB from CD
Creating an Xubuntu Live USB from CD
Creating an Ubuntu Live USB from CD
Using UNetbootin to create a Linux USB from Linux
MultiSystem – Create a MultiBoot USB from Linux
Put Mandriva 2010 on a USB Flash Drive (Windows)
Put Bitdefender Rescue CD on a USB Flash Drive
Put Lucid Puppy on USB Flash Drive from Windows
©20062017 Pendrivelinux.com Run Linux From USB. Credits, Resources and Sources Cookies & Privacy
Policy
Linux® is a registered trademark of Linus Torvalds. Windows is a registered trademark of Microsoft. Other
names and logos may also be trademarked by their respective owners.
https://www.pendrivelinux.com/howtocreatealargercasperrwloopfile/ 2/2