I have an idea what it could be: the backup boot sector.
In fact it MUST be the backup boot sector.
It is located _excatly_ in the middle of the volume.
Number of sectors(=clusters since cluster size=sector size) is 39085137.
Location of offending cluster is 19542568 * 2 = 39085136
Spot it?
The location of the backup boot sector is defined as either the end of
disk or INT(nr_sectors / 2) = INT(39085137/2) = 19542568
Szaka I would suggest that you update ntfsresize to detect this case. You
should definitely be able to cope with it fine. It would be best if you
check whether the offending sector contains a valid ntfs boot sector (you
can do this using library functionality:
libntfs/bootsect.c::ntfs_boot_sector_is_ntfs().
And if it does, assume this is all ok.
You could even go as far as deallocating the sector and moving the
allocation to the volume end (considering this is ntfs 3.0 that is ok).
Most likely this volume was upgraded from a windows NT 3.51 NTFS volume
and the upgrade process didn't do the backup boot sector update.
Alternatively the volume has been grown to fill the disk with some strange
ntfsresizer when the machine was factory installed which is so old that it
creates an NT 3.51 NTFS boot sector...
Cheers,
Anton
On Fri, 11 Jul 2003, Bird, Barry wrote:
> > Just to be sure, did you run chkdsk between these tries?
>
> Sometimes yes, sometimes no. I often did, but not before the attempt to
> pause Norton Antivirus.
>
> If I understand the output of ntfsresize correctly, it is saying that 1 bit
> in the cluster bitmap has one cluster (out of 39 million) in use when in
> fact
> nothing is using it (or nothing that ntfsresize knows about).
>
> The position of this cluster may be significant. Isn't it just before where
> the MFTMirror ought to be? Perhaps there is a bug in chkdsk?
>
> I do not think this is a big error and it seems that Windows can tolerate
> it.
> Of course, there is a risk that it IS valid.
> I appreciate your desire to ensure that chkdsk does get run if errors are
> found. However, it seems to me that ntfsresize could allow (with suitable
> warnings) resizes down to such a cluster without jeopardising anything.
> Additionally, it could be more restrictive and only allow this in 'special'
> circumstances.
>
> ntfsclone might be useful, here. I'd have thought that toleration of
> inconsistencies should be allowed in debugging use (2), especially if the
> case I have here crops up now and then. Could it be used to extract at
> least
> the first few records of MFT Mirror? The volume of data will need to be
> kept
> down because I am writing it to the floppy - there is nowhere else!
>
> Unfortunately I don't have fsutil, I can't find it on the resources disc
> - isn't this only in XP? BUT - I used the sysinternals program ntfsinfo
> (even though it's not supposed to work for W2k!):-
>
> Volume Size
> -----------
> Volume size : 19084 MB
> Total sectors : 39085137
> Total clusters : 39085137
> Free clusters : 35890639
> Free space : 17524 MB (91% of drive)
>
> Allocation Size
> ----------------
> Bytes per sector : 512
> Bytes per cluster : 512
> Bytes per MFT record : 1024
> Clusters per MFT record: 2
>
> MFT Information
> ---------------
> MFT size : 12 MB (0% of drive)
> MFT start cluster : 16
> MFT zone clusters : 4420000 - 9279808
> MFT zone size : 2372 MB (12% of drive)
> MFT mirror start : 29208
>
> The results look good on the whole, apart from the MFT mirror start which
> looks
> wrong, surely it should be half of total clusters (19542568 not 29208)? It
> is
> that value (half the total) on my other W2k machine (on both its 2 NTFS
> partitions), so I think ntfsinfo is giving the correct answer.
> BTW ntfsresize finds no errors on those partitions.
>
> Thanks for your help,
>
> Regards,
>
> Barry
>
> -----Original Message-----
> From: Szakacsits Szabolcs [mailto:sz...@si...]
> Sent: 11 July 2003 10:36
> To: Bird, Barry
> Cc: 'lin...@li...'
> Subject: RE: [Linux-NTFS-Dev] Extra cluster half-way along NT flelsystem
>
>
>
> On Fri, 11 Jul 2003, Bird, Barry wrote:
>
> > Thanks for taking an interest in this problem.
>
> You're welcome :)
>
> > Totally 1 cluster accounting mismatches
> > ----
> > Yes, it's always the same cluster number, and only one.
>
> Just to be sure, did you run chkdsk between these tries?
>
> > If you care to send me a special program that can extract slices
> > of this filesystem for inspection, I'd be happy to run it and send
> > you the results.
>
> I recently finished 'ntfsclone'. This can be used to
>
> 1) make a full backup to a sparse file, another partiton or standard
> output, e.g. for full backup through network (basically it's like
> 'dd' however it can be _much_ faster because it understands NTFS).
>
> 2) save only the important NTFS structures. This can be very
> useful for developers for debugging, etc.
>
> However it doesn't support inconsistent NTFS, if you think I could add this
> feature, I'd be interested in 2).
>
> If you do have backup then another, additional way could be I add optional
> support for inconsistent NTFS to the development version of ntfsresize. I
> don't think it would cause problems [of course you won't be able to resize
> below to stalled/lost cluster], still I'm quite unwilling to do it because
> people would use it instead of doing chkdsk (and that always fixed the NTFS
> inconsistencies ... so far).
>
> > PS I got hold of your ntfsmeta program
>
> BTW, if you have 'fsutil' on your Windows (should be default or in the
> Resource Kit), could you do a
>
> fsutil fsinfo ntfsinfo C:
>
> > and ran it to get the 'boot record', if that helps (the small number of
> > unused sectors seems at variance with the report in Windows that more
> > than 91% of the disc is unused 8388736/39085137 = 21.5% unused! - I
> > suppose I just don't know how to interpret this):
>
> "Unused" below means the field is "unused", not "unused sectors".
> "Reserved or "unknown" would have been a better naming. Well, actually
> it's used, because it's value is usually 8388736 or 128 if NTFS is on
> an USB device.
>
> > Unused : 8388736
> > Number of sectors : 39085137
>
> Cheers,
>
> Szaka
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps1
> _______________________________________________
> Linux-NTFS-Dev mailing list
> Lin...@li...
> https://lists.sourceforge.net/lists/listinfo/linux-ntfs-dev
>
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
|