Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Location
    Earth, Australia, NSW
    Posts
    4

    ext3 defragging?


    hey, im a newbie to linux, does ext3 need defragmenting, or does it do it automaticly, or what..

  2. #2
    Linux Newbie rat007's Avatar
    Join Date
    Jul 2004
    Location
    Brno
    Posts
    230
    There's no need to defragment ext3 disk. This is not NTFS or stupid FAT.

  3. #3
    Just Joined!
    Join Date
    Nov 2004
    Location
    Earth, Australia, NSW
    Posts
    4
    so, on ext3, when you delete files, is there free space left between files on the filesystem, and if a new file is introduced, could it be spread out, i just dont understand how it all organises the files, and stops a single file from bein spread over the disc, rather than in one spot
    would anyone be able to explain it

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,901
    Ext3 uses a journaled file system.
    The way I understood it, when you save a file, it is stored in a certain place in an appropriate folder.
    Not just in the next empty space on the hard drive.
    So when you delete a file, that folder gets rearranged automatically, so there is no big empty spot in the middle of the folder.
    If you want to learn more about linux take a linux journey
    https://linuxjourney.com/
    Use CODE tags when posting output of commands. Thank you.
    https://www.linuxcounter.net/cert/608410.png

  6. #5
    Just Joined!
    Join Date
    Apr 2005
    Location
    Atlanta
    Posts
    55

    Re:

    Sounds like you are trying to merge hardware logic with software. Can't do that. The disk hardware works on a totally different level.

  7. #6
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,901
    That is the way I learned it.
    When you save a file in Windows, it is saved on the hard drive, and if there is not enough space there to hold the file, it puts more of the file into the next empoty spot, and if there is more, well you get the idea.
    That is why you need to keep defragging your hard drive.
    Ext3 doesn't separate files, so no fragmentation occurs.

    So to merge software logic with hardware logic is essential to understand the filesystems.
    If you want to learn more about linux take a linux journey
    https://linuxjourney.com/
    Use CODE tags when posting output of commands. Thank you.
    https://www.linuxcounter.net/cert/608410.png

  8. #7
    Just Joined!
    Join Date
    Apr 2005
    Location
    Atlanta
    Posts
    55

    Re:

    ahha..Then you must also start to understand inodes & their functions. Then you will need to understand magnetic fragmentation of a hard disk. ??

  9. #8
    Linux User eugrus's Avatar
    Join Date
    Dec 2004
    Location
    Russia
    Posts
    391
    You can use
    Code:
    e2defrag
    util to defragment your ext2 FS.

    But you should have a very active long use of it to get a real need of that.

  10. #9
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,901
    This page might explain it a little better
    http://wiki.arslinux.com/About_Defragmentation
    If you want to learn more about linux take a linux journey
    https://linuxjourney.com/
    Use CODE tags when posting output of commands. Thank you.
    https://www.linuxcounter.net/cert/608410.png

  11. #10
    Just Joined!
    Join Date
    Nov 2004
    Location
    Earth, Australia, NSW
    Posts
    4
    ok thanks, i understand it now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •