On Wed, 2002-04-03 at 08:47, Brian Parish wrote: 
> On Wed, 2002-04-03 at 08:51, Lyvim Xaphir wrote:
> > Fixing a vfat drive from
> > inside linux (a truly unbiased/independent/seperate standpoint) has
> > definite advantages.  The only reason I stop short of using the
> > adjective "superior" is because I haven't conducted rigorous tests to
> > back that view up.
> > 
> Lyvim,

> Sounds like a plan to me!  Can you give us a brief list of the tools you
> have found useful for this?
> 
> TIA
> Brian

I'm glad you emailed me because you prompted me to run dosfsck on my
winblows partition and it had some problems....i.e. -- 

_______________________________________________________ 

[root@tamriel elx]# dosfsck -r -v  /dev/hda1 
dosfsck 2.8 (28 Feb 2001) 
dosfsck 2.8, 28 Feb 2001, FAT32, LFN 
Warning: FAT32 support is still ALPHA. 
Boot sector contents: 
System ID "MSWIN4.1" 
Media byte 0xf8 (hard disk) 
       512 bytes per logical sector 
      4096 bytes per cluster 
        32 reserved sectors 
First FAT starts at byte 16384 (sector 32) 
         2 FATs, 32 bit entries 
   4205056 bytes per FAT (= 8213 sectors) 
Root directory start at cluster 2 (arbitrary size) 
Data area starts at byte 8426496 (sector 16458) 
   1050192 data clusters (6619136 bytes) 
63 sectors/track, 255 heads 
        63 hidden sectors 
   8417997 sectors total 
Checking for unused clusters. 
Checking free cluster summary. 
Free cluster summary wrong (79353 vs. really 88878) 
1) Correct 
2) Don't correct 
? 1 
Perform changes ? (y/n) y 
/dev/hda1: 7969 files, 961314/1050192 clusters 
_________________________________________________________ 

I also use (linux)fdisk and mkdosfs, and this works, especially if you
let it do it's thing automatically.  Warning: one time I set the sectors
per cluster number manually, and I had anomalies. Specifically, scandisk
and windoze defrag failed to operate(if I remember correctly).  These
were the only anomalies evident that I can remember; everything else
worked OK. If you let mkdosfs set the sectors per cluster automatically
you don't have to worry about this.  On the other hand, if you want to
experiment here is a table that you can use as a rough guide: 

http://hjem.get2net.dk/rune_moeller_barnkob/filesystems/fat32.html

This table is giving an example 2 gig partition. 

The disk I operated on above is a 4 gig fat32 partition that was set up
using the fdisk utility under xvanilla dos version 7.10; i.e. the dos
version that shipped with 98. 

The only catch that you have to remember with mkdosfs is that you must
give it the total block count of the partition you are initializing. 
This information can be had from linux fdisk.

But back to dosfsck.  In summary, it's pretty easy to use, I think; and
it's FAST.  You have the option of telling the util to repair problems
automatically, which will really speed things up, if you've got a
scrambled fat, crosslinks or similar time consuming troubles. You also
have the option to save lost clusters to files, just like the native dos
utilities do. Dosfsck is not a panacea; but then neither is any other
util I've tried, with the possible exception of backup utils.

HTH!

LX


-- 
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
Kernel  2.4.8-26mdk     Mandrake Linux  8.1
Enlightenment 0.16.5    Evolution  1.02
Registered Linux User #268899 http://counter.li.org/
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to