Contiguous copy – How do I copy files contiguously?
11
votes
4
answers
8031
views
I want to copy a number of files onto a flash drive such that each individual file is contiguous. They do not need to be contiguous with each other, and can be in any order. The files will be very large – hundreds of megabytes, to gigabytes. No other files on the drive should be defragmented; doing so would waste time and cause unnecessary wear on the flash media.
I want to be able to do this for at least FAT32, but methods for
*nix
filesystems will also be appreciated.
Essentially, there are 2 approaches to this:
* Copy then defragment the files.
* Defrag enough contiguous free space for each file, then copy each file into its place.
The 2nd option would generally be far quicker than the 1st, and would avoid causing unnecessary wear on the flash media, so the 2nd option would be very much preferable.
I don't mind solutions that work offline, but obviously online is preferable.
Asked by James Haigh
(739 rep)
Jun 20, 2013, 02:24 AM
Last activity: Jun 11, 2021, 04:17 AM
Last activity: Jun 11, 2021, 04:17 AM