QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 696|回复: 5

Linux需不需磁盘碎片整理啊?

[复制链接]
发表于 2004-2-21 20:51:57 | 显示全部楼层 |阅读模式
如果需要,那该怎么操作啊?
发表于 2004-2-21 21:10:09 | 显示全部楼层
基本不需要,你要的话就把该分区备份一下,然后重新格式化一遍
回复

使用道具 举报

发表于 2004-2-21 23:07:13 | 显示全部楼层
应该不需要吧
回复

使用道具 举报

发表于 2004-2-21 23:11:08 | 显示全部楼层
用的时间太长肯定是有碎片的,但是我的linux一般活不到有很多碎片的时候
整理碎片的最好办法是拷贝出去,删除,拷贝回来
回复

使用道具 举报

发表于 2004-2-22 09:09:31 | 显示全部楼层
From - Fri Sep 28 12:20:41 2001
Path: typhoon.ne.mediaone.net!chnws06.ne.mediaone.net!24.147.2.43!chnws02.mediaone.net!newsfeed2.skycache.com!newsfeed1.cidera.com!Cidera!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newscore.gigabell.net!fu-berlin.de!uni-berlin.de!dclient217-162-120-40.hispeed.CH!not-for-mail
From: "Adrian 'Dagurashibanipal' von Bidder" <[email protected]>
Newsgroups: alt.os.linux,alt.os.linux.mandrake,comp.os.linux.misc
Subject: Re: Defrag in linux? - Newbie question
Date: Fri, 28 Sep 2001 15:05:30 +0200
Lines: 32
Message-ID: <[email protected]>
References: <[email protected]> <[email protected]> <[email protected]>
NNTP-Posting-Host: dclient217-162-120-40.hispeed.ch (217.162.120.40)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1001682330 17062785 217.162.120.40 (16 [93814])
X-Orig-Path: not-for-mail
User-Agent: Pan/0.10.0.91 (Unix)
X-Comment-To: "Tony Lawrence" <[email protected]>
Xref: chnws06.ne.mediaone.net alt.os.linux:219343 alt.os.linux.mandrake:184641 comp.os.linux.misc:349691

Behold! For Tony Lawrence declaimed:

> Adrian 'Dagurashibanipal' von Bidder wrote:
>>
>> Behold! For mac declaimed:
>>
>> > Do I need to defrag the HD in Linux?  If yes, how?
>>
>> There is an ext2defrag (or e2defrag?) tool. But basically, you don't
>> need to defrag since the file system code is much more clever than the
>> FAT one and tries to discourage fragmentation. You'll basically get a
>> low fragmentation (2-5% of the files or so), but this will remain
>> constant except when the partition gets very full and you do log of
>> file creations/deletions with extremely funny file sizes. I mean: you
>> could probably force fragmentation up if you tried, but it'll never
>> happen in everyday use.
>
>
> I just started reading Moshe Bar's "Linux File Systems".  On page 68, he
> says (about ext2 fs):
>
> "However, contiguous file system block allocation will eventually end up
> with file blocks fragmented across the file system, and file system
> access will eventualy revert back to a random nature".

Agreed. The question is, when is 'evenutally'. If the fs is, at one time,
quite full and you delete random files (randomly paced, that is), you
will of course get high fragmentation. Every filesystem is affected by
this fragmentation (ok, there's bound to be exceptions, but anyway), the
question is: how bad, and how soon.

-- vbi

好像以前ext1文件系统时需要碎片整理,现在ext2以上的都不需要了,它能保持在某个程度上
On Tue, 1 May 2001, Ari wrote:


> Or is ext2 built in such a way that fragmentation is minimal? Or
> is it just that no one has taken the time(or seen the need?) to write a
> defrag utility for linux?


ext2 is designed in such a way that it doesn't fragment badly. Ext
(ext1?) did fragment, and so there was a defragger. Ext2 basically
performs some amount of defragmentation on the fly in how it allocates
disc blocks. It will, IIRC, try and keep files defragmented when it
writes them, and it will also try and keep free space in large chunks so
that new files can be written without fragmentation.



--
        -Matt
The part of the world that people find most puzzling is the part called "Me".
回复

使用道具 举报

发表于 2004-2-22 17:53:10 | 显示全部楼层
在你硬盘可能的寿命内,不用担心碎片问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-17 20:10 , Processed in 0.058191 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表