![]() |
Re: How do I delete a read-only folder ?
no luck, smh this is ridiculous
|
Re: How do I delete a read-only folder ?
Quote:
|
Re: How do I delete a read-only folder ?
can't change permissions of the individial files but I have full access to the folder just not the files inside, chmod 777 doesn't work on them
|
Re: How do I delete a read-only folder ?
chmod -R 777 /path/to/folder
|
Re: How do I delete a read-only folder ?
k that works for sure, what did the -R do though?
I got one file deleted can't delete the entire folder so I'm going to have to go file by file it seems, rebooted and trying again :) |
Re: How do I delete a read-only folder ?
Most likely the filesystem is corrupted. If you haven't been changing things, MyDocs is FAT32 which doesn't support permissions, the permissions shown are what are assigned by the linux vfat drive based on the options specified when it was mounted, so if something is showing read-only it is most likely due to corruption.
To fix, since this partition is the one shared when you plug into a computer you can just plug it in to a Windows computer right click on the drive, select properties and there should be an option to check the drive for errors (these aren't exact instructions because I use Linux for day-today stuff and I can't be bothered to check). Or to do it on your N900, open a terminal "sudo gainroot", then as root "umount /dev/mmcblk0p1", then "dosfsck -aw" to run the automatic check and repair, or "dosfsck -rw" for the interactive repair where you are asked what to do when the is more than one choice for how to repair the error, when that is done you can now remount it with "mount /dev/mmcblk0p1", when this is done you should now be able to remove the folder assuming it was left intact by the filesystem repair. |
Re: How do I delete a read-only folder ?
-R = recursive
All files and folder inside the one you pointed. |
Re: How do I delete a read-only folder ?
Well so far I'm checking the volume for errors but it seems I can delete one file at a time after which they go back to read-only then I gota reboot and do the same to anotehr folder, that method will take a while but hopefully after this erros check is done, I'll just be able to delete the entire folder with ease
|
Re: How do I delete a read-only folder ?
to see if the filesystem you're sat in is mounted read-only:
mount |grep $(df .|grep -o "/dev/[^ ]*") use find . -type d to see if you can traverse the hierarchy, if not then a directory might not have the execute bit. If this is the case let us know and we'll direct the right followup cmd. use: fuser -m . this may show a load of process ids and one might be locking your ability to delete stuff. one will be your shell you can look up with ps |grep PID |
Re: How do I delete a read-only folder ?
Well I'll have to do that after this thing checks for erros, it's taking forever, I'm trying one method at a time but I'll let you know, btw what is the command "find . -type d" ?
Oh btw I'm a noob with just a touch of experience so if I don't get something just try to bare with me |
All times are GMT. The time now is 21:05. |
vBulletin® Version 3.8.8