1

I want to copy 4.4 GB ISO file to 8 GB pen drive, but after coping 4.3 GB, it shows file too large, even though there is enough free space in the pen drive. So I had to copy it to external hard disk. How can I just copy iso file to the pen drive?

I even tried to rename the file to exe or rar, but no hope.

1 Answer 1

5

It's not the file name, or even the operating system, it's the size of the file that's the problem. The formatting of the pendrive is probably FAT32 which as per Wikipedia http://en.wikipedia.org/wiki/File_Allocation_Table#FAT32 has a maximum file size of 4 GiB minus 1 byte or 4,294,967,295 (2^32 − 1) bytes. FAT32 is the default filesystem for USB flash drives. You can confirm this from a terminal window with sudo fdisk -l /dev/sdX (the value of 'X' is probably b, as the USB flash drive probably is the second drive in your system).

Now, if you just want to move the ISO using the flash drive to carry it, you can use http://sourceforge.net/projects/p7zip/ , http://linux.die.net/man/1/7z , or other archival utilities to break the file into two pieces, and then carry it to your destination. If so, just use 'store' mode compression, that is to say, no compression, for the fastest operation. Or, you could reformat the flash drive for http://en.wikipedia.org/wiki/Ext2 or http://en.wikipedia.org/wiki/NTFS which have a file size limit of 16 TiB-1, orders of magnitude larger.

But, perhaps you wish to make the flashdrive bootable with that ISO? If so, then use unetbootin (installed with apt-get install -y unetbootin if your system does not have it) to create a bootable flashdrive with the contents of the ISO.

2
  • Thx...Just wondering how I didn't know about this. Nov 15, 2013 at 3:28
  • Well, who uses FAT32 any more? NTFS and ext2/ext3/ext4 don't have those limits, so to remember the limitations of an antique filesystem is rare, especially given all the other things IT folk have to remember.
    – K7AAY
    Nov 15, 2013 at 16:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .