Hacking can you defrag a WBFS hdd?

  • Thread starter Thread starter vettacossx
  • Start date Start date
  • Views Views 3,059
  • Replies Replies 12
vettacossx said:
So just a curiosity but would it hurt or can i defrag my western digital book? will it help keep my drive in check? does it even need to be done? thanks guys...


I'm not sure if someone wrote a defrag yet, but it's relatively simple. It has to be part of libwbfs or one of the tools, windows/linux defrag utils won't work as they don't understand wbfs.
 
Thanks!....Ill be patient then thanks for the info
smile.gif
 
Last I heard there was no way, and that's why you don't want to delete any games you've installed. It'll screw up a bunch of your games the next time you install one.
 
Defrag is a windows thing. Theres no defrag for Mac or Linux. Defrag's are just needed for windows, i highly doubt it'd be needed in WBFS.
 
It's very much needed. If you delete a game, it leaves a space where the game was. If you try to install a game that's bigger than that empty space, it'll overwite some of the next game on the HDD.
 
Actually, the problem with deleting games was some incorrect code in the source code for libwbfs. From what I understood, when it deleted a game it deleted the game + 1 byte or block or something, essentially screwing up the game that came after it on the Hard Drive. It's fixed in WBFS Manager 2.2 and USB loader 1.4
 
^Yeah that sounds about right, I think.

WBFS doesn't fragment its files, so there is no way to defrag it. What people are speaking of (the free space gaps) would be corrected with a compactor, not a defragger.
 
So forgive me for asking the obvious, but say we formatted the HDD back during 1.1 or so, if have the latest loader is it now safe to remove games?
 
^if you didn't delete any of your games during 1.1->1.3, you don't even need to perform anythings. the problem is with delete function not format function.
 
Darkzero51521 said:
Defrag is a windows thing. Theres no defrag for Mac or Linux. Defrag's are just needed for windows, i highly doubt it'd be needed in WBFS.
Defrag ain't just a windows thang.

ext/ffs based file systems do suffer from defragmentation, just not as much as FAT.
There are defrag tools available, but it is usually faster/safer just to dump/restore.

WBFS does not (currently) fragment files per se, but can end up with fragmented free space if you were to repeatedly add/delete games.

I expect there will be some sort of cleanup tool available sooner or later; I also expect the loader to be modified to use other file-systems.
I am not taking bets as to which happens first.
 
Okay, well let's say that defrag is a Windows problem then. Defragging programs for Mac or Linux do exist, but they are near useless, because if you have fragmentation on your HFS+ or ext2/3 drive, it means it's close to being full. Because of the way those filesystems work, they only fragment files when absolutely necessary, which makes the results of defragging them unnoticeable. Defragging ext2/3 or HFS+ could arguably actually hurt performance in several ways. It's best to just let those filesystems do their job, haha. For a quick primer, check out this: http://geekblog.oneandoneis2.org/index.php...d_defragmenting
 
raptor5001 said:
Okay, well let's say that defrag is a Windows problem then. Defragging programs for Mac or Linux do exist, but they are near useless, because if you have fragmentation on your HFS+ or ext2/3 drive, it means it's close to being full. Because of the way those filesystems work, they only fragment files when absolutely necessary, which makes the results of defragging them unnoticeable. Defragging ext2/3 or HFS+ could arguably actually hurt performance in several ways. It's best to just let those filesystems do their job, haha. For a quick primer, check out this: http://geekblog.oneandoneis2.org/index.php...d_defragmenting

For Mac fragmentation info:
http://osxbook.com/book/bonus/chapter12/hf...gmentation.html
 

Site & Scene News