The other day I was trying to copy a large gzip file onto a USB drive and it kept erroring out when it hit the 4Gb mark. I realized (face palm) that the drive is formatted as a vfat filesystem. Which I think is a synonym for FAT-32. Obviously FAT-32 is limited to max a max file size of 4Gb. So simply split the file into 4000MB chunks with:
split --line-bytes=4000m foo.tar.gz foo_ &
Copy the pieces onto the USB drive. Take the USB drive to the other copmputer. Copy the files off the drive and rejoin the file with:
cat foo_a* > foo.tar.gz &
archive
- Splitting a file into many pieces 11 Nov 2011
- Using Github as a Maven Repository 08 Nov 2011
- Goodbye rvm, hello rbenv 26 Aug 2011
- Calling Rake Tasks in a Script 15 Aug 2011
- Unix (Bash) Scripting 15 Jul 2011
- Downgrade Rubygems 11 Jul 2011
- Building a Site with Jekyll and Compass 11 Jul 2011
- Some basic ruby 02 Jun 2011
- Phuong Nguyen Therapy 11 Apr 2011
- My favorite CS Quotes 07 Mar 2011
- Ngaire turns 2 23 Jan 2011
- DWR, Spring and Capture (Using Spring and DWR 2.x Filters) 27 Jan 2007