 | |
12-27-2001, 07:43 PM
|
#1 (permalink)
| | Registered User
Join Date: Oct 2001
Posts: 2,300
| » 
Noob question for the Linux experts
Do you scandisk and defrag in Linux? Is it needed, why or why not?
|
| |
12-27-2001, 08:01 PM
|
#2 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Yuma, AZ
Posts: 2,484
|
Good question. I'm not sure. I dont see any tools in here for that sort of stuff. I'm in Mandrake 8.1.
|
| |
12-27-2001, 08:04 PM
|
#3 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Englewood, CO
Posts: 2,144
|
i am no expert, and do not know about scandisk
but in linux you do not need to defrag.. saw it in a thread somewhere arund here...
something about linux just managing files better
edit: found it http://www.techimo.com/forum/showthr...&threadid=5183
__________________
--Jacob--
Last edited by JacobM5727; 12-27-2001 at 08:06 PM.
|
| |
12-27-2001, 08:13 PM
|
#4 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Lat:36.5N, Lon:95.5W
Posts: 1,223
|
Linux isn't prone to file fragmentation because it will find the best place on the disk to place the file rather than spreading it around in little chunks like Windows. I think there were a couple of defrag utilities for ext1, but with ext2 and the journaling file systems it's not necessary.
Linux also has a utility similar to scandisk called fsck. It runs automatically at boot after the fs is mounted a certain number of times and any time the file system is not unmounted properly. Germ
__________________
How do you set this laser printer to stun??
|
| |
12-28-2001, 04:50 AM
|
#5 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Mid-Atlantic
Posts: 1,361
|
Ok,I'm not the Linux expert here,but,I think it works like this(and if I'm wrong,please say so):
Unlike windows, which puts files in the 1st available space it finds,Linux first makes space for the file and then assigns it an inode(index node)so the file is always linked to that inode.
On my linux system(s) fsck will run after every twenty reboots.It will then report the # of non-contiguous blocks.
lynch
__________________
Seldom right,but never in doubt...
|
| |
12-28-2001, 06:48 AM
|
#6 (permalink)
| | Registered User
Join Date: Oct 2001
Posts: 2,300
|
Wow you post a question here and people actually answer it
Ok so Linux uses superior file placement, do we ever think Bill will implement that in Winhosed?
Can you manually run fsck if you are paranoid like me?
|
| |
12-28-2001, 06:53 AM
|
#7 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Cardiff, Wales UK
Posts: 1,368
|
You can, but you don't need to at all. If you do however make sure your disk is not mounted or at least mounted read only, otherwise you will definitely loose your data.
fsck is more like scandisk, so dont expect any speed improvements. You can always set the interval between fsck's using tune2fs. see the man page.
|
| |
12-28-2001, 07:24 AM
|
#8 (permalink)
| | Registered User
Join Date: Oct 2001
Posts: 2,300
|
Lose my data, eek not going to do that then. Where do I find this man page, and are women allowed? |
| |
12-28-2001, 07:28 AM
|
#9 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Cardiff, Wales UK
Posts: 1,368
|
from cli type:
man tune2fs
or xman and browse
or from kde Help select Unix Man pages
|
| |
12-28-2001, 07:36 AM
|
#10 (permalink)
| | Registered User
Join Date: Oct 2001
Posts: 2,300
|
Otheos,
you are a scholar and a gentleman. If you are ever in Dallas drop by and I'll buy you a beer |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions  | | | | | Recent Discussions  | | | | | |