To reorder blocks it is enough to have one free block as a buffer. However, specific file allocation is determined by the file system driver. One idea I have is to move the files to other filesystem and then copy them back. In that scenario, you probably will not be able to defrag every file because Linux defrag programs tend to work at the file level and you do not necessarily have enough contiguous free space to defrag every file. The main reasons anyone might want every file to be defragged are OCPD related, which is a complete waste of time because the file system will become "fragmented" again shortly after being mounted rw. While there are legitimate reasons to defrag, none require every single file to be defragged and contiguous. I want all my files in an ext4 filesystem not fragmented because of reasons. This file (file.file) does not need defragmentation. It counts files with more than one extent as fragmented, while it knows that the extents are contiguous: $ sudo filefrag file.file I have just found that I cannot rely on e4defrag output. One idea I have is to move the files to other filesystem and then copy them back somehow telling the filesystem to store them contiguously. Moreover, I have other filesystem available with enough space to use as a buffer. I do not need the filesystem mounted while defragmenting. There are several free blocks (according to df -h: 434M available of 85G and 80G used) which can be used as buffer. The filesystem has all files in it already (they are not to be changed in any way) and it is almost full. Sadly e4defrag (advised here: How to defrag an ext4 filesystem) fails to defragment several files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |