can you defrag a WBFS hdd?

Discussion in 'Wii - Hacking' started by vettacossx, Apr 14, 2009.

  1. vettacossx
    OP

    vettacossx Wii Theme Team Founder

    Member
    1,329
    32
    Sep 19, 2008
    Right Behind You! Uh Oh!
    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...
     
  2. AllWiidUp

    AllWiidUp Advanced Member

    Newcomer
    84
    0
    Dec 17, 2008
    Canada

    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.
     
  3. vettacossx
    OP

    vettacossx Wii Theme Team Founder

    Member
    1,329
    32
    Sep 19, 2008
    Right Behind You! Uh Oh!
    Thanks!....Ill be patient then thanks for the info [​IMG]
     
  4. mmik

    mmik Member

    Newcomer
    35
    0
    Apr 2, 2009
    United States
    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.
     
  5. Darkzero51521

    Darkzero51521 GBAtemp Regular

    Member
    174
    0
    Mar 30, 2009
    United States
    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.
     
  6. mmik

    mmik Member

    Newcomer
    35
    0
    Apr 2, 2009
    United States
    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.
     
  7. jwcgator

    jwcgator GBAtemp Regular

    Member
    140
    9
    May 10, 2007
    United States
    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
     
  8. raptor5001

    raptor5001 Advanced Member

    Newcomer
    54
    0
    Aug 4, 2006
    United States
    ^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.
     
  9. jesterscourt

    jesterscourt Not Brad.

    Member
    2,211
    82
    Jan 3, 2007
    United States
    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?
     
  10. dodol

    dodol GBAtemp Regular

    Member
    170
    7
    Sep 24, 2007
    United States
    ^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.
     
  11. ajd4096

    ajd4096 GBAtemp Regular

    Member
    176
    187
    Feb 17, 2009
    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.
     
  12. raptor5001

    raptor5001 Advanced Member

    Newcomer
    54
    0
    Aug 4, 2006
    United States
    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
     
  13. antiaverage

    antiaverage GBAtemp Fan

    Member
    317
    4
    Apr 1, 2008
    United States
    For Mac fragmentation info:
    http://osxbook.com/book/bonus/chapter12/hf...gmentation.html