Suddenly all of my contents residing on external hard disk has changed to read-only mode. Even though I am using Linux, I don't know how a virus have done this. I tried using "chmod", but still I am not able to change permission. So Now I can only read and copy files in/out it. But I cant delete anything.Please suggest me some way.
migrated from stackoverflow.com Jan 10 '12 at 22:27
|
Hard to know your situation with so few details. Are you root? If not, do you have root access? When you tried CHMOD, did you get an error? Try if that doesn't work, try |
|||
|
|
|
Try usind super user to change permissions
This will recursively (therefor the "-R") set 755 permissions fo the specified path. If you want full permisisons set to 777 |
|||
|
|
|
You need to run chmod from an account that does have permission to make these changes; your account might have permission using the sudo command, but if you don't know if it does, it probably doesn't. |
|||
|
|
|
It would helpful to know exactly what, if any, error message you see when you try to Since this is an external mount, it is possible that it has been mounted read-only. In that case, In any case, I advise against doing a |
|||
|
|
|
Try the following command
This will enable you to read and write to the disk. This worked for me after Ubuntu 12.04 mysteriously changed the onwership of my hard drive from myself to "root". Which meant that I had a similar problem as you. |
||||
|
|

mountcommand when hard disk is in use can help. – AnonymousLurker Sep 28 '12 at 10:27