LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-04-2006, 02:17 AM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
Scandisk & Defragment?


- is there also Scandisk & disk defragment in linux?
 
Old 11-04-2006, 02:57 AM   #2
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Linux "scandisk" is fsck (which stands for File System ChecK).

fsck is usually run as necessary when your system boots and your filesystems are about to be mounted read-write.

Both fsck and defragmenting utilities are filesystem-specific. While all (as far as I know) linux filesystems provide a fsck utility, most linux filesystems do not have a defragmenting utility, because they are designed to avoid fragmentation, and any fragmentation is usually too low for the process of defragmentation to be considered worthwhile.

As long as you have a reasonable amount of free space, your filesystem should not really become fragmented.

EDIT: If you're interested, the filefrag utility can be used to inspect the fragmentation (if any) of a specific file. See man filefrag.

Last edited by zhangmaike; 11-04-2006 at 03:02 AM.
 
Old 11-04-2006, 03:20 AM   #3
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
-ok that good...
-so how can i use the fsck command to check my hdd?
 
Old 11-04-2006, 03:24 AM   #4
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
su to root, run fsck. It's that simple.

Be careful - it's BAD to run fsck on a filesystem that is mounted read-write for obvious reasons (what if you change something while fsck is fixing something?) You'll probably be warned about this when you run fsck.

See man fsck.

Last edited by zhangmaike; 11-04-2006 at 03:27 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Defragment Dovid Linux - Software 4 04-26-2005 01:46 PM
defragment linux glock19 Linux - General 11 09-14-2004 06:22 PM
Looking for defragment software. sjia Linux - Software 8 02-22-2004 10:51 PM
Defragment Anmar Linux - Hardware 2 09-09-2003 11:30 PM
defragment nautilus_1987 Linux - Software 45 12-11-2002 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration