maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   [SOLVED] How do I delete a read-only folder ? (https://talk.maemo.org/showthread.php?t=64746)

RenaldoTT 2010-10-30 21:10

[SOLVED] How do I delete a read-only folder ?
 
I tried extracting a .ipk dile using dpkg - X *source* / *destination* and then my device froze so I did a hard reboot taking the battery out etc. Now there's a folder in /MyDocs that contains a folder which is "read-only", so I can't delete it and when I try well I get the *name of dolder* is read-only and then all other files become read-only so I have to reboot to get them back to normal, my PC can't change the folder so I can delete it so does anyone know how I can? I believe the files inside are damaged also.

Thanks

SOLUTION
root
umount /dev/mmcblk0p1
fsck.vfat -aw /dev/mmcblk0p1
reboot

joelteixeira 2010-10-30 21:14

Re: How do I delete a read-only folder ?
 
if you have rootsh installed, just do:

sudo gainroot
rm -rf /path/to/folder/you/want/to/delete

And say bye bye folder

RenaldoTT 2010-10-30 21:16

Re: How do I delete a read-only folder ?
 
tried that, it says I don't have permission, read-only folder

strange isn't it

joelteixeira 2010-10-30 21:17

Re: How do I delete a read-only folder ?
 
Really weird...

try:

sudo gainroot
chmod 777 /path/to/folder/you/want/to/delete
rm -rf /path/to/folder/you/want/to/delete

RenaldoTT 2010-10-30 21:20

Re: How do I delete a read-only folder ?
 
what will the chmod 777 command do?

joelteixeira 2010-10-30 21:22

Re: How do I delete a read-only folder ?
 
Change foder's permission

kinggo 2010-10-30 21:24

Re: How do I delete a read-only folder ?
 
read this........
http://www.zzee.com/solutions/unix-permissions.shtml

joelteixeira 2010-10-30 21:27

Re: How do I delete a read-only folder ?
 
so...? Do you still dont know what 777 means?

owner: read, write and execute permissions,
group: read, write and execute permissions,
others: read, write and execute permissions,

Full access...

RenaldoTT 2010-10-30 21:30

Re: How do I delete a read-only folder ?
 
trying it now will let u kno
thanks :)

Ali 2010-10-30 21:31

Re: How do I delete a read-only folder ?
 
did u tried to delete it through a file manager for example mc midnight commander?


All times are GMT. The time now is 13:47.

vBulletin® Version 3.8.8