Skip navigation.
Home
The QNX Community Portal

View topic - How to Analyse HDD

How to Analyse HDD

All topics.

How to Analyse HDD

Postby syongs » Fri Dec 22, 2006 2:57 am

Hi,

Is there a tool in QNX that allows me to analyse my HDD? I suspect some of my files are corrupted and I want to find out if there is a problem with the HDD.

Thanks!
syongs
New Member
 
Posts: 2
Joined: Fri Dec 22, 2006 2:55 am

RE: How to Analyse HDD

Postby mario » Fri Dec 22, 2006 4:05 am

chkfsys and dcheck.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: How to Analyse HDD

Postby maschoen » Fri Dec 22, 2006 7:33 am

chkfsys will check the file system, dcheck will check for bad sectors.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

RE: How to Analyse HDD

Postby leo.cuyar » Wed Mar 25, 2009 4:00 pm

talking about that,
are there any tool to defragment the HDD?
leo.cuyar
New Member
 
Posts: 3
Joined: Tue Feb 17, 2009 2:21 pm

RE: How to Analyse HDD

Postby micro » Wed Mar 25, 2009 4:24 pm

fragmentation is not needed on all fs. A lot of fs work very long before you can find fragmentation at all.
Some fs even defrag during read/write operations.

But i never checked that on QNX...
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm

RE: How to Analyse HDD

Postby juanplacco » Wed Mar 25, 2009 7:50 pm

are there any tool to defragment the HDD?


I don't think so...
juanplacco
Senior Member
 
Posts: 318
Joined: Wed May 17, 2006 2:30 pm

RE: How to Analyse HDD

Postby ysinitsky » Wed Mar 25, 2009 7:54 pm

ysinitsky
Senior Member
 
Posts: 164
Joined: Wed Dec 14, 2005 8:46 pm

RE: How to Analyse HDD

Postby maschoen » Thu Mar 26, 2009 12:00 am

fsysinfo is just a tool to analyze whether a drive needs defragmenting. There is no specific tool (that I know of) for QNX that defragments a drive in place. The algorithms that the file system uses will generally maintain an un-fragmented file system as long as there is always some reasonable percentage of free space available. Certain uses will always create fragmentation, for example allocating a lot of small files, and randomly deleting them.

If you find that your drive is fragmented, here are two strategies that will help.

1) If you need to defrag in place, and you have sufficient empty space available, do the following. Figure out which files are not in use. Copy each such file. Delete the old file and rename the new one. The file system will defrag these files as it copies them.

2) If you can defrag off line, try the following. Copy most files (not .boot or .altboot) to a backup hard drive. Delete all the old files, and copy the backuped up ones back, one by one. This will create an almost completely defragmented drive. If you know which files are causing the defragmentation, you can copy more selectively.

I'm sure I've missed something that Mario or Bill Flowers will remind me of.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm


Return to Cafe

Who is online

Users browsing this forum: No registered users and 1 guest