Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't delete some fake files

I've got a folder full of about 80 files with this filename


.OUunh!␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀.AcVG6n

where the difference among them is the extension.


They all have zero bytes so it's just an empty filename. My backup software (Carbon Copy Cloner and SuperDuper!) both have trouble dealing with these files and often won't complete their scheduled backups.


I've tried various ways of deleting them, force-emptying the Trash, even the CLI "rm" doesn't work. I can't change their names, I can't remove the "." denoting invisibility, in short, aside from moving them from here to there, they can't be renamed or deleted.


I would really appreciate any advice on this. Terminal commands are not new to me. See attached screen grab for a detailed look at some of these puppies.


Thanks!


-Tod


User uploaded file

Mac mini, OS X El Capitan (10.11), 10GB SDRAM 740 GB fusion drive

Posted on Aug 20, 2016 8:13 PM

Reply
33 replies

Aug 23, 2016 8:38 AM in response to TodFromIndiana

I copied the file name you have in your initial post (without the leading period) so I could play with it. I created a folder on the desktop, put a small TextEdit, plain text file in the folder and renamed it with that oddball name.


That was it. Once there, it's stuck like glue. You can't rename it via the desktop. You can't rename or get rid of it with any commands in Terminal. I'm not sure if you can even move the folder and/or the file around to other areas of the drive. I didn't try that.


The file name is so stuck that way, I gave up and used the registered version of SuperDuper! to restore the backup of the test volume I was on. When it got to that file/folder to remove it (to match the source it was restoring from), it did this:


User uploaded file


SD! croaked and halted. The only way to get rid of it was to erase the volume and then restore the entire backup.

Aug 23, 2016 10:23 AM in response to VikingOSX

It's at the point where it's more than a mild annoyance. During all the testing I've done (thanks to all your suggestions!) I've discovered that I can't boot into anything other than my original startup volume. This means that I can't even restore from a backup. Oh, I was able to do a restore from Time Machine but that takes nearly 24 hours.


I can't even install a new blank version of El Capitan because I can't boot into the installer, even using the Recover method.


I'm hauling it off to a fixit shop shortly.

Aug 23, 2016 11:04 AM in response to TodFromIndiana

That's a different issue. Strangely named files cannot in any way prevent you from booting to another volume.


Restart and immediately hold down the Command+Option+R+P keys. Keep holding them through two or three startup chimes and release the keys as it's going around for another startup. Switch over to just the Option key. You should get the Startup Manager so you can select another volume to boot to.

Aug 23, 2016 1:27 PM in response to TodFromIndiana

i'm unsure what these files are myself i didn't follow all this 3rd party application havoc - i didn't readit


open terminal give unlink(1) a try (useful for deleting files


$ rm file # failed, filename strange

# ok didn't work

$ man unlink # try it

$ unlink file~~~

# might work


BUT FIRST look a the permissions on the files and directory. make sure you have permission to change these files first. you maybe need to be "admin" or even "root" to change permissions so that you can then remove them. use Finder if you did change permissions it should now work


find(1) has a -print0 feature for dealibg with strange names, but you would rather: invoke a pro to help you


allow a pro access to login to your (soon to be pancaked mac) to delete the files for you, or as other's suggested restore manufacturer "El Capitan" verbatim and copy over user files from backup (ughgh). you'd have to re-install all apps (but if your re-installing, that can be better than attempting to restore 3rd party apps via backup).

Aug 23, 2016 1:31 PM in response to quiet_imac_fan

if being "root" is not enough permission to remove the files then somehow a 3rd party access the upper tier of permission reserved for apple corporation to protect you: and you should contact apple that an application they "signed" has breached "contract" with them and done this


(that assumes you, with pro's advice, have actually determined file permission is the issue)


and yes - you may see funny file names (??????) in Unix given permissions that allow you to see in a directory but see files in the directory your not allowed to see/read. really depends there no confirmation that being true in apple unix or Finder.

Aug 23, 2016 1:57 PM in response to quiet_imac_fan

In my test, I created the folder, and copied in a very simple text file. Both of which I was the creator and owner of, so I had all the permissions in the world to copy, delete or anything else to these items. As soon as renamed the file, I couldn't do a thing with it. So it has something to do with the name, not permissions. The OS is not handling something in the name correctly.


Edit: Just did a little more digging. There are certain characters that shouldn't be used in a file or folder name in Unix. Many of which the Mac OS has no trouble with you using anyway. But the big one here (according to a couple of sites on the subject) is the NUL character. As far as Unix is concerned, NUL represents the end of the file name. Once you put one in there, it becomes virtually impossible to rename or delete the file since Unix can't match the name to a file table entry. It sees:


.OUunh!␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀.AcVG6n


as


.OUunh!


So it balks at any attempt to anything with the file since there is no item by that name in the file table. But as VikingOSX noted, if you boot into an old enough version of OS X, you can remove or rename them without issue. So it seems to be more of an introduced bug than anything else.

Aug 29, 2016 5:29 PM in response to TodFromIndiana

Update Monday, Aug 29, 20:19 EDT


Okay friends, the really short answer to fixing this problem is to create a 10.10 Yosemite installer on a USB stick or on an external drive partition (which I did). Everything is dependent on booting into Yosemite for reasons only Apple can explain.* I had basically renamed the problematic folder simply to "polly" and moved it to my root level. Then after booting into the Yosemite installer, I opened the Terminal and did a cd to my root directory, then "rm -Rf" the folder "polly". It actually deleted it and its contents. Restarting and booting back into my main boot volume, then looking for "polly" found that it had indeed been wiped.


More details in the "tl;dr" reply below.


Thanks to everyone who chipped in with ideas.


*I really wish Apple would offer a "superuser" level that would allow those of us who know what we're doing to access stuff that Apple deems to technical for us mere users. Perhaps signing an agreement or needing to read through a short concise note or something. I am really tired of Apple constantly removing tools from our use.

Aug 29, 2016 5:43 PM in response to TodFromIndiana

Here's the detailed saga.


It turned out that part of the problem lay in the fact that my backup drive was going haywire, which meant I couldn't boot into it even though I could select it from both the "Startup Drive" System Prefs option and the opt restart option. It would never boot and thus the original volume would wind up booting.


Once that was solved, I was able to boot into my new backup volume, but the old "polly" folder still remained on both the normal startup disk and the backup. This meant trying to create a 10.10 Yosemite volume. The MAS wouldn't let me redownload a copy so I had to search the Internet high and low for some site that had a downloadable copy. Turns out that a torrent site had just the thing.


Downloaded and used the Terminal to create a bootable Yosemite installer (sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction where the target volume is "untitled" and the installer image is in your /Applications folder).


Rebooted by holding down the option key and selected the installer. Once in the initial installer screen, went to the menubar and selected Terminal. Navigated to my root directory on my original startup disk and removed the "polly" file with the rm -Rf command.


Just for kicks, I went ahead and did a 10.10 install on a small empty partition on my new backup disk. That eventually booted up just fine so now I have that as a backup resource.


Again, I want to thank everyone for their ideas and suggestions We're extremely fortunate to have such an involved community here at Apple.


-Tod

Aug 29, 2016 7:50 PM in response to Kappy

Hi Kappy,


Thanks. I knew about the "root user" part but it doesn't allow you to do things that Yosemite allowed. "sudo" is a must. I have never tried to issue CLI commands in the Single User mode. Maybe I'll try that sometime soon.


What I was referring to was an even deeper level of access, assuming that it exists. It seems like each new OS since Mavericks has chipped away at what experienced and careful users once were able to accomplish with Terminal.


Next you wan't even be able to type in cal 9 1752 because the result is so outlandish at first glance, and Apple doesn't want folks to learn their history.


Cheers and thanks!

Can't delete some fake files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.