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-31 01:58

Re: How do I delete a read-only folder ?
 
I was trying to get need for speed undercover to run and I tried extracting the .ipk file with x term

retsaw 2010-10-31 02:11

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by lunat (Post 858050)
you can have permissions on the mount. but no way to temper in any way with permissions on directories or files for there is nothing to store them on the filesystem. precise enough?

Yep:D
Quote:

i seconded what you said.
Ok, thanks.

Quote:

and look what we found out: the op mounted something and has problem with that mount.
Actually, he didn't mount it since it (MyDocs) is mounted by default on the N900, which was the assumption I was working on from the beginning. So it isn't really new information to me.

lunat 2010-10-31 02:11

Re: How do I delete a read-only folder ?
 
the question is more how and where, in, with what. so when you finished with whatever you doing on your pc(deleting files doesn't sound good). it might be good to have the

cat /proc/mounts

output so that the "guessing" stops and instead "know" what we have. so long as it is still possible to mount the thing considdering the errors you talking about.

you didn't pull out Mydocs that we know for sure but for the rest .... i want to see whats up with it.
btw /proc/mounts shows also if something of the kind retsaw mentioned is going on. facts.

RenaldoTT 2010-10-31 02:13

Re: How do I delete a read-only folder ?
 
Well this thing is going to finish in like 5hrs :S so tomorrow I'll send the output

retsaw 2010-10-31 02:16

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by lunat (Post 858055)
edit: no offense! that "bonehead" thing is really the errormessage you get after a while when you try to check a mounted filesystem. it realy says that,

Really? I've never come across that before, how do you get that "bonehead" message to show?

lunat 2010-10-31 02:30

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by retsaw (Post 858062)
Really? I've never come across that before, how do you get that "bonehead" message to show?

well maybe thats because you are not a bonhead like me who checks a mounted filesystem. better never come across it :D

retsaw 2010-10-31 02:32

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by RenaldoTT (Post 858061)
Well this thing is going to finish in like 5hrs :S so tomorrow I'll send the output

It really shouldn't take that long, did you select the option to scan and recover bad sectors, cause that'd slow it down, and really shouldn't be necessary, handling bad sectors should be done in hardware.

RenaldoTT 2010-10-31 02:33

Re: How do I delete a read-only folder ?
 
yes that's what I chose, urg? how do i stop it now?

retsaw 2010-10-31 02:35

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by lunat (Post 858067)
well maybe thats because you are not a bonhead like me who checks a mounted filesystem. better never come across it :D

Heh. What type of filesystem was it? (they have different checkers), I might to see if I can get that message up myself sometime.

lunat 2010-10-31 02:40

Re: How do I delete a read-only folder ?
 
ext3 or ext2.
strings should show you the errormessage without hurting a filesystem.

the message is:
---
WARNING: PROGRAMMING BUG IN E2FSCK!
OR SOME BONEHEAD (YOU) IS CHECKING A MOUNTED (LIVE)
FILESYSTEM.
--

retsaw 2010-10-31 02:45

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by RenaldoTT (Post 858070)
yes that's what I chose, urg? how do i stop it now?

Is there a cancel option? If there isn't then it is probably safest to leave it, although the worst that will happen if you forced it to stop, is it'll leave the filesystem in a worse state than before, but only if it is in the middle of making changes to the filesystem when you stop it

javispedro 2010-10-31 02:47

Re: How do I delete a read-only folder ?
 
Not to mention that doing a surface scan will potentially reduce the life of the card depending on what such scan does.

RenaldoTT 2010-10-31 02:48

Re: How do I delete a read-only folder ?
 
no cancel button just the X so I guess I gota leave it let it run

retsaw 2010-10-31 02:55

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by lunat (Post 858080)
ext3 or ext2.
strings should show you the errormessage without hurting a filesystem.

But where's the fun in that? :p

lunat 2010-10-31 03:03

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by retsaw (Post 858091)
But where's the fun in that? :p

well i see your point.

RenaldoTT 2010-10-31 07:15

Re: How do I delete a read-only folder ?
 
$ cat /proc/mounts
rootfs / rootfs rw 0 0
ubi0:rootfs / ubifs rw,bulk_read,no_chk_data_crc 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /tmp tmpfs rw,noatime,size=1024k 0 0
tmpfs /var/run tmpfs rw,nosuid,noatime,size=256k,mode=755 0 0
none /dev tmpfs rw,noatime,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,noatime,size=65536k 0 0
/dev/mmcblk0p2 /home ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
/dev/mmcblk0p2 /opt ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
cgroup /syspart cgroup rw,freezer,memory,cpu 0 0
nodev /sys/kernel/debug debugfs rw 0 0
/dev/mmcblk0p2 /usr/lib/python2.5 ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
/dev/mmcblk0p2 /usr/share/pyshared ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
/dev/mmcblk0p2 /usr/lib/pyshared ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
/dev/mmcblk0p2 /usr/share/python-support ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
/dev/mmcblk0p2 /usr/lib/python-support ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
/dev/mmcblk0p1 /home/user/MyDocs vfat ro,nosuid,nodev,noexec,noatime,nodiratime,uid=2999 9,fmask=0133,dmask=0000,allow_utime=0022,codepage= cp437,iocharset=iso8859-1,shortname=mixed,utf8,rodir,errors=remount-ro 0 0
/dev/mmcblk1p1 /media/mmc1 vfat rw,nosuid,nodev,noexec,noatime,nodiratime,uid=2999 9,fmask=0133,dmask=0000,allow_utime=0022,codepage= cp437,iocharset=iso8859-1,shortname=mixed,utf8,rodir,errors=remount-ro 0 0
~ $


Here you go

leetut 2010-10-31 08:35

Re: How do I delete a read-only folder ?
 
ive had a similar problem that was fixed by connecting to win7 pc via mass storage gave me an option of fix errors, after that was finished it was fixed

lunat 2010-10-31 13:12

Re: How do I delete a read-only folder ?
 
hey!


Code:

umount /dev/mmcblk0p1
mount /dev/mmcblk0p1


to see if it gives an errormessage that gives a hint to what is wrong.


plan to is either of(you choose!)

1. backup and reformat mmcblk0p1 and play back the backup afterwards. mount in: done.
2. unmount mmcblk0p1 and do a file system check on /this/ partition(mmcblk0p1). in this case i would also suggest a backup first if it is possibile(actually i never do that myself: where would be the risk and fun if i did )

but lets see first see what mount tells. if we learn something new from that.

and btw a tip: you have an external mmc(mounted to /media/mmc1). if i play around and do potential dangerous things, i do it on that external mmc. that way i don't interfere with maemo.

RenaldoTT 2010-10-31 16:42

Re: How do I delete a read-only folder ?
 
I looked at /dev/mmcblk0p1 and mmcblk0p1 is 0bytes large. Is this normal?

also there is a broken symlink called core...
hmmmm

retsaw 2010-10-31 17:04

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by RenaldoTT (Post 858650)
I looked at /dev/mmcblk0p1 and mmcblk0p1 is 0bytes large. Is this normal?

Yes, it isn't a real file, just a pointer to a block device.

Quote:

also there is a broken symlink called core...
hmmmm
I've got that too, it points to a file in the /proc directory which is dynamically generated by the kernel. Maybe it is related to a change made in Titan's kernel (the power kernel). I wouldn't worry about it though.

So are you still unable to delete that directory? Maybe you should try doing the filesystem check on the N900 if Windows didn't fix anything (I promise it won't take as long as the Windows scan did). Have you tried deleting your problem folder when it is mounted on your Windows PC?

lunat 2010-10-31 17:05

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by RenaldoTT (Post 858650)
I looked at /dev/mmcblk0p1 and mmcblk0p1 is 0bytes large. Is this normal?

also there is a broken symlink called core...
hmmmm

1. please leave everythin in /dev as it is.
2. did you do what i say? what was the response?

lunat 2010-10-31 17:08

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by retsaw (Post 858678)
Yes, it isn't a real file, just a pointer to a block device.

hey! you were right it is mounted ro.

RenaldoTT 2010-11-01 00:36

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by retsaw (Post 858678)
Yes, it isn't a real file, just a pointer to a block device.

I've got that too, it points to a file in the /proc directory which is dynamically generated by the kernel. Maybe it is related to a change made in Titan's kernel (the power kernel). I wouldn't worry about it though.

So are you still unable to delete that directory? Maybe you should try doing the filesystem check on the N900 if Windows didn't fix anything (I promise it won't take as long as the Windows scan did). Have you tried deleting your problem folder when it is mounted on your Windows PC?

Yes I tried deleting it from the PC itself but with no luck, infact the file will appear to be deleted but when I go back into the folder it reappears, anyway, I'm not going to worry about this much anymore, there are 30files in the folder so I'll just delete one before every powerdown instead of going through all the trouble of running the scan, and having read that it can shorten/damage my internal memory ...... yea a stupid non easy deletable folder is nothing compared to a scewed up file system, I still think nothing is wrong with the sytem.

RenaldoTT 2010-11-01 00:39

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by lunat (Post 858681)
1. please leave everythin in /dev as it is.
2. did you do what i say? what was the response?

na I didn't, but I thank you for your patience and help.

lunat 2010-11-01 00:49

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by RenaldoTT (Post 859119)
na I didn't, but I thank you for your patience and help.

so be it.
the way to change it is not to check somthing on the pc. the way to do it is to fix the damaged thing and if you go on like that you won't get the disk working. it is not your files that are damaged. it is the whole filesystem.

but have it your way.

WereCatf 2010-11-01 01:14

Re: How do I delete a read-only folder ?
 
I am sorry to butt in the conversation, but already from the first post in the whole thread it was crystal clear that the issue is filesystem corruption.

To OP: turn off ALL extra applications, including any instant messengers and all on your phone, then open x terminal and type the following there:

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

This should bring it back to life, unless the 'umount' command gives an error about open files. If you have any open files there you need to close them all before doing this.

RenaldoTT 2010-11-01 01:21

Re: How do I delete a read-only folder ?
 
For some reason I think WereCatf advice might work.
But just so I'm clear on what I'm doing, what does fsck.vfat -aw /dev/mmcblk0p1 do exactly? and there is a space between the "." and "v" right

WereCatf 2010-11-01 01:27

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by RenaldoTT (Post 859137)
what does fsck.vfat -aw /dev/mmcblk0p1 do exactly?

It checks the filesystem and repairs any damage it can repair. Don't worry, it should only take a few minutes at most.

Quote:

and there is a space between the "." and "v" right
No, it looks like that because of the forums, but "fsck.vfat" is all written together. No space there.

Good luck with your phone :)

sjgadsby 2010-11-01 01:29

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by RenaldoTT (Post 859137)
...what does fsck.vfat -aw /dev/mmcblk0p1 do exactly?

filesystem check, VFAT version, automatically correcting errors and writing changes immediately

Quote:

and there is a space between the "." and "v" right
No, there is not.

RenaldoTT 2010-11-01 01:35

Re: How do I delete a read-only folder ?
 
Thanks guys, will try and see what happens

RenaldoTT 2010-11-01 02:13

Re: How do I delete a read-only folder ?
 
Got this result

Nokia-N900:~# umount /dev/mmcblk0p1
Nokia-N900:~# fsck.vfat -aw /dev/mmcblk0p1
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
65:01/00
Copying backup to original
FATs differ but appear to be intact. Using first FAT.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_civ_suv.m3g
Contains a free cluster (23564). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_civ_taxi.m3g
Contains a free cluster (23565). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_civ_van.m3g
Contains a free cluster (23566). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_civ_wagon.m3g
Contains a free cluster (23567). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_cop_mustang.m3g
Contains a free cluster (23568). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_firebird.m3g
Contains a free cluster (23569). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_fordgt.m3g
Contains a free cluster (23572). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_gallardo.m3g
Contains a free cluster (23575). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_golf.m3g
Contains a free cluster (23577). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_gt2.m3g
Contains a free cluster (23580). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_gtr.m3g
Contains a free cluster (23583). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_lancerevox.m3g
Contains a free cluster (23586). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_m3.m3g
Contains a free cluster (23589). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_mazda3.m3g
Contains a free cluster (23592). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_mustanggt.m3g
Contains a free cluster (23595). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_rx8.m3g
Contains a free cluster (23598). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_sl65amg.m3g
Contains a free cluster (23601). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_solstice.m3g
Contains a free cluster (23604). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_viper.m3g
Contains a free cluster (23607). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_zondaf.m3g
Contains a free cluster (23610). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/causeway.m3g
Contains a free cluster (23613). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/causeway_chasedown_hector.bin
Contains a free cluster (23644). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/causeway_driftmode.bin
Contains a free cluster (23645). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/causeway_hwybattle.bin
Contains a free cluster (23646). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/charmap
Contains a free cluster (23647). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/chopper.m3g
Contains a free cluster (23648). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/chopper_add.m3g
Contains a free cluster (23650). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/color.bin
Contains a free cluster (23651). Assuming EOF.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/downtown.m3g
Contains a free cluster (23652). Assuming EOF.
Reclaimed 36 unused clusters (2359296 bytes) in 1 chain.
Performing changes.
/dev/mmcblk0p1: 5866 files, 50345/442377 clusters

I'm rebooting. Do I need to mount back up the mmcblk0p1?

I haven't rebooted yet, I'm waiting for clarification

WereCatf 2010-11-01 02:33

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by RenaldoTT (Post 859165)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
65:01/00
Copying backup to original
FATs differ but appear to be intact. Using first FAT.
/PENDING DELETION/palm/applications/com.ea.app.nfsuc/res_nfsuc/car_civ_suv.m3g

*SNIP*

All that text just means it found lots of errors there and tried to fix them as best it could. Ie. it works as intended now.

Quote:

I'm rebooting. Do I need to mount back up the mmcblk0p1?

I haven't rebooted yet, I'm waiting for clarification
Nope, it mounts it when it reboots. Just reboot now and you'll be good!

EDIT: And sorry it took me a while to respond, I am coding something and didn't notice the reply to this thread :/

RenaldoTT 2010-11-01 02:39

Re: How do I delete a read-only folder ?
 
It's ABSOLUTELY POSITIVELY alright, your advice worked perfect and now the ENTIRE folder is gone. Farewell. Problem solved, I owe you and everyone here a HUGE TTHANK YOU

MERCI

DokterW 2010-11-02 00:52

Re: [SOLVED] How do I delete a read-only folder ?
 
I might have the same issue here, but with the internal memory (/dev/mmcblk0p2). Any suggestions on how to fix that?

Edit: My bad! Too early in the morning for me. Did as it was explained in the first post. Fixed and I have serenity in my life again.

Thanks!

corduroysack 2011-05-19 16:49

Re: [SOLVED] How do I delete a read-only folder ?
 
@WereCatf
thankyou so much for that, my emmc was all read only and couldn't delete anything. i followed your instruction and it's back to normal brilliant. :D

RenaldoTT 2011-05-20 01:38

Re: [SOLVED] How do I delete a read-only folder ?
 
You guys are welcome. I know that my problems would be a help to someone :)

unkle_p 2011-06-02 05:45

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by WereCatf (Post 859136)
I am sorry to butt in the conversation, but already from the first post in the whole thread it was crystal clear that the issue is filesystem corruption.

To OP: turn off ALL extra applications, including any instant messengers and all on your phone, then open x terminal and type the following there:

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

This should bring it back to life, unless the 'umount' command gives an error about open files. If you have any open files there you need to close them all before doing this.


Another noobie with this same problem. Tried filebox, with no success, tried unmounting, no success, tried to delete files and folder, no success. Registered to the forum with plans to disturb u guys, but this did it for me.

U have been thanked!

raaj13 2011-06-02 07:09

Re: How do I delete a read-only folder ?
 
Quote:

Originally Posted by unkle_p (Post 1020675)
Another noobie with this same problem. Tried filebox, with no success, tried unmounting, no success, tried to delete files and folder, no success. Registered to the forum with plans to disturb u guys, but this did it for me.

U have been thanked!

try this in terminal.
root
umount /media/mmc
#if emmc then use
umount /home/user/MyDocs
fsck.vfat -af /dev/mmcblk0p1(if sdcard use mmcblk1p1)

if umounting is failing for some reason as you report please post the error here.

unkle_p 2011-06-02 08:40

Re: [SOLVED] How do I delete a read-only folder ?
 
"Registered to the forum with plans to disturb u guys, but this did it for me.

U have been thanked!"

unkle_p 2011-06-02 08:41

Re: [SOLVED] How do I delete a read-only folder ?
 
and disturbed? :)


All times are GMT. The time now is 02:15.

vBulletin® Version 3.8.8