Re:Defrag Like It's 1993
by simondotau on Friday December 17, 2021 @01:08AM
(#29588486)
But not an effective one. Generally defrag routines copy data and then update the file system. Power loss would have to occur during the file system write in order for it to be destructive. (And in the case of journaling file systems, likely still recoverable.)
[ Parent
| on HN ]
Yes, but the system is writing roughly half the time, and defragging was mostly a thing before the advent of journalling file systems.
Re:Defrag Like It's 1993
by simondotau on Friday December 17, 2021 @05:37PM
(#29599206)
Power loss while a defragmenter is writing file data will not cause data loss, even on the most basic of file systems like FAT or HFS. Duplicating data into free space is effectively a no-op until the file system is updated to point from the old location to the new location.
It think most versions of windows that included a defragmenter as part of the OS were XP and later, all of which would have used NTFS, which is a journaling filesystem.