keyongtech


  keyongtech > windowsxp.* > windowsxp.general > 03/2005

 #1  
03-14-05, 02:39 AM
Sal
Say you have two files of equal size and you copy file1 over file2,
does NTFS overwrite the same sectors occupied by file2 with the
contents of file1? Suppose you just make a cosmetic change to file1
without changing its size and save it. Does NTFS save it in the same
sectors it previously occupied?
 #2  
03-14-05, 03:21 AM
Tom
"Sal" <here> wrote in message
news:4230
> Say you have two files of equal size and you copy file1 over file2,
> does NTFS overwrite the same sectors occupied by file2 with the
> contents of file1? Suppose you just make a cosmetic change to file1
> without changing its size and save it. Does NTFS save it in the same
> sectors it previously occupied?
>


Firstly, the storage system (NTFS in this case) does not do any writing, the
operating system does the writing. If you overwrite a file with that is the
same size, it will remain the same, and in the same location. If the size
changes, then it will increase to filling available sectors of the filing
system (always adjacent for single files).

Also, there is no such thing as making a cosmetic change so to speak; if you
change the file attributes in any way, you have changed the file, and it
becomes different, but the location doesn't change (unless you specify a
specific and different directory).
 #3  
03-14-05, 03:38 AM
Richard Urban
What you say is true, unless you are using the Norton Protected Recycle Bin
(maybe Executive Software Undelete also). Under this circumstance "every"
file that is changed is written to a new location or else the Norton
Protected Recycle Bin would not be able to restore the older versions when
called upon to do so. (-:
 #4  
03-14-05, 03:51 AM
Tom
But he isn't using (and did not say he was) Norton's PRB, so it is useless
information, unless he comes backs and makes the claim he is using NPRB.

"Richard Urban" <richardurbanREMOVETHIS> wrote in message
news:a580
[..]
 #5  
03-14-05, 04:26 AM
Richard Urban
Just pointing out an exception that applies to many people. No offense of
your knowledge intended!
 #6  
03-14-05, 08:23 AM
David Candy
Most programs work by loading a file, saving a file under a random name. Deleting the original file, renaming the saved file to the old name. But it could be memory mapping the file. Where the file becomes a sort of swap file and the memory manager looks after saving the file.

In short No.
 #7  
03-14-05, 02:14 PM
Tom
No offense at all (the WWW doesn't offend me, nor the the corresponding
participants).
If you read the OP, I wouldn't want to confuse the question further anyway,
as I know you have an understanding of filing systems and OSes.

"Richard Urban" <richardurbanREMOVETHIS> wrote in message
news:a508
[..]
Similar Threads
NTFS Bad Sectors

Over the past two days I've been getting these errors in my SYSTEM Log: "The file system structure on the disk is corrupt and unusable. Please run the chkdsk utility on the...

Bad sectors on NTFS drive -- continual problems

I need some fairly quick advice. I've bought a replacement HD, and am getting ready to replace my old one, but I'm nervous. I have a Compaq laptop with a Toshiba 2.5" SATA...

Read-Write hdd sectors

Hello to all, I m writing the Diagnostic code for the HDD. In that i want to do the following test 1. Locate the sectors 2. Reading the data from the sector 3. Saving the...

How does Win2000/NTFS deal with bad sectors?

What happens when Windows 2000 tries to write data to a bad sector on a hard drive formatted as NTFS? Does it know that the sector is bad and then tries to write the data to...

ntfs - bad sectors

I tried to resize an ntfs partition G:\ (not bootable) with partition Magic 8, but could not do it because of bad sectors. If I delete G:\ and format as NTFS (adding free...


All times are GMT. The time now is 11:42 AM. | Privacy Policy