Folder location interrupted

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Folder location interrupted
# 1  
Old 01-28-2014
Error Folder location interrupted

Have had hidden/interrupted folder.
It is on a NTFS-partition I use for OS and Bootcamp.
I think that the problem is a HFS+ problem.
I happened with all the folder which had a slash "/" in their folder name.
So for example I had the folder "test/rand".
Recently it disappeared from finder. In windows I can see the folder as "test:rand",
but it doesn't allow me to open/rename it. It gives the error that the folder location can not be located.


I can see it only within terminal using
Code:
ls

and has the name "test:rand" But i can't access the folder via mv or cp. It gives me a 'no such file or directory'

If i write the folders name half way and let it extend using 'tab', it gives me "test\:rand". using then the command mv shows following:

Code:
mv /Users/george/test\:rand /Users/george
mv: rename /Users/george/test:rand: No such file or directory

So, what It does, It finds the folder and extends it to "test\:rand" but then it says that it doesn't exist but without backslash: "test:rand"

if i try mv using "test:rand"
it gives me the same error of not finding such file or directory

how can i access to this folder? it exists, but not, seems
# 2  
Old 01-28-2014
Quote:
Originally Posted by sceltecs
I think that the problem is a HFS+ problem.
I happened with all the folder which had a slash "/" in their folder name.
Neither DOS, Windows, UNIX, or OSX allow you to have / inside file or folder names, how was this strange folder created?

Last edited by Corona688; 01-28-2014 at 01:04 PM..
# 3  
Old 01-28-2014
Well OS X allows you to do so.
I just created two folders with a "/" in the name:
1) on the Mac Os Extended Format partition
2) on the NTFS shared partition
Both work fine on OSX.
(The same way I created the strange folder which is missing now.)
Booting from windwos via bootacmp:
1) Is invisible
2) Changed the "/" with a weird symbol, similar to this: (˙ DOT ABOVE), but the folder works.

Similar to my missing folder on OSX. I can see it on windows with a ":" instead of the "/" but it is not useable, because the folder information is missing. So I can see it in the terminal, but can't access to it. I guess OSX 10.9 has something to do with this...
# 4  
Old 01-28-2014
Quote:
Originally Posted by sceltecs
Well OS X allows you to do so.
I just created two folders with a "/" in the name:
1) on the Mac Os Extended Format partition
2) on the NTFS shared partition
Both work fine on OSX.
That is very, very, very weird... Folders with / in them are prohibited by UNIX and OSX is supposed to be a UNIX -- I can only guess they did this for compatibility with some of Apple's really ancient filesystems where that was valid.

But it is not valid to put / inside NTFS. You really shouldn't do that.

Maybe a disk scan it renamed it to some untypable characters which might be accessible like this:

Code:
find . -type d -path '*/test*rand'

If that prints the folder name and only the folder name, try this:

Code:
find . -type d -path '*/test*rand' -exec mv '{}' 'validname' ';'

# 5  
Old 01-28-2014
i know now i should not do that Smilie
but OSX allowed it to me..so i had no doubts that moment...
the problem is, that i have about 10 folders like this now...

if i use find with . it finds a lot of directories...also from the operating system folders...
so i tried to search in area I know the folder lies:
Code:
find /Volumes/moby/Files/Other -type d -path ‘*/test*rand’
find: /Volumes/moby/Files/Other/test:rand: No such file or directory

it finds nothing, but it knows the folder test:rand
Code:
find /Volumes/moby/Files/Other -type d -path ‘*/test*rand’ -exec mv '{}' 'test1’ ';'

this gives me a
Code:
>
>
>

and terminal stops kind of
# 6  
Old 01-28-2014
Editing your code in Microsoft Word has changed all your ordinary ' quotes into nasty smart quotes:
Code:
find /Volumes/moby/Files/Other -type d -path */test*rand

But there may be a better way anyway.

Code:
$ ls -i
1871990 list  1871991 output

$ find . -inum 1871990 -exec mv '{}' 'newname' ';'

$ ls
newname output

$

Those numbers are inodes. find can identify a file or folder based on that and feed its name into mv hopefully including any untypable characters ended up in it.

And remember, use single quotes ' , not smart-quotes from MS Word.
# 7  
Old 01-28-2014
how do i find out the inode for my folders?

i think i have got a problem now,
after trying to fix the folders, i restarted in windows (to see if someting happend there) and it did some harddisk check at startup and deleted the entries of the folders with untypable characters(i think)...
in windows then they disappeared even as not locatable folders.
same at OSX, I don't find them anymore via terminal....
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Copying files from various folders to similar folder structure in another location

Hi, I need to write a script the has to copy the files from folders and subfolders to the same folder structure located in another location. Ex: mainfolder1 file1,file2,file3 subfolder1(file1,etc) subfolder2(file1,etc) to another folder location of same folder structure. rsync is not... (7 Replies)
Discussion started by: Raji Perumal
7 Replies

2. UNIX for Dummies Questions & Answers

Is original file modified when pigz is interrupted?

I had to stop a pigz (parallel gzip) compression before it completed. Is the original uncompressed file changed/corrupted? I was under the impression that the original file is not changed during compression, though it is deleted if the compression is successful. (1 Reply)
Discussion started by: colin123
1 Replies

3. UNIX Desktop Questions & Answers

arecord not interrupted after specified duration

I have used the arecord command like this arecord -d 1 test.wav It is keep on waiting. I need to manually interrupt it by ctrl-c. Why it is not interrupting after one second? The arecord version which I am using is : arecord: version 1.0.23 by Jaroslav Kysela (3 Replies)
Discussion started by: thillai_selvan
3 Replies

4. Shell Programming and Scripting

Copy files in thumbnail folder to a secondary location for Amazon S3

Hello all! I am trying to create a script that will copy files from one location, to another but only folders that are filled with thumbnails to an exact directory replica in the second location. For example: /images/2012/01/19/Event/Photographer/thumbnails to ... (4 Replies)
Discussion started by: Buzzman25
4 Replies

5. AIX

User script folder standard location ?

I am starting to accumulate a few scripts that I working on to replace operational scripts and to have a few for my personal usage. I am not an admin, just an operator. They are currently located inside the /tmp folder. I know they should not be there but since we have no system admin (someone... (4 Replies)
Discussion started by: Browser_ice
4 Replies

6. UNIX for Dummies Questions & Answers

auto change filemanager folder colors dependent on location in directory hierarchy

Hello, Is it possible to make a file manager use different "colored folders" when browsing specific directories? For example, if I open a gnome file manager and browse my windows share at, smb://192.168.1.101/z/ , can I make those folders appear green? And when I open another instance of... (0 Replies)
Discussion started by: bz43
0 Replies

7. Shell Programming and Scripting

automated sftp procedure interrupted

Dear experts, I have a local computer and remote computer (only sftp accessed). I want to delete files x and y in both local and remote computer using the following automated script: sftp $remote > /dev/null < mdel.file the file mdel.file has been pre-created, and its content is cd... (2 Replies)
Discussion started by: boyin.huang
2 Replies
Login or Register to Ask a Question