January 14, 201115 yr i telnetted into my unraid server and "mv" from files to a different directory (share) my share is called movies and I went "mv foobar ../../movies the files are gone from the previous directory, but dont show up in the movies share.
January 14, 201115 yr look in the movies directory two directories up from where you were when you moved the files. If you were in /mnt/user/foo/bar when you executed the mv command the files will be in /mnt/user/movies In a POSIX environment ../ means one directory higher in the directory tree so ../../ means 2 directories higher. Make sure you take care of this pronto and do NOT reboot. If the files get copied up into the RAMFS and you shut down they will be lost
January 14, 201115 yr look in the movies directory two directories up from where you were when you moved the files. If you were in /mnt/user/foo/bar when you executed the mv command the files will be in /mnt/user/movies In a POSIX environment ../ means one directory higher in the directory tree so ../../ means 2 directories higher. Make sure you take care of this pronto and do NOT reboot. If the files get copied up into the RAMFS and you shut down they will be lost If the folder you thought you copied to was actually named "Movies" then your file will be named "movies" (Capitalization matters) If you changed directory to /mnt/user/Movies and your file being moved was /mnt/user/Movies/something/your_movie.ISO and you copied it to ../../movies it is now in a file named movies on the root of one of the disks. You re-named it "movies" since a directory with that name did not exist. If you copied the file to the top level of a disk, the it would not appear in any share. In other words, a file named /mnt/disk1/movies will not show in any share. It will show if you look in /mnt/disk1 If you were in /mnt/user/Movies and typed the command you described the file is named "movies" but in /mnt/user (in the RAM file system) as mentioned in the previous post, do not reboot or it will be gone. When copying or moving files to a directory, ALWAYS use a final "slash" on the target directory. Then if you get the path wrong, the file will not move/copy, an error message will print, and you won't be wondering what happened. The better command would have been mv foobar ../../movies/ Then, if "movies" did not exist, you would have gotten an error message. Joe L.
January 15, 201115 yr Author this is really odd. I am on a mac and when I connect to my unRaid server via NFS, I do not see my files. However, when I connect over smb, I see the files? Could this be a bug?
January 15, 201115 yr this is really odd. I am on a mac and when I connect to my unRaid server via NFS, I do not see my files. However, when I connect over smb, I see the files? Could this be a bug? Please refer to this sticky message at the top of the General Support forum ... Include your VERSION and SYSTEM LOG for support issues
January 15, 201115 yr Author i figured it out. it was a permissions deal. i changed them all to 777 and now i can view the files in either smb or nfs protocol. but now my question is what do you guys set the permission as?
Archived
This topic is now archived and is closed to further replies.