News for hackers. Stuff that matters.
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.)
Re:Defrag Like It's 1993 by gpvos on Friday December 17, 2021 @09:13AM (#29592391)
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.
Re:Defrag Like It's 1993 by usefulcat on Friday December 17, 2021 @10:17AM (#29593270)
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.
Re:Defrag Like It's 1993 by beervirus on Friday December 17, 2021 @11:09AM (#29594100)
DOS defrag goes back a lot farther than that. It even predates FAT32, let alone NTFS.