[X-Unix] Unlinking a file... illegal characters?

Stroller MacMonster at myrealbox.com
Thu Feb 24 16:14:17 PST 2005


I have a file that I don't seem to be able to remove from the trash.  
Emptying the trash simply doesn't work - nothing happens, you still see  
paper in the basket - and I seem to be unable to remove it from the  
command line, as shown:

   $ rm -rf /Volumes/CLEARLIGHT/.Trashes/
   rm:  
/Volumes/CLEARLIGHT/.Trashes//501/legoland/ 
èÿÿÿvk␀␀..␀␀: File name too long
   rm: /Volumes/CLEARLIGHT/.Trashes//501/legoland: Directory not empty
   rm: /Volumes/CLEARLIGHT/.Trashes//501: Directory not empty
   rm: /Volumes/CLEARLIGHT/.Trashes/: Directory not empty
   $ rm -rf /Volumes/CLEARLIGHT/.Trashes/*
   rm:  
/Volumes/CLEARLIGHT/.Trashes/501/legoland/èÿÿÿvk␀␀..␀␀:  
File name too long
   rm: /Volumes/CLEARLIGHT/.Trashes/501/legoland: Directory not empty
   rm: /Volumes/CLEARLIGHT/.Trashes/501: Directory not empty
   $ rm -rf  
/Volumes/CLEARLIGHT/.Trashes/501/legoland/ 
e\314\200y\314\210y\314\210y\314\210vk\342\220\200\342\220\200..\342\220 
\200\342\220\200
   rm:  
/Volumes/CLEARLIGHT/.Trashes/501/legoland/èÿÿÿvk␀␀..␀␀:  
File name too long
   $ rm -rf /Volumes/CLEARLIGHT/.Trashes/501/legoland
   rm:  
/Volumes/CLEARLIGHT/.Trashes/501/legoland/èÿÿÿvk␀␀..␀␀:  
File name too long
   rm: /Volumes/CLEARLIGHT/.Trashes/501/legoland: Directory not empty
   $ mv  
/Volumes/CLEARLIGHT/.Trashes/501/legoland/ 
e\314\200y\314\210y\314\210y\314\210vk\342\220\200\342\220\200..\342\220 
\200\342\220\200 ./foo
   mv:  
/Volumes/CLEARLIGHT/.Trashes/501/legoland/èÿÿÿvk␀␀..␀␀:  
File name too long
   $ MvMac  
/Volumes/CLEARLIGHT/.Trashes/501/legoland/ 
e\314\200y\314\210y\314\210y\314\210vk\342\220\200\342\220\200..\342\220 
\200\342\220\200 ./foo
   failed to resolve one of the sources (-120)
   $ ls /Volumes/CLEARLIGHT/.Trashes/501/legoland/
   e??y??y??y??vk??????..??????
   $ ls /Volumes/CLEARLIGHT/.Trashes/501/legoland/ | xargs rm -f
   $ ls /Volumes/CLEARLIGHT/.Trashes/501/legoland/
   e??y??y??y??vk??????..??????
   $ find /Volumes/CLEARLIGHT/.Trashes/501/legoland/ -type f -exec rm -f  
\{} \;
   find:  
/Volumes/CLEARLIGHT/.Trashes/501/legoland// 
èÿÿÿvk␀␀..␀␀: File name too long

The file originated on a customer's Windows box, which I backed-up by  
booting to MandrakeMove & `cp -Rf /mnt/windows/* /path/to/Clearlight`.  
I guess the file has become corrupt at some point - I've tried removing  
it under Lunix, Windows & Mac OS X, but all so far to no avail. If I  
delete it in Windows it ends up in a Recycler directory which I then am  
unable to `rm -rf`. Occasionally, if I boot to Windows with this drive  
plugged in the firewire bus, Windows will complain that the drive needs  
repairing & will checkdisk it, but the file still remains.

Any suggestions?

Stroller.


More information about the X-Unix mailing list