Quote:
Originally Posted by chrism01
Well, according to this, the 'E' attr cannot be set or reset
http://linux.die.net/man/1/chattr
Start by listing the files info
Code:
lsattr *
ls -l *
# if you've got SELinux, add a Z
ls -lZ *
To delete you'd have to be root and chattr (unset) the 'i' flag if it is set before trying to delete.
Obviously ensure the USB is mounted rw.
|
These are the originals of the files on my hd
Code:
g cd ~/LinuxUse
g ls
Advanced Bash-Scripting Guide.html BashReference ShortNotes~
AwkCheatSheet BashTutorial Tutorials
AwkCom BashTutorial~ bashref.html
AwkCommands LinuxCommands.txt gawkref.html
AwkCom~ LinuxCommands.txt~ jsGuide
AwkOneLinersExplained Notes jsRef
AwkReference Notes~ oAwkTutorial~
AwkReference~ SedOneLinersExplained sedref.html
AwkTits SedReference tuts
AwkTutorial ShortNotes
g lsattr
-------------e- ./AwkCom
-------------e- ./ShortNotes~
-------------e- ./oAwkTutorial~
-------------e- ./SedOneLinersExplained
-------------e- ./AwkOneLinersExplained
-------------e- ./gawkref.html
-------------e- ./ShortNotes
-------------e- ./jsRef
-------------e- ./AwkTits
-------------e- ./jsGuide
-------------e- ./LinuxCommands.txt~
-------------e- ./SedReference
-------------e- ./BashTutorial
-------------e- ./Advanced Bash-Scripting Guide.html
-------------e- ./LinuxCommands.txt
-------------e- ./sedref.html
-------------e- ./AwkCom~
-------------e- ./AwkCheatSheet
-------------e- ./BashReference
-------------e- ./tuts
-------------e- ./AwkReference
-------------e- ./Notes
-------------e- ./AwkCommands
-------------e- ./BashTutorial~
-------------e- ./Notes~
-------------e- ./AwkTutorial
-------------e- ./AwkReference~
-------------e- ./bashref.html
-------------e- ./Tutorials
g
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.