Welcome, Guest. Please login or register.

Author Topic: need help deleting files under NTFS  (Read 3873 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline DamageXTopic starter

  • Sr. Member
  • ****
  • Join Date: Jun 2005
  • Posts: 339
    • Show only replies by DamageX
    • http://www.hyakushiki.net/
need help deleting files under NTFS
« on: May 13, 2009, 07:28:05 AM »
A failed Windows 7 RC install left behind multiple GBs of crap on my HDD that can't be deleted. How do I get rid of this $#!t?
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: need help deleting files under NTFS
« Reply #1 on: May 13, 2009, 07:41:44 AM »
Format it.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: need help deleting files under NTFS
« Reply #2 on: May 13, 2009, 07:50:56 AM »
It's probably down to the fact that your current administrator account has a different uid to the one that was in the process of being created during the install. Windows idea of file ACLs are strange like that.

Back in the day I would have suggested Winternals ERD Commander to deal with this sort of gripe but it got bought up by MS at some point. Probably won't work with Vista/Win7.

However, if the NTFS version is at least Vista compatible, shove the drive into a "current" linux box that has ntfs3g installed and you can delete anything from it, as long as you are root (probably works even if you aren't, provided the drive was mounted under your user).

Failing that, format the bugger.
int p; // A
 

Offline Retro_71

  • Hero Member
  • *****
  • Join Date: Nov 2007
  • Posts: 732
    • Show only replies by Retro_71
Re: need help deleting files under NTFS
« Reply #3 on: May 13, 2009, 08:03:46 AM »
If you want to wipe the drives and you have a windows Xp CD.Boot off the CD and go to the screen that has what drive you can pick to install xp on and just delete all the partitions and then format one ntfs, if you don't want to install xp just reset the pc and put whatever os u want on there.
OR if u have another pc take the hard drive out and pigback it to another computer and wipe it.
OR if you already have a OS and you were going to dual boot windows7 then right click on my computer then click on manage then disk mangement and from there you can delete, repartition and format what you want that is ofcourse if you are using windows.......
A Chameleon and 1541 II ultimate II
2 x C=64, 2 x C64C, C128 (jiffydos), C128D, 3 x A500 (1 x 030),
A1000, 2 x A2000 (GVP 040 + SCSI combo + indivision), A3000 GVP IV24 & Emplant
3 x A1200 (1 x 030, Indivision and IDE-Fix with 40 GB HDD & DVD Burner)
2 x A4000 (4060, Deneb, Indivsion), CD32.
2 x Apple IIe and A IIGS (Various new cards), + 3 x Megadrives (CD and 32), 2 x Saturns, and a dreamcast.. :D
 

Offline amiga_3k

  • Sr. Member
  • ****
  • Join Date: Apr 2006
  • Posts: 467
    • Show only replies by amiga_3k
    • http://www.elf8.nl
Re: need help deleting files under NTFS
« Reply #4 on: May 13, 2009, 09:16:43 AM »
Under Windows XP I would normally open a DOS box and use the old DOS DEL command to remove un-removable files.
Get a SAM, while you can! The new AMIGA is here!
 

Offline Bazzaq

  • Sr. Member
  • ****
  • Join Date: Sep 2005
  • Posts: 363
    • Show only replies by Bazzaq
Re: need help deleting files under NTFS
« Reply #5 on: May 13, 2009, 09:51:40 AM »
Apparently the 32bit windows7 rc has a problem with fresh install regarding the access rights to the root of the hard disk, there is an update via windows update to restore access rights.
--------------
A4000T 060@50/PPC@233/128MB,Prometheus/Voodoo3/Lan,DCE SD/FF,Prelude
 

Offline InTheSand

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 1766
    • Show only replies by InTheSand
    • http://www.ali.geek.nz
Re: need help deleting files under NTFS
« Reply #6 on: May 13, 2009, 10:13:01 AM »
Quote

Karlos wrote:
... shove the drive into a "current" linux box that has ntfs3g installed and you can delete anything from it, as long as you are root...


Or leave the drive in place and boot the machine with a Linux-based live/rescue CD with a recent ntfs3g preinstalled, such as SystemRescueCD. Very useful to have a copy of that around.

 - Ali
 

Offline mingle

  • Hero Member
  • *****
  • Join Date: Jun 2003
  • Posts: 660
    • Show only replies by mingle
Re: need help deleting files under NTFS
« Reply #7 on: May 13, 2009, 11:28:38 AM »
Hi,

As others have said, a rescue CD is the way to go.

I recommend the latest Hiren Boot CD, which is Windows/DOS based.

Then you can use one of the file-managers (ie: Volkov Commander) in conjunction with NTFSDOS to easily delete any offending files...

Cheers,

Mike.
 

Offline stevil2k

  • Newbie
  • *
  • Join Date: Sep 2005
  • Posts: 28
    • Show only replies by stevil2k
Re: need help deleting files under NTFS
« Reply #8 on: May 13, 2009, 11:43:57 AM »
Quote

Or leave the drive in place and boot the machine with a Linux-based live/rescue CD with a recent ntfs3g preinstalled, such as SystemRescueCD. Very useful to have a copy of that around.

 - Ali


This is definatly the best advice, I have rescued lots of machines in my workplace using this method with very high success.

One thing to note is that the NTFS filesystem will protect itself (if you have shut down incorrectly) and refuse to mount under linux.You can override this easy enough then use the MC file manager to delete the files.

System Rescue CD

Unet Bootin This is a great tool for making Live USB linux disks.
----------
Stevil2k©
 

Offline pjhutch

  • Sr. Member
  • ****
  • Join Date: Mar 2002
  • Posts: 452
  • Country: england
  • Gender: Male
  • Amiga user and developer
    • Show only replies by pjhutch
    • http://www.pjhutchison.org
Re: need help deleting files under NTFS
« Reply #9 on: May 13, 2009, 02:27:18 PM »
You can sometimes take ownership of the folder with the files in it and then you can gain full access to the files to delete them.

1. Open explorer and browse to the folder in question
2. Open properties of folder and select Security tab
3. Click on Advanced button
4. Select the Owner tab
5. Select a new Owner from the list
6. Tick box for 'Replace owner on subcontainers and objects
7. Click ok twice.

 

Offline Christian Johansson

  • Full Member
  • ***
  • Join Date: Nov 2004
  • Posts: 247
    • Show only replies by Christian Johansson
Re: need help deleting files under NTFS
« Reply #10 on: May 13, 2009, 02:36:26 PM »
 

Offline Thomas

Re: need help deleting files under NTFS
« Reply #11 on: May 13, 2009, 02:59:02 PM »
Quote

pjhutch wrote:
2. Open properties of folder and select Security tab
3. Click on Advanced button


XP Home does not have these options.

Bye,
Thomas

Offline ferrellsl

Re: need help deleting files under NTFS
« Reply #12 on: May 13, 2009, 03:12:19 PM »
pjhutch's instructions are spot on.  The files aren't being deleted because you don't own them any longer. The admin user account IDs have changed.  After you take ownership of the files under your new admin account you will have full rights to delete these files.
 

Offline adolescent

  • Hero Member
  • *****
  • Join Date: Sep 2003
  • Posts: 3056
    • Show only replies by adolescent
Re: need help deleting files under NTFS
« Reply #13 on: May 13, 2009, 03:23:06 PM »
Quote

Thomas wrote:
Quote

pjhutch wrote:
2. Open properties of folder and select Security tab
3. Click on Advanced button


XP Home does not have these options.


It does in safe mode.  
Time to move on.  Bye Amiga.org.  :(
 

Offline DamageXTopic starter

  • Sr. Member
  • ****
  • Join Date: Jun 2005
  • Posts: 339
    • Show only replies by DamageX
    • http://www.hyakushiki.net/
Re: need help deleting files under NTFS
« Reply #14 on: May 13, 2009, 08:26:23 PM »
Thanks for the tips, you guys rock. I tried to take ownership of the files while logged in as admin under win2k (my main OS) but it came back with an "access denied." Same thing with the cacl command. I booted Ubuntu and deleted the stuff and it was moved to a trash directory. So I deleted the trash directory and now most of it is gone, there were about a dozen files that still refused to budge. I haven't tried unlocker yet.