Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-30-2005, 12:25 PM
|
#1
|
Member
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248
Rep:
|
Defrag?
For a while, I was a windows system administrator. Don't even start with me, it was terrible.
These systems must be defragged once (twice) a week, or they really start operating poorly.
I have been using linux on a few different systems for three-four years, and have not had any issues with this.
Why does linux not need to be defragmented? Or does it need to be, and how do I do it?
|
|
|
03-30-2005, 12:32 PM
|
#2
|
Member
Registered: Oct 2004
Location: Scotland
Distribution: Ubuntu
Posts: 105
Rep:
|
As far as I know you don't have to defragment linux, I think I remember reading that somewhere...but don't quote me on that
|
|
|
03-30-2005, 12:45 PM
|
#3
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552
|
The most of linux filesystems (if not all) have built-in defragment procedure.
So when you rm or cp a file, you actually do a defrag at the same time
|
|
|
03-30-2005, 12:46 PM
|
#4
|
Senior Member
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288
Rep:
|
That's true, but i've read that you could have slight fragmentation if you frequently fill up your hard drive...
|
|
|
03-30-2005, 12:49 PM
|
#5
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552
|
This is obvious as the filesystem has not enough room to do defrag block manipulation if the partition is full of data (I think it need like 5/10% of free space)
|
|
|
03-30-2005, 01:10 PM
|
#6
|
Member
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248
Original Poster
Rep:
|
I guess my real question is why does windows fragment its hard drives, and why does linux not?
|
|
|
03-30-2005, 01:34 PM
|
#8
|
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692
Rep:
|
Quote:
Originally posted by spaceballs
I guess my real question is why does windows fragment its hard drives, and why does linux not?
|
bad design, good design
|
|
|
03-31-2005, 12:35 AM
|
#9
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Rep:
|
Well, this is what I read somewhere. Can't remember.
You don't have to worry about fragmentation in NTFS (Windoze). And definately not in ext3, reiserfs, jfs, xfs, etc.
Why? Cause there won't be much performance hit caused by the fragmentation.
Ask me to produce the source? I can't. But, Amit Singh have an article on HFS+ fragmentation.
You can thrown him some question at his forum.
|
|
|
03-31-2005, 01:17 AM
|
#10
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
Quote:
Originally posted by carboncopy
Well, this is what I read somewhere. Can't remember.
You don't have to worry about fragmentation in NTFS (Windoze). And definately not in ext3, reiserfs, jfs, xfs, etc.
Why? Cause there won't be much performance hit caused by the fragmentation.
|
Are you sure about that NTFS thing. It seemed to get pretty fragemented when I used it. Also windows XP defragements when your computer is idle and moving files that you use a lot to the front of the drive. None the less it still got slower and slower as time went on, but this is typical of any microsoft product so it's hard to say if the filesystem was a contributing factor.
|
|
|
03-31-2005, 01:19 AM
|
#11
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Rep:
|
I am not sure
That is what I read somewhere. So, not verified. However, using diskeeper does help. But, I don't have windoze on my own machine anymore.
|
|
|
03-31-2005, 09:36 AM
|
#12
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
|
when Linux boots, the cfdisk script is run and every 30 days it cleans your harddrive-I would think this is a defrag procedure?
|
|
|
03-31-2005, 09:48 AM
|
#13
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552
|
No cfdisk is a partionning tool, maybe you tell about fsck instead ?
In this case, fsck is a tool that check and repair filesystems.
defrag is really done on the fly, when you save a file, copy, delete...
The filesystem try to do its best to put the data blocks in continguous disk spaces
|
|
|
03-31-2005, 10:19 AM
|
#14
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
|
You're right-I'm not at a Linux box...I meant fsck.
|
|
|
03-31-2005, 11:24 AM
|
#15
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
The difference is in how the different file systems organize and access the files. Linux filesystems actually organize the files in a logical manner instead of just writing them willy-nilly wherever they will fit in. Windows filesystems are very crappy in that regard and have to be defragmented regularly in order to speed up access times because the files are written all over the place with no sort of logical organization to them.
|
|
|
All times are GMT -5. The time now is 08:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|