LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2013, 11:50 PM   #1
jebradl
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
Directories that defy attempts to change!


I have a calibre ebook reader library on a flash drive that I share between two computers. It is generally mounted on my desktop, and then linked via sshfs to my laptop. I rebuilt the calibre directory after an error, and found that when listing the directories within the library directory, I had files with the following info (via 'ls -o')


drwxrwxrwx 1 jebradl 4096 Oct 7 18:39 Alpha, A.
drwxrwxrwx 1 jebradl 4096 Oct 13 00:30 Bravo, B.
d-wxr---wx 1 50729570 12850292 Jan 3 1945 Charlie, C.
drwxrwxr-x 1 jebradl 4096 Nov 15 21:47 Delta, D.
drws--x--x 1 335594424 743248642 Sep 7 04:06 Echo, E.


I am using Ubuntu 12.04. I have tried 'sudo chmod 755 directory' (I am aware that it's a directory and wouldn't be executable) to change the read/write attributes to directories 'Charlie, C.' and 'Echo, E.', and I have tried 'sudo chown jebradl directory' to change the ownership, and I have even tried 'sudo rm -rf directory' to delete the directory, all without any success. The other directories within the library directory are read and writable. How do I change these?
 
Old 01-10-2013, 12:37 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
There are various possibilities:

1. partition has gone read-only
2. check SELinux (ls -lZ)
3. check acls (getfacl *)
4. check attributes (lsattr * : its very unlikely to be this one)
 
Old 01-10-2013, 07:18 AM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,452
Blog Entries: 11

Rep: Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370
l recently had a similar issue with my ~/.ssh directory contents after copying from my 3T USB backup drive.

I could copy the directory just fine and all the perms were set until I used an alias that used one of the ssh keys in that directory.

Another 4 rounds of Terminal >
cp /run/media/jj/Keepers/.ssh/* to my /home/jj/ directory.

Perms are good and all is well, until I used an alias. Then I'd have ????? all over the place in ~/.ssh/
Drove me crazy. I can't even work like this (SysAdmin).

So what I would up doing (and it has worked flawlessly since) is use Thunar to copy the directory back graphically.
It didn't make sense then, nor makes sense now (still).
I use rsync to copy my entire /home/jj/ directory to the Drive.

No amount of any keyboard/terminal commands would resolve the issue for good.

Thunar did the trick.

Good Luck.
 
Old 01-10-2013, 12:45 PM   #4
jebradl
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
I'm not sure what you are describing by 'graphically' copying a directory with Thunar. Since I use xfce4 as my desktop, Thunar is installed, but I generally use Nautilus when I want to use a file manager. I generally do most file management from the command line.
The comments about graphically copying are irrelivant at the present time, though, because attempts to open the Library directory yield the following message:

Error when getting information for file '/mnt/sdb2/FlashLibrary/rob': Input/output error.

I can go into the directory in a console, though. I have another 32Gb flash drive, so I'm going to copy the files that I can from the command line, and then I'll go from there.

added line- Actually, I thought that I had another 32Gb flash drive. It came off my keychain somewhere, and who knows where that was. I'm very diskspace constrained at the moment. I'll have to try a different approach (at least until the 64Gb flash drive that I just ordered arrives.)

Last edited by jebradl; 01-10-2013 at 07:38 PM. Reason: to make a correction
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Change Directories SANA4SPA Linux - Newbie 2 11-25-2011 10:48 PM
Change # of telnet login attempts Redhat Enterprise cloverit Linux - Security 5 05-29-2011 01:58 PM
LXer: Linux spending will defy recession, IDC claims LXer Syndicated Linux News 0 04-13-2009 07:50 PM
X crashes when program attempts to change resolution overhangingtrees Linux - Software 0 11-16-2006 09:24 PM
Auditing - Date Change Attempts? dant98 Linux - Security 1 10-31-2004 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration