Cannot get rid of unwanted locked folder/directory
My first post, and I'm definitely new to Linux.
My arrangement is this: I have a Toshiba Satellite L500 laptop (old as the hills, I know) running Mint 17.3, a Packard Bell dot s Netbook running Mint 18.2 both of which are connected to my NAS drive for centralised storage of all files. The three items are networked so that I can work on which is most convenient at the time (Toshiba at home and PB on the move). Initially, I backed up only my documents folder from the NAS to the Toshiba (laptop) using the Backup Tool loaded with Mint 17.3. It worked fine, but (there's always a but), I later decided that I needed something less basic so that I could synch updated files automatically. Rsync (using Grsync) gave me what I needed as this allows individual backups to be accessed (Backup Tool locked folders, as far as I could tell) if necessary. Anyway I backed up all files from the NAS to the laptop, but, ran out of space before it finished because of the previously executed backup. It took me an age to work out how to delete the files and folders from the old backup to give me the space to let the new backup complete. Eventually, I was able to clear the old backup folder, having checked that everything was okay with the new one first. But (remember them?), one folder stuck and I cannot get rid of it! Whatever I try (don't know that much anyway) it will not go. I consistently get "There was an error deleting .mintbackup. blah, blah, : Permission denied". Although the folder is doing no harm just sitting there in my Home folder, it would be nice to, a) find out why, and, b) get rid as it's annoying me. As I said before, I'm new to both Linux and this forum, so please be gentle with me. PS, I have a few hundred (thousand?) more questions to ask, yet! |
Hello, and a big WELCOME to LQ!!!
Please, never feel bad about asking anything on LQ!!! Even IF some answer needs 'thick skin' to read, like: lmgtfy rtfm (f=fine) faq rules guidance etc etc;) In this case, check the owner and permissions='mode' on that 'stuck' directory, for which I'll use the name 'it', below. I'll assume you can somehow get to a shell prompt, in a terminal. (My CLI 'Heaven':D) (IF not, feel free to ask!!! Always!!!) Code:
ls -ld it; df it; sudo rmdir it Or you could try this &post termbin link: (cmd1;cmd2;...) | nc termbin.com 9999 (huge 'extra credit' IF you figure out: parenthesis semicolon pipe shell syntax;)) IF you like .pdf onlne eBook reading, I can send you some links. Best wishes!!! Looking forward to hearing back from you!!! p.s. How do you 'mount'/access that NAS, while you "move"? |
if you can't remove it with root permisions boot from a live medium ( CD ) and you should be able to delete it easily, good luck an welcome to the forums
|
Quote:
Quote:
So, now the question is "who is, and how do I get permission? Quote:
Quote:
Quote:
Thanks for your help! |
Quote:
|
Quote:
please take the time to review these search results: https://duckduckgo.com/?q=linux+how+to+become+root if you still have questions afterwards i'll be happy to help. |
Quote:
|
How big is the file?? I seem to remember that there is a certain situation where an entry exists in the directory for a file that does not actually exist and therefore cannot be deleted. I think if that is the case you just have to live with it, though I would try creating a file with the same name and see what happens - it just might kick it into behaving.
|
Quote:
|
Quote:
Setting up was relatively painless and with the 'exception' in place, easy to access. However, I think I would prefer to be a little suspicious and avoid using this method because of that security thing bearing in mind it's all rather private. Actually, I think I might get rid of that exception as well, and stick with Dropbox. Thank you for that question !!! it made 'a moment of greater interest'. D |
Quote:
full commands issued, full output received. |
I forgot to mention: rmdir only works IF it is empty.
I was afraid to mention: rm -rf switches, because they can easily accidentally wipe-out a whole system!!! But -i will give you a chance to think first. man:D There's new https:// tricks that Idk, so I maybe lost as to what you are doing!!! Actually, it maybe just a web-app, that has nothing to do with Linux!!! Can you access 'it' from the cli? ls -al it Don't be scared: ls -la it | nc termbin.com 9999 ;) Even this crazy idea might uncover a clue, as to what's going on: cd it; df .* | nc ... (leave off the pipe netcat ..., to look at it first:idea:) :thumbsup:p.s. WebSearch: shell pipe brief simple basic tutorial Yes, specific details 'rule':jawa: "Something did something" freaks people out!!! :eek: |
Quote:
Quote:
Quote:
Code:
total 12 Quote:
|
Can you show the actual output of these cmds please; it could be important.
Code:
pwd |
I guess you can also post the output of the command below:
ls -ld directory It will tell you whether you have the permissions or not |
All times are GMT -5. The time now is 08:49 AM. |