Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Help! Help! Crazy undeletable file on harddisk!

Help! Help! Crazy undeletable file on harddisk!
Thread Tools
Tiresias
Registered User
Join Date: Sep 2006
Location: South Korea
Status: Offline
Reply With Quote
Jan 15, 2007, 09:50 AM
 
Here's the situation:

I used my 120 GB Porsche LaCie harddisk to transfer a bunch of .avi files from a PC at work to my Mac. They were from a totally legit Korean media website—One that requires you to register and pay money to download music and films. But when I connected my external to my Mac, one of the files is weird as hell: It's invisible except for the file name; it disappears when you click on it, and, therefore, it can't be deleted. When I grab it I can drag it to the trash, but I can't delete it from the external (Nor can it be dropped on to desktop or otherwise moved off the external).

Another weird thing about it is that it disappears, as I said, but when you close the folder and open it again—there the bloody thing is again: A decapitated file name without an icon.

Still another weird thing is it sits wherever it wants to sit—I have my finder set to "Snap to grid" but this file doesn't obey. It sometimes sits out of place (although, it behaved while I took it's photo below).

I smell file corruption.

I've tried de- and reconnecting the harddisk. I've shutdown and logged out. I tried everything.

Can some one please tell me how to delete this annoying file?! Or—failing that—how to reset my LaCie external harddisk.

It has no information other than the creation date. No size, no "kind", nothing.

Here's a screenshot of the file—both as a list and icon:


( Last edited by Tiresias; Jan 15, 2007 at 10:17 AM. )
     
utw-Mephisto
Dedicated MacNNer
Join Date: Dec 2006
Status: Offline
Reply With Quote
Jan 15, 2007, 12:04 PM
 
You could re-format the disk using the disk manager ... other then that .. nooooo idea .. thats a weird one ....
     
TETENAL
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Jan 15, 2007, 12:08 PM
 
a) Try to delete the file in the Terminal using the rm command
b) Attach the drive to an OS 9 machine or PC and delete it there.
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Jan 15, 2007, 12:16 PM
 
First try Disk Utility and see if it finds any errors on the drive.
     
Thorzdad
Moderator
Join Date: Aug 2001
Location: Nobletucky
Status: Offline
Reply With Quote
Jan 15, 2007, 12:35 PM
 
You say you got these files from a PAY site. Could it be this particular file is some sort of security file? Something that hangs around to ensure you can play the files? This is just wild speculation, of course.
Have you searched the PC you transferred the .avi files from to see if this same file is there, too?
     
Ganesha
Senior User
Join Date: Jul 2002
Location: Arizona Wasteland
Status: Offline
Reply With Quote
Jan 15, 2007, 03:08 PM
 
Have you tried deleting it from a Windows PC? I smell incompatible FAT32 file name.
     
CheesePuff
Professional Poster
Join Date: Jan 2002
Location: Rochester, NY
Status: Offline
Reply With Quote
Jan 15, 2007, 05:32 PM
 
I'd first try deleting it using 'rm' in Terminal.
     
Warhaven
Dedicated MacNNer
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jan 15, 2007, 08:02 PM
 
I'm willing to be it has an invalid character as part of the file name. I don't believe RM will work, as the file isn't linked correctly because of the bad file name. I had that issue before with a badly named MP3 from a Windows buddy of mine.

I believe the way I fixed it was moving/renaming it first using the mv command, and then deleting it. So, if the initial suggestion of using RM doesn't work, try this:

1) Open your terminal
2) Type "mv " (without quotes, and with a space on the end)
3) Drag the file to your terminal
4) Type: " ~/Desktop/foo.bar" (without quotes, and with the leading space if it didn't auto-insert one for you)
5) Drag foo.bar to your trash and empty it.
     
Cadaver
Addicted to MacNN
Join Date: Jan 2003
Location: ~/
Status: Offline
Reply With Quote
Jan 17, 2007, 12:29 AM
 
I had the same kind of magic file on a USB thumbdrive once. It was an icon-less file and would disappear when I tried to click on it.
Had to reformat the device to make it go away.
     
Eriamjh
Addicted to MacNN
Join Date: Oct 2001
Location: BFE
Status: Offline
Reply With Quote
Jan 21, 2007, 06:19 PM
 
Originally Posted by CheesePuff View Post
I'd first try deleting it using 'rm' in Terminal.
Exactly how does one do that if the filename is those odd characters, copy and paste?

I'm a bird. I am the 1% (of pets).
     
Catfish_Man
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Jan 22, 2007, 03:25 AM
 
Drag and drop the file onto Terminal, as Warhaven said.
     
Hal Itosis
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Jan 22, 2007, 08:24 PM
 
Originally Posted by Catfish_Man View Post
Drag and drop the file onto Terminal, as Warhaven said.
Copy and paste also works as well.
-HI-
     
voodoo
Posting Junkie
Join Date: Mar 2001
Location: Salamanca, España
Status: Offline
Reply With Quote
Jan 23, 2007, 08:19 AM
 
Mac OS 9 can delete this. I have seen this before. Ah the immense power of OS 9

V
I could take Sean Connery in a fight... I could definitely take him.
     
Hi I'm Ben
Mac Elite
Join Date: Dec 2001
Location: Chicago
Status: Offline
Reply With Quote
Jan 23, 2007, 10:04 AM
 
Originally Posted by Eriamjh View Post
Exactly how does one do that if the filename is those odd characters, copy and paste?
Those aren't really "odd characters" it's Korean. To get it they can type it if they know korean. Copy and paste works too.


I think people should also be more mindful of the solutions they're giving others. Having a hard time deleting a file should not be grounds for formatting a drive. If you're unsure if a good solution to the problem do not contribute a bad one.


I would try to use Omnidisksweeper or something of that nature to delete the file. Omnidisksweeper isn't free I believe but I know there are free alternatives.
     
badidea
Professional Poster
Join Date: Nov 2003
Location: Hamburg
Status: Offline
Reply With Quote
Jan 23, 2007, 10:53 AM
 
Originally Posted by Hi I'm Ben View Post
Copy and paste works too.
Since it disappears when you click it I don't think that copy and paste would work!
Dragging it to the terminal might do the trick but if it doesn't, someone really should learn some Korean or he won't get around a reformat!

(or one of the many file helpers might do the trick - "file buddy"?)
***
     
Hal Itosis
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Jan 23, 2007, 11:08 AM
 
Originally Posted by badidea View Post
Since it disappears when you click it I don't think that copy and paste would work!
Dragging it to the terminal might do the trick
Oh yeah... as if that makes any sense at all.

a) if it "disappears when you click it", then how can it POSSIBLY be dragged?
b) copy/paste does not require "clicking" (arrow keys could suffice to select).

Another workaround is using tab-completion in Terminal.
Just type rm -vfr <tab><tab> (keep tabbing till the name auto fills)

In case that doesn't work, add

bind '"\t": menu-complete'

to the ~/.bashrc (or ~/.bash_profile or ~/.profile or ~/.bash_login as the case may be)

Anyway... if this user hasn't run fsck yet (or Disk Utility from another boot volume),
then all this Terminal talk (and File Buddy and OS9 and whatever) could be for naught.
-HI-
     
badidea
Professional Poster
Join Date: Nov 2003
Location: Hamburg
Status: Offline
Reply With Quote
Jan 23, 2007, 11:14 AM
 
Originally Posted by Hal Itosis View Post
Oh yeah... as if that makes any sense at all.
Oh yeah!?
Originally Posted by Tiresias View Post
it disappears when you click on it
Originally Posted by Tiresias
When I grab it I can drag it to the trash
Seems I am the only one who can read!?
***
     
PER3
Dedicated MacNNer
Join Date: Oct 2002
Status: Offline
Reply With Quote
Jan 23, 2007, 02:54 PM
 
It doesn't seem to have an icon.

How about pasting an icon there in "Get Info", changing the name to something Latin, and playing with "Ownership and Permissions"?

And then trying to delete...
     
CheesePuff
Professional Poster
Join Date: Jan 2002
Location: Rochester, NY
Status: Offline
Reply With Quote
Jan 24, 2007, 01:17 AM
 
Originally Posted by PER3 View Post
It doesn't seem to have an icon.

How about pasting an icon there in "Get Info", changing the name to something Latin, and playing with "Ownership and Permissions"?

And then trying to delete...
It goes away when he clicks it apparently.
     
voodoo
Posting Junkie
Join Date: Mar 2001
Location: Salamanca, España
Status: Offline
Reply With Quote
Jan 24, 2007, 08:56 AM
 
Look, to all of you wearing the smartypants today:

Mac OS X is *INCAPABLE* of doing ANYTHING with that file. No app, certainly not the Terminal and no disk utility or permission changing can touch that file.

This is an OS X bug.

Mac OS 9 can remove this file. Possibly windows, I don't know since I don't use crap.

So, let's just end the stupid bickering, NOTHING CAN BE DONE ABOUT THIS FILE IN OR THROUGH MAC OS X.

Sheesh.

V
I could take Sean Connery in a fight... I could definitely take him.
     
PER3
Dedicated MacNNer
Join Date: Oct 2002
Status: Offline
Reply With Quote
Jan 24, 2007, 01:59 PM
 
Originally Posted by CheesePuff View Post
It goes away when he clicks it apparently.
I understand.

What would happen if Tiresias scrolled to the file in the finder ("list" or "column" view), and then did an Apple-I or selected the Info icon (if he had it in his menu bar)?

Would that be the same as a click?
     
TETENAL
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Jan 24, 2007, 02:27 PM
 
Tiresias hasn't posted in this thread since more than a week. The file is probably deleted already since a long time. There is no point in continuing this discussion.
     
steve626
Dedicated MacNNer
Join Date: Aug 2005
Status: Offline
Reply With Quote
Jan 24, 2007, 02:48 PM
 
Originally Posted by Tiresias View Post
They were from a totally legit Korean media website—One that requires you to register and pay money to download music and films ...
Here a lesson learned -- don't download from so-called "legit" Korean (!) websites. I'll bet the price was too good to be true for all that music and films. But given what they've done to your drive (you will need to reformat), I'd check your credit card statements fairly carefully from hereon going forward ...
     
walkerjs
Junior Member
Join Date: Feb 2005
Status: Offline
Reply With Quote
Jan 24, 2007, 03:11 PM
 
Being confronted with this I would probably go into terminal, use cd to position myself in the directory (folder) and use bash shell tab file completion to try see what the file name actually is. Or use ls to see what it might be.

Then rm it.
     
Catfish_Man
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Jan 24, 2007, 08:39 PM
 
Originally Posted by walkerjs View Post
Being confronted with this I would probably go into terminal, use cd to position myself in the directory (folder) and use bash shell tab file completion to try see what the file name actually is. Or use ls to see what it might be.

Then rm it.
There are some cases (I can't find the link for one, but it involved constructing an extremely deep directory tree) where the path-based *nix and cocoa tools can't handle a file, but the old file id based APIs can. That's possibly why voodoo was saying OS9 can handle it.
     
walkerjs
Junior Member
Join Date: Feb 2005
Status: Offline
Reply With Quote
Jan 24, 2007, 08:48 PM
 
Well, in that case I would probably create a new applications folder elsewhere, drag the good folders over to that folder, then trash/recreate the entire folder complete with malformed named file.

But then this is the Applications folder. That might be tricky. Would perhaps the use of a wildcard work? I'd at least pipe the results of ls into od and try to get exactly what the first couple of characters were and try a wildcard rm.

It's probably moot at this point. In the days of old one would use icheck to get the inode of the file in question and try to handle it from there. Of course if that were the case, a Mac user would be using System 7 to try to handle the malformed file.
     
jsawers
Fresh-Faced Recruit
Join Date: Feb 2007
Status: Offline
Reply With Quote
Feb 26, 2007, 11:45 AM
 
I'm trying to delete a file that was installed as part of Photoshop CS2. The filename is "Tang Viet.html" but is uses foreign characters for accents. It has resisted all attempts. I cannot rename it in the finder or terminal, I cannot "rm" it or "mv" it. When I drag the file into the terminal it's name comes out as unicode escaped characters "\u3540 \u3133 \u5799" etc. But it still complains that that file cannot be found.

It looks like the shell/finder isn't translating the character set/encoding properly, so it's can't actually find the file by name.

I don't have any OS9 machines around to try that solution on (can I even boot my AlBook G4 into 9?). Is there some way I can do this from Classic ? I know it doesn't give me a finder view, but maybe there is an old OS9 app that will give me filesystem access. Though I'm not sure if that will work, since the filesystem commands probably get translated via OSX.

At least it's a small file, so I could live with it, but I'd rather not. Any thoughts ?
     
Sub
Dedicated MacNNer
Join Date: Jan 2007
Location: New York
Status: Offline
Reply With Quote
Feb 26, 2007, 12:10 PM
 
Never mind.
     
TETENAL
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Feb 26, 2007, 12:50 PM
 
Try FileBuddy or the old FileBuddy 7 in Classic.
     
Hal Itosis
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Feb 26, 2007, 05:01 PM
 
Originally Posted by jsawers View Post
I'm trying to delete a file that was installed as part of Photoshop CS2. The filename is "Tang Viet.html" but is uses foreign characters for accents. It has resisted all attempts. I cannot rename it in the finder or terminal, I cannot "rm" it or "mv" it. When I drag the file into the terminal it's name comes out as unicode escaped characters "\u3540 \u3133 \u5799" etc. But it still complains that that file cannot be found.

It looks like the shell/finder isn't translating the character set/encoding properly, so it's can't actually find the file by name.

At least it's a small file, so I could live with it, but I'd rather not. Any thoughts ?
If you had put it in the trash and emptied, then it's possible the file has been unlinked
(and therefore cannot be "accessed"), but -- due to the funky chars -- the OS is having
trouble removing its **name** from the directory file. You should boot from the system
DVD, and run Disk Utility from there to repair the disk (not 'permissions'), or run fsck -fy
from SingleUser mode.
( Last edited by Hal Itosis; Feb 26, 2007 at 05:10 PM. )
-HI-
     
Ratspittle
Mac Enthusiast
Join Date: Apr 2002
Location: The Great State of Dementia
Status: Offline
Reply With Quote
Mar 7, 2007, 02:34 AM
 
Originally Posted by jsawers View Post
I'm trying to delete a file that was installed as part of Photoshop CS2. The filename is "Tang Viet.html" but is uses foreign characters for accents. It has resisted all attempts. I cannot rename it in the finder or terminal, I cannot "rm" it or "mv" it. When I drag the file into the terminal it's name comes out as unicode escaped characters "\u3540 \u3133 \u5799" etc. But it still complains that that file cannot be found.

It looks like the shell/finder isn't translating the character set/encoding properly, so it's can't actually find the file by name.

I don't have any OS9 machines around to try that solution on (can I even boot my AlBook G4 into 9?). Is there some way I can do this from Classic ? I know it doesn't give me a finder view, but maybe there is an old OS9 app that will give me filesystem access. Though I'm not sure if that will work, since the filesystem commands probably get translated via OSX.

At least it's a small file, so I could live with it, but I'd rather not. Any thoughts ?
That is the very same file I got with CS2. I tried EVERYTHING the above posters suggested. The ONLY thing that fixed it was disk warrior. I can't remember now what the details are, but disk warrior will fix it. Somewhere on these forums is an old thread about it. Sometime last year...It drove me nuts too, I sympathize
The large print giveth, and the small print taketh away
     
-Q-
Moderator
Join Date: Jan 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
Apr 29, 2007, 08:07 PM
 
So I got the CS3 upgrade and installed it this weekend. In trying to remove CS2 from my machine, I was hit by the same 'trash won't empty' issue because of the Tang Viet.html file. Fortunately, I found a solution! I don't know if this will work if you have a file you cannot delete, but its worth a try:

Boot/reboot your mac into Safe Boot Mode (hold down the Shift key when booting/rebooting your mac). This can take some time so as soon as you notice your machine taking longer to boot that normal, you can remove your finger from the shift key.
Log in as administrator.
Empty the trash.

Yep, that simple.

I haven't dug into the 'how's' or 'why's' of this method, but it did work in getting rid of that stupid file so I thought I'd share.
     
Aron Peterson
Senior User
Join Date: Mar 2007
Location: South Carolina
Status: Offline
Reply With Quote
Apr 30, 2007, 07:29 AM
 
Disk Warrior or Drive Genius will fix these errors. It's the best way to do it because usually it's a file system problem that will remain even if you manage to trash the file in safe mode.
Web dev, Poe, faux-naïf, keyboard warrior, often found imitating online contrarians . My stuff : DELL XPS, iPhone 6
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:12 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,