mgoh99 Posted November 21, 2011 Posted November 21, 2011 Hi I'm having a problem deleting an existing sparsebundle from my unraid server. My macbook pro could not longer successfully backup to it so I wanted to clear it out and begin fresh. The problem is that I cannot delete the sparsebundle via finder or telnet. This is what comes up after issuing the 'ls' command Markâs\ MacBook\ Pro.sparsebundle/ however, if i reference the sparsebundle like that, it doesn't work (I get no file / folder with that name). I need reference it as follows: Mark's\ MacBook\ Pro.sparsebundle/ The problem is once I do that, telnet hangs. I've tried a number of things including - removing the folder with "rm -r -f ..." - deleting the parent directory with the same command - repairing permissions I'm stuck here and was hoping someone could point me the right direction
Joe L. Posted November 21, 2011 Posted November 21, 2011 the issue is the name with the foreign character. A single quote mark (the apostrophe) is interpreted by the shell. It is what is making you think the server locks up, since it is waiting for you to type the closing quite mark. You can remove the file by using a combination of the "rm" command and a wild-card character that represents a single character. cd "whateverDirectoryTheSparseBundleDirectory resides in" rm -r "Mark?s MacBook Pro.sparsebundle/" Note I used a "?" in place of the one character you are having problems with and deleted the backslashes preceeding the spaces since the entire name is in quote marks. or, you can simply type mc and use midnight commander to delete the sparesbundle directory. Joe L.
mgoh99 Posted November 21, 2011 Author Posted November 21, 2011 Joe that solved the problem! As always, you are amazing and thanks for the quick response. Please never leave this community!
mgoh99 Posted April 6, 2012 Author Posted April 6, 2012 So having this same issue again but this time Joe's solution isn't working. This is the readout from ls Mark’s\ MacBook\ Pro.sparsebundle/ Network\ Trash\ Folder/ Temporary\ Items/ but when I enter Joe's command I get rm: cannot remove `Mark?s MacBook Pro.sparsebundle/' when I enter rm -r Mark's\ MacBook\ Pro.sparsebundle/ it just hangs again. Any chance you have another tip Joe?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.