New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Running Windows (or anything else) on your Mac Discussion of Classic or running Windows, Linux and other OSes on the Mac.

I need Unix help


Post Reply New Thread Subscribe

 
Thread Tools
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
Quote:
Originally Posted by Thundermoon1994 View Post
Which directory, /Volumes/"WINDOWS HD"/.Trashes/502/?

BTW, I really appreciate you guys trying to help me.
That would be the folder/directory.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
damien-hand-cannanes-macbook-pro:502 Damien$ stat *
stat: \004␀␀␀ö\001␀␀.\024␀␀: stat: File name too long

Is there some kind of super deleter program I can get?

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Well, I'm out of ideas

Maybe

sudo rm -rf /Volumes/"WINDOWS HD"/.Trashes/502/

?

That, working by design, will delete the /Volumes/"WINDOWS HD"/.Trashes/502/ recursively.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
clint1986

 
clint1986's Avatar
 
Member Since: Mar 06, 2008
Location: Devon, United Kingdom
Posts: 129
clint1986 is on a distinguished road
Mac Specs: 17" eMac 1.42 GHz G4, Mac OS X 10.4 "Tiger"

clint1986 is offline
I'm curious to know just what's in this seemingly indestructible file. :p
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
If I remember correctly in the other thread it showed a finder window showing it as a 0 byte file

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
scott-c

 
Member Since: Jan 24, 2008
Posts: 12
scott-c is on a distinguished road

scott-c is offline
I wonder, Since we have seen the file with finder - can he maybe rename the file there and then delete it? Just brainstorming.
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
When I try to rename the file with Finder, it says

"The operation could not be completed.

An unexpected error occurred (error code -43)."

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
When I try to rename in Terminal, this is what I get:

damien-hand-cannanes-macbook-pro:502 Damien$ mv \004␀␀␀ö\001␀␀.\024␀␀ ./file
mv: rename 004␀␀␀ö001␀␀.024␀␀ to ./file: File name too long

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
Why do I get two different file names that display in Terminal for this thing, anyway?

Well, when I copy and paste them into Word and blow it up, this is what I get. Ignore the "./file" at the end of the one. I copied that from the line where I was trying to rename the file.
Attached Images
File Type: jpg File.jpg (252.8 KB, 5 views)

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
I fixed it! I decided to try attacking it from the Windows side again. When I started up Windows, it asked to perform a disk check. It discovered the folder 502, said it was unrecoverable, and asked if I wanted Windows to convert the folder to a file. It ignored the rogue file inside it a converted the whole thing into a little file. I dragged the file into the recycle bin and told it to empty. Alas, problem solved.

A very big thanks to everyone who tried to help me. You guys rock!

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
I had another option, but it would have taken a lot more effort your part. Glad you found a solution.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
Out of curiosity, what would the other option have been?

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
Move into the directory in question. Do the following command:

ls -BC1 > del

A file called del is created with all of the file in the directory listed in side. Then you edit the file del and add a rm in front of each list. Also place a double quote around each file name. Once that is done, do a

sh del

That should execute the little shell script you created.

In the cases that I had the problem you had on other flavors of Unix, that help me resolve the problem.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
yea, I thought about passing it through xargs too... but didn't think that would work since it'd still have to execute rm against a long file name

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks

Post Reply New Thread Subscribe


« Getting Rid of Mac OS for Windows XP | Doesn't OS 9 Support Long Filenames? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Unix VS. Linux dziner Switcher Hangout 27 12-04-2006 02:17 PM
os x unix base security issues? stevescivic OS X - Operating System 4 10-13-2006 07:46 PM
Unix For Mac Os X Help Matt OS X - Operating System 5 08-24-2004 02:32 AM
Unix psychotoe OS X - Development and Darwin 6 06-16-2004 02:46 PM
Apple in Court over UNIX Name schweb Apple Rumors and Reports 8 06-13-2003 10:54 PM

All times are GMT -4. The time now is 04:04 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?