How to VIOLENTLY delete files from NTFS partitions?
#1
Posted 13 July 2004 - 03:55 PM
One simple way to do it would be to format the partition, but what if there are a few gigs of valuable stuff on that partition and no way to move them / back them up (no additional partitions, no recordable media with enough storage capacity)?
If it was something running of FAT32, I'd simply boot into DOS mode with my Win98 boot disk and delete all the system files manually:
C:\WINDOWS or C:\WINNT - GONE!
C:\Program Files - GONE!
C:\*.* - GONE!
C:\Documents and Settings - GONE! (after moving all the vital stuff to another folder)
Simple, no?
But how do I do it when my OS is installed on a NTFS partition with all its file permissions and protections?
Any simple way?
#2
Posted 13 July 2004 - 04:30 PM
Hard drives are cheap these days, as are CD-RWs and DVD writers are coming down in price. I know forking out for stuff is never a joyful experience but it is better to have your data safe before you start messing around (I'm speaking from many instances of painful experience: plan for the worst).
However, If you are intent on pursuing your current plan then you might find this useful:
http://www.nu2.nu/pebuilder/
BartPe is a customised boot CD which will give you access to any 2000/XP/2003 installation with a GUI, network and full file system support.
#3
Posted 13 July 2004 - 06:31 PM
Where would those left-overs be if not in the directories I mentioned? Why would I need to format?
Originally posted by Curley_Boy:
http://www.nu2.nu/pebuilder/
BartPe is a customised boot CD which will give you access to any 2000/XP/2003 installation with a GUI, network and full file system support.
I'll try that, thanks.
You see, the reason I'm investigating this issue, is not just for my own PC. I _do_ have a DVD-Writer. But in the past I've been fixing and reinstalling systems for neighbors many times, and when you're doing it for someone else who doesn't want to lose his data, you can't say: "go and buy a DVD-writer or a hard disk first".
Of course, you can say: "you have no choice but to format", but it's always better if you have a choice.
#4
Posted 13 July 2004 - 08:05 PM
When installing windows I create a 6 - 10 GB partition that is my C: drive and I install NOTHING but windows there. all My data, games etc I put on other partitions.
that way whenever I re-install windows (which I do at least twice a year)I wipe the C: drive and re-install and that way I still have all my valueble data stored on other partitions.
this is my current partition table
C: drive 6gb (windows only)
D: drive 30gb (games partition)
e: drive 30gb (games partition)
f: drive 30gb (video editing)
g: drive 20gb (application partition)
S
#6
Posted 23 July 2004 - 11:21 PM
Also, check out http://dban.sourceforge.net
Free (as in speech and beer) and good.
From the "News" section on the DBAN page:
March 2004: DBAN appears briefly in the TechTV Screen Savers episode How the Department of Energy Stays Secure. DBAN is part of the National Nuclear Security Administration suite of security tools.
#7
Posted 24 July 2004 - 03:31 AM
PULL THE HARD DISK. PUT IT INTO YOUR COMPUTER. AND EITHER...
A. Backup all the data to your own drive somewhere, format the disk, and put the crucial data back.
OR
B. Simply delete all the windows, program files, doc and sets, etc. Make sure view all hidden files is enabled as well as system files viewable.
Something like this takes me a whole 10 minutes and i don't have to deal with DOS commands etc.
#8
Posted 24 July 2004 - 12:09 PM
"How to VIOLENTLY delete files from NTFS partitions?"
LOW-LEVEL FORMATTING, surest method I know of for 'total disruption' of disk-content (& then personally? I would sweep the disk repeatedly using a magnet believe it or not).
Ah, but in the topic I asked about "deleting files", not "deleting ALL files". Your method will not work if you only want to delete files selectively. A low-level format will erase everything, and the magnet method is one you absolutely don't know what it will do.
That's my method exactly. Unfortunately, you can't do it from within Windows, because the Windows run-time environment protects these files. So you need to boot into pure DOS and do it from there. But if the partition is NTFS, the standard pure DOS available on Win9x won't recognize it, so you need a tool like the NTFSDOS Professional.
#10
Posted 27 July 2004 - 10:09 PM
I subscribe to the SecurityFocus Forensics mailing list, and there's always interesting discussions going on there, as well as legal issues.
#11
Posted 27 July 2004 - 11:55 PM
I subscribe to the 'digest' mailings, which have several threads in one email for easier reading (and less clutter).
Of course all of the lists can be read online too, here: http://securityfocus.com/archive
#13
Posted 31 July 2004 - 10:11 AM
If you read and understood my original post (not just topic title - which you seem to be sticking too much to), you'd see that all I wanted was something to let me run DELTREE over a system directory on an NTFS drive, which is something I obviously can't do while Windows is running and something the Windows recovery console doesn't allow me and something I can't do from a FAT32 OS Bootdisk, because it cannot see NTFS partitions.
But even after I found a solution myself and posted here that I found it, you came and started talking about your program. With your experience and understanding of computers, couldn't you see that it was completely irrelevant? Did I, or anyone else in this topic exhibit interest in secure destruction of data, which makes it unrecoverable? And please, don't mention again that this is how you understood the topic title. Titles do not matter, many people just post something like "HELP". It's the contents that matters.
I don't mind that you and Adam had a nice chat in this topic on things that interest you and have no relevance to the topic itself, as I found my solution. But I do mind being treated as stupid and talked to in a condescending manner.
#14
Posted 05 August 2004 - 12:54 AM
It's the internet, relax.
Lastly, Alec, he's not worth your replies.
I've been on this forum for an hour or so and I've already noticed that Alec answers almost everyone's questions. That is why I felt like posting this. dr_st needs to be more grateful imo.
dr_st I am sure you will attack my post, but I'm not going to reply. This is a computer help forum, flaming has no place here. If you got what you needed then stop posting rants.
#15
Posted 07 August 2004 - 12:45 AM
Fine. Let's conclude that I really screwed up there and couldn't formulate my request properly. Happens to the best of us.
I never attack anyone unless provoked. When someone talks to me like I'm an idiot and says things like Alec said in his post from 2004-07-24 07:22:37, I consider that provoking.
I'm pretty relaxed. I can be deeply cynical and vicious when relaxed, just like I can be Mr. Kindness even when nervous.
Luckily, your "imo" means nothing on this matter. I'm always grateful when people help. I try to be grateful if a person just tries to help, even if in the end he doesn't. Here I stopped being grateful at the instant I picked up the condescending vibes, because like I said, this is something I don't like.
Right on the money, chief.
#17
Posted 07 August 2004 - 03:06 PM
Bygones.
#18
Posted 09 August 2004 - 05:06 PM
"Blabbing" did not refer to your convo with Adam, but to you constantly trying to prove to me that you answered my question, when I was saying you didn't. My apologies again for being misunderstood.
Others in the topic apparently agreed with me & you apologized yourself for making a mistake in this regard in fact!
Normally I don't get misunderstood in issues like this. At least not by people who have a clue. You definitely have a clue, which is why I am still surprised you couldn't understand my problem, even considering the fact that I didn't formulate it clear enough (again, seemed to me pretty standard a problem for everyone to understand, even without me giving graphic descriptions of typing DELTREE C:\WINDOWS)
Here's a challenge:
(1) Log in as the administrator with all the administrative rights and privileges.
(2) Shut down all processes except the system processes you can't shut down (and Explorer, which needs to be running)
(3) Try to delete C:\WINDOWS (or whatever your Win dir is).
(4) Tell me what happened.
The administrative rights are not the problem. The problem is during run time you cannot delete files which are protected by running processes. A lot of files in the Windows directory are just like that. To simplify, I always delete the Windows directory from DOS. To do that I needed a utility which will allow me to see and manipulate NTFS folders from DOS.
In case you are now thinking to write "Well, if this is all you wanted, why didn't you just say it?!" I apologize in advance once more for being too unclear.
Yes, like I said, NTFSDOS Professional helped. It allows just that: manipulating files on NTFS drives freely from DOS environment. BTW, it's scary how it completely seems to ignore administrative rights. Or maybe I haven't looked into it enough yet.
*BATCH FILE*
I know how to use DEL, RD, DELTREE and ATTRIB, thank you.
Irrelevant. Not the problem. Hope this time my above explanation was clear enough. If it wasn't, this time I'm not going to apologize.
Guy: You never mentioned recursive function being desired on your first 5 postings in this thread... you admit this yourself!
When someone tells you he wants C:\WINDOWS gone, what pops to your mind?
Here's a shorter one:
ATTRIB -R -H -S DIR_I_WANT_TO_DELETE
CD DIR_I_WANT_TO_DELETE
ATTRIB -R -H -S *.* /S /D
CD ..
RD DIR_I_WANT_TO_DELETE /S
I hope that you know the answer to this already having read down to here.
Jesus fuck, man. Why reinventing the wheel? Create an NTFSDOS Professional floppy, boot from a DOS/Win9x floppy, launch NTFSPRO.EXE and type a few commands from the command prompt. Why build a batchfile even?
The more I talk, the more I think that it's not an issue of you misunderstanding my initial question, it's an issue of me and you having COMPLETELY DIFFERENT AND INCOMPATIBLE PATTERNS OF THOUGHTS. LOL. Or maybe we are both just too stubborn for our own good.
Have fun and thanks for wasting so much of your time on me. And I mean, wasting, yes, because the solution was ready before your first post in this topic took place.
EDIT: Having re-read my first post again... Yeah, you are completely right. It wasn't clear. I put in some irrelevant stuff and left out some relevant stuff. The problem is that I take some things for granted, while they aren't. Once again, my most sincere apologies.
#19
Posted 10 August 2004 - 09:53 PM
When you want to reinstall Windows FROM SCRATCH, you have two options basically. First one is indeed format the partition, but as I explained, sometimes it's a thing you don't want to do, because you may have lots of valuable stuff on that partition with no means or no will to back it up.
To have a clean install without formatting, you need to erase the exact directories that I mentioned in my first post.
You cannot delete them properly while Windows is running. Like I said, it's not an issue of administrative rights, but of files being protected by the run-time module. Your batchfiles won't do the trick here, because all they do is call the systems delete commands, which will not work, because of the above mentioned protection. You will simply run into many files which will give you the famous "Access is denied" message.
BTW, your comment on my suggested batchfile not having DEL or ERASE, look closer: RD /S in Win2K/XP = DELTREE in DOS/Win9x. That's why I said that your batchfiles are reinventing the wheel - there is a built-in deltree in 2K/XP. Not sure about NT, though, I don't think I ever used it.
Your next suggestion, the recovery console, was the first thing I tried. As you guess, it didn't work. It's funny that the RC allows you to run format on a partition, but doesn't allow you to run RD over a selected directory (Access is denied). So, unless there are some more complicated ways to get the RC to allow you to RD a direcory, it is not an option here too.
Hence, I was looking for a way to get a pure DOS environment with full access to any NTFS volumes. Since the NT OSes don't run over true DOS, they don't provide you with such tools. I couldn't find any 2K/XP bootdisk to allow me to do that either. That's when I ran into NTFSDOS Pro.
The great thing about NTFSDOS Pro is that it makes any NTFS partitions look like regular FAT/FAT32 partitions to the OS, allowing you to use any OS commands on these files in Win9x environment. BTW, apparently it won't work with DOS 6, as I originally thought (I tried it with Win98SE bootdisk).
You can find yourself in need to access the hard drive from pure DOS from various reasons. For example, just a few days ago I had a totally fatal WinXP crash (REGISTRY_ERROR 0x51). It wouldn't boot normally, it wouldn't boot in safe mode, it wouldn't boot to the recovery console, it wouldn't even boot ERD Commander 2003 (a full-featured Win-style recovery environment by Winternals, the same guys that made NTFSDOS).
This situation is pretty rare, but if it happens - you absolutely cannot access anything on the hard disk except from pure DOS. What do you do if you have some crucial files there and you need them?
If the partition is FAT32, you can use a regular Win9x bootdisk. If the partition is NTFS, you get the same result with Win9x bootdisk + NTFSDOS Pro.
#20
Posted 11 August 2004 - 04:54 AM
Yeah, but if you want to always do current backups of everything, you'll end up doing nothing but running backups. So in the end, most people do selective backups of their important data every once in a while.
Yeah, you can. But there are also "Program Files" and "Documents and Settings" and the files in the root folder, and I don't want to trust Windows to be able to throw the old junk out itself, so I prefer to delete this junk myself prior to installing.
Are you blind?
Dunno, never tried. Don't care enough.
I'll ask again: are you blind?
What makes you say RD /S won't work on hidden/system/read-only files/directories, when it clearly does work? So, unless you count the verbose messages as an improvement, it's really nothing but reinventing the wheel.
(Some of the tools in RC? I hate... copy will not use wildcards, etc. is a GOOD example of why I think @ least it needs a commandset update/upgrade!)
(I.E.-> RD in recovery console is NOT recursive... it seems like command.com circa DOS 3.3 @ best on many of its commands, with some NT specific commands for drivers/services/formatting etc. @ best in RC commandset!)
Conclusion: RC is crap?
Unless you reach to the point where you start wasting more time on backing stuff up than on working.
First of all, not always. In the example I brought, nothing related to Windows would boot - not Windows, not Safe Mode, not RC, not installer, not third-party tool. That was truly a hideous crash.
Besides, what's simpler / more efficient: installing a second OS or launching NTFSDOS from a floppy?

Help










