Deleted Files

A

Alan

Hi,
I had a lot of home movie files (.wmv's) stored in a folder on the desk top.
As they were taking up a lot of space, I burned them all to a couple of
DVD's and deleted them and the folder they were in.
I now find that if I search for .wmv, all the titles are still there.
Obviously they won't play as they're deleted. If I try to delete them I
can't because there's nothing to delete and I get that message. Is there any
way to get rid of these titles? It's not a big deal but it's annoying!
Using Vista Home Premium,
TIA,
Alan.
 
A

Adam Albright

No one know anything about this?
OK, Fine,

All "deleting" a file does is move them to the recycle bin. Have you
emptied the recycle bin?

Just so you know, you can't really delete any file, any time, anyway.
Ever. Period. Even when you empty the recycle bin all you accomplish
is release the sectors the file occupied on your hard drive so the
file system can reuse those sectors to store other files. Once you do
this, you should see a jump in free space. Over time sectors get
overwritten with new data. The point is this is totally beyond your
control. Scraps of old "deleted" files can lunk on your hard drive for
years.

The flaw is what you think is deleted is still there and can be easily
found and put back together again, typically with forensic software,
like ENCASE for example.

To add to your security if you have sensentive material on your
computer you need to "wipe" files you plan to delete. Wiping a file
replaces the data with a series of typically zeros and ones, often
with the pattern repeated multiple times. Now your 'deleted' files are
all but impossible to recover. You should also wipe free space as well
for the same reason.

The biggest security hole in every version of Windows is file slack. A
file regardless of size must fill a sector. If your sectors are 4K in
size and you save a file that's 5K then two sectors are used to write
the file to the hard drive. The bad thing is the space not taken up by
the file's actual contents is filled with junk; scraps of files, what
was in memory, anything, and that becomes slack, used to fill out
sectors. Again any forensic software can sniff out and read the slack
and find out all kinds of things about files you thought were deleted,
but like I said NEVER are. You can only overwrite sectors with
something else. They are only blank and prestine once, when you first
install a new drive. Never again.
 
D

Dave R.

Adam Albright said:
All "deleting" a file does is move them to the recycle bin. Have you
emptied the recycle bin?

Good point, although if Vista is indexing the recycle bin (remember, the
OP said a *search* still shows them) then Vista's developers need to be
smacked upside the head.

<snipped educational, although likely completely unrelated, discussion
of how Windows handles file deletion, slack space, etc.>

Most likely the search index hasn't yet caught up with reality. There
are several other discussions about this topic in the newsgroup, and so
far the only solution appears to be to force Vista to rebuild the index.
Maybe the Vista programmers really *do* need smacked upside the head...

See http://www.dummies.com/WileyCDA/DummiesArticle/id-4381.html for info
on how force Vista to rebuild the index, and how to change the indexing
options if desired.

Regards,

Dave
 
A

Alan

Hi Dave and Adam,
Many thanks for the replies.
After trawling through various web sites and playing around with it myself I
found the following that may be of use to anyone else experiencing the same
problem.
In the 'Search' screen, 'Search Tools', 'Modify Index Locations',
'Advanced', 'Rebuild'.
You get a message asking if you want to do this as it will take a long time,
(it does, believe me), and it will completely rebuild the index if it
appears to be out of date.
I did this and now all the deleted file names have gone. The non existent
file that were there looked perfectly legitimate, complete with the icon of
the first frame. This suggests to me that the MS developers are indeed in
need of a whack over the head. Do you really have to rebuild the index every
time you delete a file so that the search results are not 'out of date'?
I've only had this machine since early February and already it was
displaying almost as many deleted files as existing files, what would it be
like after a couple of years? The much vaunted 'search' facility would be
virtually useless.
The only thing I was doing with these files was editing them using Windows
Movie Maker and they have been backwards and forwards to and from an
external hard drive which I use to collect and deliver .wmv's to and from
my (grown up) kids. Whether that has anything to do with it I'm not really
sure.
This is an issue that needs to be addressed by MS in my opinion,
Regards,
Alan.
 
A

Adam Albright

Do you really have to rebuild the index every
time you delete a file so that the search results are not 'out of date'?

Shouldn't have to for any reason I can think of. Could be a carry over
of another bad bug that never seems to get fixed in Explorer where at
times it will nag "you can't do that" claiming a file is "in use"
(when for sure it isn't) and stuff like that. That's why I started the
memory leak thread, but of course the kiddie squad just has to pretend
I don't know what I'm talking about. ;-)

Anyhow, I just tried an experiment and got weird results with Search.
I began by emptying the Recycle Bin. Next I "deleted" 45 files all
contained the word Calvin somewhere in the file name, and moved 6 more
files having Calvin in their name to a different drive, then tried a
couple of different searches to see how Vista would do.

If I do an advanced search, tell Vista to look "everywhere" check
"include non indexed, hidden and system files it correctly returns the
6 files with Calvin in their name that I moved to my "H" drive. It
reported none of the files I dragged to the Recycle Bin.

So far, so good.

Now trying a simple search for Calvin which limits the search to only
indexed folders on my root drive C, when I NEVER put any Calvin files
at any time it finds a shortcut in the roaming folder. The only
problem is I didn't make any such shortcut, and if I did I sure
wouldn't have put in there. Surprise it really isn't a shortcut in the
traditional sense.

Now put your hip boots on. (from MSDN)

In Vista, default user data and system data have changed. For example,
user data that was previously stored in the %SystemDrive%\Documents
and Settings directory is now stored in the %SystemDrive%\Users
directory. In order to minimize the amount of application
compatibility problems users would experience due to the change in
folders names, such as C:\Documents and Settings moving to C:\Users,
Microsoft employed junction points. These junction points make it so
that hard coded reads and writes to legacy file locations would
automatically go to the correct new location without changing the
application.

Junction points can be identified as follows:

They have the FILE_ATTRIBUTE_REPARSE_POINT, FILE_ATTRIBUTE_HIDDEN, and
FILE_ATTRIBUTE_SYSTEM file attributes set. They also have their access
control lists (ACLs) set to deny read access to everyone.

Ed note:

Not apparently to Windows build-in search function, which explains why
it "hit" one of these junctions and showed it as a shortcut to the
Calvin folder. Want to have some fun, click Start, then just type in
'roaming' and watch Vista go nuts.

Remember Calvin? Well, like I said except for 6 files moved to "H" all
the remaing Calvin files got dragged and dropped in the Recycle Bin.
Not according to roaming. If I look at the results of the search using
'roaming" guess what... all the Calvin files (plus thousands of
others) are back in their original folder I put them with a time stamp
of a couple days ago when I first got them. Interesting to say the
least. Actually, that's not totally accurate. They aren't back in the
sense they can been seen with Explorer, no, they simply exist in some
defacto limbo when or if they go away I have no idea, non the less
Vista knows how to get them back, which means there got to be some
reference in the Registry, which create a entirely new security risk.

Here's why that's true. Just for fun I looked at some of these roaming
links and many were to applications, some I tested and deleted, others
to files I either worked on or moved elsewhere.

Now get this. I scan the list of 'roaming' files and hit on a music
video of some kids singing "You never walk alone". I remember
downloading this on 3/12, but I had renamed and moved it. However to
the "system" it still has a hot link in the roaming area under the
original file name. Just for the heck of it, I clicked on the link
from the roaming search window and the file still plays, so at the
least all these blind links eat up lots of disk space.


Anyhow, forgot that, that problem is for another day. To continue on,
applications that call out a specific path can traverse these junction
points if they have the required permissions. However, attempts to
enumerate the contents of the junction points will result in failures.
It is important that backup applications do not traverse these
junction points, or attempt to backup data under them, for two
reasons: Doing so can cause the backup application to back up the same
data more than once. It can also lead to cycles (circular references).

To more fully understand what's really happening you need to view the
movie staring the two Microsoft authors of UAC. You'll then learn how
tokens get created which can bypass UAC's nag screens to allow
processes through that otherwise would result in nag screens. Vista by
design tries to protect itself, ie, critical system files like the
kernel. The downside is this can have unanticiped consequences, more
so, if you start trying to do "system level" events, even something as
routine as copy/moving/renaming or trying to delete files. So one
downside seems to be Vista can when searching find and return juction
points and show them as "hits" when searching, even though they are
only internal reference points, and not actual user accessible files.
However if you search a different way things work normally.
Conclusion: Vista needs work. Lots of work. My question goes to the
beta testers. Come on guys, how did you miss all this?
 
G

Guest

East-Tec Eraser 2007 is now a good program; and even includes the old
Gutzmann method!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top