[SOLVED] how change attributes or remove files with the e attribute set
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how change attributes or remove files with the e attribute set
I have a bunch of files on a usb stick that have just the e attribute set. So I can't chattr them, rm -f fails and chmod fails, all whether as user or root. How can I get rid of the e attribute? Failing that, how can I get rid of the files?
I copied them to my usb stick to transfer them to my laptop, but on the usb stick the same commands deliver
Code:
g cd "/media/NEW VOLUME/LinuxUse"
g ls
ls: cannot access Tutorials: Input/output error
Advanced Bash-Scripting Guide.html AwkTits Notes~ jsGuide
AwkCheatSheet AwkTutorial SedOneLinersExplained jsRef
AwkCom BashReference SedReference oAwkTutorial~
AwkCommands BashTutorial ShortNotes sedref.html
AwkCom~ BashTutorial~ ShortNotes~ tuts
AwkOneLinersExplained LinuxCommands.txt Tutorials
AwkReference LinuxCommands.txt~ bashref.html
AwkReference~ Notes gawkref.html
g lsattr
lsattr: Inappropriate ioctl for device While reading flags on ./AwkCom
lsattr: Inappropriate ioctl for device While reading flags on ./ShortNotes~
lsattr: Inappropriate ioctl for device While reading flags on ./oAwkTutorial~
lsattr: Inappropriate ioctl for device While reading flags on ./SedOneLinersExplained
lsattr: Inappropriate ioctl for device While reading flags on ./AwkOneLinersExplained
lsattr: Inappropriate ioctl for device While reading flags on ./gawkref.html
lsattr: Inappropriate ioctl for device While reading flags on ./ShortNotes
lsattr: Inappropriate ioctl for device While reading flags on ./jsRef
lsattr: Inappropriate ioctl for device While reading flags on ./AwkTits
lsattr: Inappropriate ioctl for device While reading flags on ./jsGuide
lsattr: Inappropriate ioctl for device While reading flags on ./LinuxCommands.txt~
lsattr: Inappropriate ioctl for device While reading flags on ./SedReference
lsattr: Inappropriate ioctl for device While reading flags on ./BashTutorial
lsattr: Inappropriate ioctl for device While reading flags on ./Advanced Bash-Scripting Guide.html
lsattr: Inappropriate ioctl for device While reading flags on ./LinuxCommands.txt
lsattr: Inappropriate ioctl for device While reading flags on ./sedref.html
lsattr: Inappropriate ioctl for device While reading flags on ./AwkCom~
lsattr: Inappropriate ioctl for device While reading flags on ./AwkCheatSheet
lsattr: Inappropriate ioctl for device While reading flags on ./BashReference
lsattr: Inappropriate ioctl for device While reading flags on ./tuts
lsattr: Inappropriate ioctl for device While reading flags on ./AwkReference
lsattr: Inappropriate ioctl for device While reading flags on ./Notes
lsattr: Inappropriate ioctl for device While reading flags on ./AwkCommands
lsattr: Inappropriate ioctl for device While reading flags on ./BashTutorial~
lsattr: Inappropriate ioctl for device While reading flags on ./Notes~
lsattr: Inappropriate ioctl for device While reading flags on ./AwkTutorial
lsattr: Inappropriate ioctl for device While reading flags on ./AwkReference~
lsattr: Inappropriate ioctl for device While reading flags on ./bashref.html
./Tutorials: Input/output error
g
I assume the "e" attribute on the originals caused the foul-up of the copy to usb. So I'd like to get rid of that attribute on the originals, and delete whatever is on the usb stick.
I got rid of the ones on the usb stick with cfdisk, but that really wasn't the preferred option for those on the hd.
So I ran ls -l on each subdirectory and found 2 items whose permissions were all set to ????????? Thunar deleted each of those taken individually, and once they were gone the other items became deletable too.
However, I've not done that. Even though they have this mysterious e attribute still set, they're fully usable and updateable. The entire problem centered in those 2 items with ??????? permissions, and their presence made the entire set undeleteable.
Last edited by porphyry5; 07-07-2011 at 07:27 PM.
Reason: added final paragraph
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.