Copy Files Bigger Than 4GB To A USB Drive

If you are having problems copying files bigger than 4GB into a USB drive, then you’ve come to the right place. Your drive is most likely formatted to FAT 16/32. To get past the 4GB limit, you will need to reformat your USB drive to NTFS.

I strongly suggest that you backup your files to a different drive, because reformatting involves erasing all data in the drive. In Ubuntu, you can reformat a USB drive using GParted. If you don’t have GParted installed, you can easily install it via Terminal with the following command:

sudo apt-get install gparted

Next, go to System > Administration > GParted to start the GParted application. Be careful when choosing drive. You don’t want to reformat your system drive. That would be disastrous. Pay particular attention to the partition name, mount point, and the drive size.

Once you have identified the correct drive, you will then unmount the drive. Once the drive is unmounted, you can now proceed to format the drive with NTFS. Click Apply to make your changes permanent. GParted will now format your drive.

You can now copy a file bigger than 4GB to the USB drive again. It should now work. It took me several times to figure out what was wrong. At first, I thought there was a problem with the file, or with my system, until I realized the 4GB file size limitation.

Increase Disk Space Of A Virtual Machine

One of the cooler technologies to arrive on the desktop the past  ten years is virtualization. With virtualization software, desktops are able to run multiple virtual environments on a host computer. You can easily run Windows on top of Linux and vice versa. Two of the most popular virtualization software that come to mind are VMWare and Virtualbox. I use the latter because it’s open-source.

My host system is Ubuntu 11.04 and I run several Linux distributions on it, as well as a single instance of Windows XP. Unfortunately, I’ve only allocated a 10GB for my Windows XP virtual machine, which is the default size when you create a new virtual machine or VM. After several weeks of normal use, I found out that I needed more disk space.

Increasing the disk space on the VM is not quite the easy as I thought it would be. In fact, the process was more elaborate than first conceived. I’m not going to write every detail of what I did, but I will explain the high level process. Hopefully, you’re able to get the idea. The process was trial and error, but the result was successful. I was able to get results twice now, on two different systems.

Tools

5 Step Process

  1. Clone the Windows XP virtual machine to a USB hard drive.
  2. Create a new virtual machine with a bigger disk space.
  3. Use GParted to create a new partition. NTFS in this case.
  4. Restore the Clonezilla image to the new virtual machine.
  5. Run GParted again to allocate the increased disk space.

Step 1.

Clonezilla a free software disaster recovery and disk cloning utility that you can readily download online. Choose the latest stable version from the website. Make a bootable CD from the ISO that’s provided on the download. Boot Clonezilla on your old virtual machine. You may need to disable the hard drive from your boot up options to make the virtual machine boot from Clonezilla. Make sure you are able to add the USB drive to the virtual machine. Follow the instructions how to clone your old partition to the USB drive.

Step 2.

Create a new virtual machine with a bigger disk space. I used 50GB this time around. I assume you are familiar with Virtualbox how to create a new virtual machine. Don’t load any OS just yet. Just leave it blank.

Step 3.

Boot the GParted on the new virtual machine. Just follow all the instructions on how to create a new partition. Allocate all 50GB to the new partition using the NTFS file system. NTFS is the native file systems for Windows.

Step 4.

Boot Clonezilla on the new virtual machine. Restore your Clonezilla image that you stored on your USB drive. Just follow the instructions how to restore a Clonezilla image.

Step 5.

Run GParted again. The current OS (in this case, Windows XP) is still using the older and smaller partition. It doesn’t recognize the new and unallocated partition on the drive. So, run GParted again and increase the size of your current partition. Use all of the unallocated disk space on the partition. Reboot. Windows XP ran a Chkdsk on bootup, and then rebooted. I checked the disk space and sure enough, it says 50GB.

Done

There you have it. How to increase drive space of your existing virtual machine.