I'm thinking a way of storing large files on vfat file system. Obviously, the only way to store files larger than 4GiB is to split them. I'm aware that we can use split
and cat
commands for splitting and merging files. However, to use those commands, more space is needed for resulting file(s). If I'm understanding how file systems work correctly, no file is actually deleted and deallocated until they're closed. To use as little space as possible, it would take funky technique that involves truncate()
and reversing the file content(reading and shrinking the original file as it goes).
Is there any kernel module that creates a loop device out of multiple split files? Or a util command that does the exact same idea as mine?
Or I'll start making one of them. Oh! Can I do that with mdadm
? The linear level?
cat file.tar.00 file.tar.01 file.tar.02 | tar xf -