can you defrag a WBFS hdd?

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

Apr 14, 2009

can you defrag a WBFS hdd? by vettacossx at 12:06 AM (2,178 Views / 0 Likes) 12 replies

  1. vettacossx
    OP

    Member vettacossx Wii Theme Team Founder

    Joined:
    Sep 19, 2008
    Messages:
    1,329
    Location:
    Right Behind You! Uh Oh!
    Country:
    Ireland
    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

    Newcomer AllWiidUp Advanced Member

    Joined:
    Dec 17, 2008
    Messages:
    84
    Country:
    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

    Member vettacossx Wii Theme Team Founder

    Joined:
    Sep 19, 2008
    Messages:
    1,329
    Location:
    Right Behind You! Uh Oh!
    Country:
    Ireland
    Thanks!....Ill be patient then thanks for the info [​IMG]
     
  4. mmik

    Newcomer mmik Member

    Joined:
    Apr 2, 2009
    Messages:
    35
    Country:
    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

    Member Darkzero51521 GBAtemp Regular

    Joined:
    Mar 30, 2009
    Messages:
    174
    Country:
    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

    Newcomer mmik Member

    Joined:
    Apr 2, 2009
    Messages:
    35
    Country:
    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

    Member jwcgator GBAtemp Regular

    Joined:
    May 10, 2007
    Messages:
    140
    Country:
    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

    Newcomer raptor5001 Member

    Joined:
    Aug 4, 2006
    Messages:
    49
    Country:
    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

    Member jesterscourt Not Brad.

    Joined:
    Jan 3, 2007
    Messages:
    2,153
    Country:
    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

    Member dodol GBAtemp Regular

    Joined:
    Sep 24, 2007
    Messages:
    148
    Country:
    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

    Member ajd4096 GBAtemp Regular

    Joined:
    Feb 17, 2009
    Messages:
    175
    Country:
    Australia
    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

    Newcomer raptor5001 Member

    Joined:
    Aug 4, 2006
    Messages:
    49
    Country:
    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

    Member antiaverage GBAtemp Fan

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

Share This Page