View topic - How to Analyse HDD
How to Analyse HDD
8 posts
• Page 1 of 1
How to Analyse HDD
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!
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
chkfsys and dcheck.
- mario
- QNX Master
- Posts: 3956
- Joined: Sun Sep 01, 2002 1:04 am
RE: How to Analyse HDD
chkfsys will check the file system, dcheck will check for bad sectors.
- maschoen
- QNX Master
- Posts: 1919
- Joined: Wed Jun 25, 2003 5:18 pm
RE: How to Analyse HDD
talking about that,
are there any tool to defragment the HDD?
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
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...
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
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
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.
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: 1919
- Joined: Wed Jun 25, 2003 5:18 pm
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
