Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Pages: 1 2
Yikes, It's happening again. A brand new folder with rar files is dening me access to unrar! Am I going to have to keep on rectifying this issue manually? Why does this keep on happening to my new downloads,? any help appreciated
Offline
When you say "new downloads", where are these downloads coming from?
If you are using the 323 to download files, then you have to watch their permissions when they are created.
For example if I login to the 323 and do:
touch test.txt
the file is created with a 644 permission, meaning that the owner (root) can read-write, but others can only read. If I access the same file from my WinXP box via the samba share, I can load the file into an editor, but I cannot save the file back. To fix this, I can do:
chmod 666 text.txt
and then I can change the file from my XP box.
Remember that this system wasn't packaged by D-Link to expect people to create files on the 323 in ways other than samba. Note that if I create a file or folder on the 323 from my XP box via the samba share, it gets permissions 777. Another data point is the D-Link BitTorrent client. If you look in the /mnt/HD_a2/BT folder while bt is running, you will see that ALL files in that folder have 777 perms, allowing the samba client to manipulate them.
So what you must do is emulate the D-Link BitTorrent client. If you are using transmission, for example, to get the rar files, you'll have to change your scripts or whatever to make the downloaded files and and folders created by transmission writable by all. If you made a folder with a Unix command on the 323, you must set it to 777 perms to allow the samba clients to create files in that folder. This is what I expect was happening with unrar. Unrar may have been trying the write the unarchived files back to the same folder as the rar file. It may have been able to read the rar file OK, but it was unable to create new ones. I am assuming/guessing that you were running unrar on a samba client (PC).
One easy way to avoid having to clean up permissions after yourself is the umask command. If I do:
umask 0
touch test2.txt
The file gets 666 perms, letting samba shares read/write it. You can set umask 0 in your root login profile and then anything you create will be writable via samba. Be aware of the risks.
If none of this explains it, you'll have to do a better job explaining the problem. How did the files in question get downloaded? Where are you running unrar? I can't tell what you are doing and where from your description - just guessing.
Offline
Sorry karlrado, my illness has been bad over the weekend so I apologize in the delay of this reply.
I'm going to to do more tests but to my best recollection my problematic downloads are coming from a private tracker torrent site.......I've PM you the site.
I just do as I've always done, right click "to ave content as" to get the .torrent file. Save it in 323 under the old existing folder I created back-in-the-day. I then use the default 323 built-in BT program, BT folders downloading & complete.
I'll try and do a test on a small zipped identical ISO file from two different tracker URL's & let you know.
Thanks for your speedy replies, they are much appreciated.
Offline
OK, so that helps a little. Your workflow is:
1) Download a torrent file from somewhere using your PC's browser.
2) Save it on the DNS in some random folder (not under the Volume_1/BT folder)
3) Use the default BT program to load this torrent file and start the download. I'm guessing that you are using the "Add torrent from file" option.
4) When the torrent is downloaded, you open the BT/complete folder from your PC via samba and find the files downloaded from the torrent.
5) Again, from the PC, you run unrar on one of the rar files that were part of the torrent.
Please confirm the above.
What *should* happen is that the DNS BT client should create a directory with 777 perms under BT/complete that contains the torrent files, which are all stored with 777 perms as well. And you are having trouble running unrar on one of these rar files.
Which unrar program are you using?
Please confirm that you are not logging into the 323 and doing something else in the middle of any of this.
One thing you might try is making the unrar program read the rar file from the 323 but write the unarchived contents to someplace on your PC. There should be an option to do this. I'm guessing that you will end up wanting these files on your PC anyway, or perhaps someplace else on the 323. If the latter is true, you'd have to copy them back, which is a bit of a pain, but will work.
I'm downloading the torrent you sent me and I'll see how it works for me. It will take awhile.
Offline
karlrado wrote:
OK, so that helps a little. Your workflow is:
1) Download a torrent file from somewhere using your PC's browser.
2) Save it on the DNS in some random folder (not under the Volume_1/BT folder)
3) Use the default BT program to load this torrent file and start the download. I'm guessing that you are using the "Add torrent from file" option.
4) When the torrent is downloaded, you open the BT/complete folder from your PC via samba and find the files downloaded from the torrent.
5) Again, from the PC, you run unrar on one of the rar files that were part of the torrent.
Please confirm the above.
Yes I can confirm that you are correct in the above.
karlrado wrote:
Which unrar program are you using?
Winrar or 7Zip
karlrado wrote:
Please confirm that you are not logging into the 323 and doing something else in the middle of any of this.
No not logging into the 323 and doing something else in the middle of any of this.
karlrado wrote:
One thing you might try is making the unrar program read the rar file from the 323 but write the unarchived contents to someplace on your PC. There should be an option to do this. I'm guessing that you will end up wanting these files on your PC anyway, or perhaps someplace else on the 323. If the latter is true, you'd have to copy them back, which is a bit of a pain, but will work.
I concur & I have already found copying back & forth to my Win7 Laptop works with winrar but its time consuming & doesn't explain why this behavior re-started after a year of unbroken usage after the last time it happened.
karlrado wrote:
I'm downloading the torrent you sent me and I'll see how it works for me. It will take awhile.
Sorry it was so large a download, I was hoping to find a smaller test ISO rar file but it was a coincidence when this one failed after resetting the permissions.
Your efforts are much appreciated, Thanks.
Last edited by optical10 (2010-03-23 03:11:12)
Offline
I sent you a PM with the results. Basically, I was able to unrar the torrent into an iso using Free RAR Extract Frog. The torrent files were left as they were downloaded on the 323 by the D-Link BT client. I ran this unrar program on my WinXP box against the torrent files on the 323 via a user-level R/W samba share and it created the iso in the same folder on the 323 with no problem.
I have verified that ALL of my files and folders in the BT directory and BT itself are 777 and owned by root:root.
A longshot would be to try a different unrar program, the one I used, but I don't think that would be the problem.
Are you now saying that the D-Link BT client is still setting the permissions on newly downloaded files to something other than 777 root:root ?
And what sort of samba share are you using? Note that I am not doing the unrar on the BT share produced by the DNS firmware. I made a new share that gives my WinXP userid R/W access to the entire Volume_1.
Finally, if all else fails, you should consider reinstalling the D-Link BT software.
I would telnet in and "killall bt" to stop any processes accessing the files. Then "mv /mnt/HD_a2/BT /mnt/HD_a2/BT.save" and
"mv /mnt/HD_a2/Nas_Prog/BT /mnt/HD_a2/Nas_Prog/BT.save". Reboot. Then reactivate the D-Link BT client. I think that you have to run that "easy search" utility.
Offline
Thanks karlrado, for your continued effort with this issue. I've replied to your PM with the progress report.
I'm very busy for the next week so I'll not have time to tinker much meaning I've had put this on back burner for now.
Once again Cheerz
Offline
hi guys, still getting this issue so I defaulted to "default settings for users groups and shares", restarted the NAS, logged on with putty, use the permissions command, " "chmod(space) -R(space) 777(space) /mnt/HD_a2/BT", get round the issue for the umpteenth time.
But I noticed that whilst using this command to enable RW permissions I get an input/output error on one particular file but I cannot see even with hidden files disabled?
Could this be the source of my issues? And how do I permanently delete this file?
Any help appreciated.
Offline
Have you tried doing this:
I would telnet in and "killall bt" to stop any processes accessing the files. Then "mv /mnt/HD_a2/BT /mnt/HD_a2/BT.save" and
"mv /mnt/HD_a2/Nas_Prog/BT /mnt/HD_a2/Nas_Prog/BT.save". Reboot. Then reactivate the D-Link BT client. I think that you have to run that "easy search" utility.
This reinstalls your BT software.
A previous post of yours indicates that some of the files downloaded by BT are left with the wrong permissions. They are supposed to be 777, but are 755 in your case. This is incorrect and needs to be fixed.
mv /mnt/HD_a2/BT /mnt/HD_a2/BT.save
"renames" the BT folder. This keeps any files that you do have downloaded. If you don't care about the contents you can do
rm -fr /mnt/HD_a2/BT
to delete all the downloaded files.
In either case, the file that is giving you the I/O error may get moved out of your way.
The command
mv /mnt/HD_a2/Nas_Prog/BT /mnt/HD_a2/Nas_Prog/BT.save
"uninstalls" your BT software. You would then reboot and then use the easy search disk to reinstall it.
After rebooting and reinstalling BT, I would then download something with BT and then inspect the files under /mnt/HD_a2/BT to see if their permissions are 777 or not.
Let us know what you find once you've done all this.
Offline
Cheers karlrado, I'll be using your suggestions when I've backed up my data , split the raid etc over the weekend if all goes to plan.
I'll report back then.
Offline
@ karlrado, success after breaking the raid, reformatting and testing some downloads. It took me weeks to back up my data on the previous raid configuration to other network machines and blank DVD media so that's why haven't reported back sooner.
regarding the read/write permissions issue with certain downloads I believe it was a virus/worm that was altering permissions because I was confronted with a pre-formatted empty hard drives that showed virus warnings with Microsoft Security essentials alerting me continually when the virus had nowhere to hide in the root folder of the empty hard drives.
Anyway once again thanks for all your help, I hope I can be as helpful in the future if you need assistance and that this post helps other people snag this issue. :-)
Last edited by optical10 (2010-07-18 15:08:05)
Offline
Pages: 1 2