maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   how to delete read only files from N900 (https://talk.maemo.org/showthread.php?t=46309)

boss007 2010-03-02 17:25

how to delete read only files from N900
 
HI everybody, i have faced a problem with my n900 today, i downloaded the (qt-maemo5-opensource-src-4.6.2) file which is more that 300mb, and then i copy it to my phone but i was not able to figure out how to install it, later i delete the file from the phone memory and i found out that after deleting has finished it has left more than 1500 read only files on photos, i tried deleting it though mass storage and pc suite but nothing, i even delete all the pics which i have on the phone but the read files still there and whenever im trying to delete it it is saying unable to delete file, so can anyone help me with this issue please?.

Andre Klapper 2010-03-02 18:09

Re: how to delete read only files from N900
 
Did you try deleting on the device? Where are those files exactly stored?

boss007 2010-03-02 18:59

Re: how to delete read only files from N900
 
i tried on the device but it said unable to delete, i cant find any of these files on the file manager, and its all pics for the icons of QT, its only located on the photos section, any idea?

Andre Klapper 2010-03-02 20:17

Re: how to delete read only files from N900
 
Exact steps, click by click, in a list, welcome. The entire problem is still extremely vague to me...

boss007 2010-03-02 22:22

Re: how to delete read only files from N900
 
hey andre, i didnt understand what to do now, do u have any idea how to solve this problem

Flandry 2010-03-02 22:36

Re: how to delete read only files from N900
 
My advice is when you find a hole in your foot, stop shooting. :P

He's asking you for more detail about what you did so we have some idea how to undo it.

FIrst of all, why did you download this and copy it to your phone, what was your intention?

Second, how did you copy it to your phone, and what did you do after you got it there?

Third, how did you try to delete it?

Ali 2010-03-02 22:42

Re: how to delete read only files from N900
 
u can't delete it!! i had the same problem once but the best way is to reflash ur devise!

boss007 2010-03-02 22:52

Re: how to delete read only files from N900
 
hi Flandry. i downloaded to QT as i saw a video for it working on n900 for portraid mode ans so many things, i copy it to my device through mass storage and i was not able to install it. then i delete it from the file manager, and after that i found out that it has left more than1000 icon in my photos, when i connect through pc suite or mass storage the files is not showing on the pc, and wen i tried to delete one by one from the phone it says unable to delete the file. hope the info are enough

boss007 2010-03-02 22:53

Re: how to delete read only files from N900
 
hi Ali, how did u flash, and will u loose all ur data and programs?

Scottlfa 2010-03-02 22:54

Re: how to delete read only files from N900
 
terminal
sudo gainroot
cd /[directory containing file]
rm [files]

Flandry 2010-03-02 22:56

Re: how to delete read only files from N900
 
Quote:

Originally Posted by Ali (Post 553150)
u can't delete it!!

That's really unlikely.

Boss:
Where did you copy it to? Which folder?

Didn't you say you tried to install it?

Ali 2010-03-02 23:01

Re: how to delete read only files from N900
 
Quote:

Originally Posted by boss007 (Post 553166)
hi Ali, how did u flash, and will u loose all ur data and programs?

just power search how to flash n900 and u will find a wiki page link and if u flash u only loose downloaded apps from application manager nothing else!

boss007 2010-03-02 23:06

Re: how to delete read only files from N900
 
i just copy it in the main folder, i tried to install it but cant figure out how, then the same file i delete it

boss007 2010-03-02 23:08

Re: how to delete read only files from N900
 
Quote:

Originally Posted by Scottlfa (Post 553168)
terminal
sudo gainroot
cd /[directory containing file]
rm [files]


tnks but when i put cd/ photos , it says not found, cause all the read files are stored in the photos section in the menu

Flandry 2010-03-02 23:14

Re: how to delete read only files from N900
 
It sounds like you're saying it wasn't a single directory you copied over, but a bunch of files in the main directory. In short, that you made i big mess...

If you have a backup it would probably be easier for you to flash and restore. While i can tell you how to delete the files, it sounds to me like you don't have enough understanding of the layout to be sure you don't delete your own stuff in the process.

boss007 2010-03-03 02:42

Re: how to delete read only files from N900
 
yeah maybe thats the reason, back up is there

weirdbeard 2010-03-03 02:57

Re: how to delete read only files from N900
 
do this:
open terminal
sudo gainroot
cd MyDocs
ls


then tell us what is listed so we can determine where you placed those files.


then if it is in that directory
rmdir (directory name)

boss007 2010-03-03 12:29

Re: how to delete read only files from N900
 
Quote:

Originally Posted by weirdbeard (Post 553344)
do this:
open terminal
sudo gainroot
cd MyDocs
ls


then tell us what is listed so we can determine where you placed those files.


then if it is in that directory
rmdir (directory name)


tnks for ur support here is the results

home/user # cd MyDocs
/home/user/MyDocs # ls
A Mac OS cities
DCIM autorun.inf rootsh.install
MJ.wav backups tmp
/home/user/MyDocs # rmdir
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) multi-call binary

Usage: rmdir [OPTION]... DIRECTORY...

/home/user/MyDocs #


any help?

boss007 2010-03-03 13:30

Re: how to delete read only files from N900
 
guys, anybody is going to help

Rob1n 2010-03-03 14:02

Re: how to delete read only files from N900
 
Can you actually see the files anywhere except in the Photos app?

boss007 2010-03-03 16:15

Re: how to delete read only files from N900
 
Quote:

Originally Posted by Rob1n (Post 553952)
Can you actually see the files anywhere except in the Photos app?

no Rob1n, its only on the photos, and its not opening as it sais file is not available and unable to delete

Rob1n 2010-03-03 16:43

Re: how to delete read only files from N900
 
Quote:

Originally Posted by boss007 (Post 554199)
no Rob1n, its only on the photos, and its not opening as it sais file is not available and unable to delete

Okay, sounds like the index/cache is out of date. Try running "tracker-processes -r" to clear the index (this will mean it'll have to reindex all media on the phone again, so could take a while), then launch Photos/Media Player to kick the indexer back into action.

boss007 2010-03-03 16:50

Re: how to delete read only files from N900
 
Quote:

Originally Posted by Rob1n (Post 554267)
Okay, sounds like the index/cache is out of date. Try running "tracker-processes -r" to clear the index (this will mean it'll have to reindex all media on the phone again, so could take a while), then launch Photos/Media Player to kick the indexer back into action.

should i do this in the terminal?

boss007 2010-03-03 16:53

Re: how to delete read only files from N900
 
i tried it on terminal but it sais not found

MohammadAG 2010-03-03 16:54

Re: how to delete read only files from N900
 
Download and install rootsh, type root then enter in terminal
Then do the above command, if it doesn't work I'll reply.

boss007 2010-03-03 17:10

Re: how to delete read only files from N900
 
i did it and it sais not found

boss007 2010-03-03 17:15

Re: how to delete read only files from N900
 
dear mohammed, can u posted for me step by step, maybe its typing mistake

MohammadAG 2010-03-03 17:20

Re: how to delete read only files from N900
 
Open app manager
Click download
Click the title bar
Click search
Type rootsh
Click rootsh
Accept agreement
Click continue
Open terminal, type root, hit enter
Type tracker-processes -r as he said above

Rob1n 2010-03-03 18:13

Re: how to delete read only files from N900
 
Quote:

Originally Posted by MohammadAG (Post 554302)
Download and install rootsh, type root then enter in terminal
Then do the above command, if it doesn't work I'll reply.

There's no need to be root, and it may not even work properly as root (depending on whether it uses absolute or relative paths).

j.s 2010-03-03 18:38

Re: how to delete read only files from N900
 
Quote:

Originally Posted by Ali (Post 553150)
u can't delete it!! i had the same problem once but the best way is to reflash ur devise!

Please do not say something is the best way to solve a problem unless you know what you are talking about. Especially when that something is as drastic as reflashing.

boss007 2010-03-03 19:04

Re: how to delete read only files from N900
 
this is whatsays,is there any mistake from my side?

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-42-11:~# tracker-processes-r
-sh: tracker-processes-r: not found
Nokia-N900-42-11:~# tracker-processes-r
-sh: tracker-processes-r: not found

boss007 2010-03-03 19:18

Re: how to delete read only files from N900
 
any solution guys?

aman18narang 2010-03-03 19:19

Re: how to delete read only files from N900
 
Quote:

Originally Posted by boss007 (Post 554513)
this is whatsays,is there any mistake from my side?

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-42-11:~# tracker-processes-r
-sh: tracker-processes-r: not found
Nokia-N900-42-11:~# tracker-processes-r
-sh: tracker-processes-r: not found

could it be that he hasnt given any spaces between the words..can anyone confirm..am new to this so someone wiser may advise..

boss007 2010-03-03 19:28

Re: how to delete read only files from N900
 
ok guys finally i was able to configure it, here is the results.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-42-11:~# tracker-processes- r
-sh: tracker-processes-: not found
Nokia-N900-42-11:~# tracker-processes -r
Found 131 pids...
Found process ID 1085 for 'trackerd'
Killed process 1085
Found process ID 1326 for 'tracker-indexer'
Killed process 1326
Setting database locations
Checking database directories exist
Checking database version
Checking database files exist
Could not find database file:'/root/.local/share/tracker/data/common.db'
One or more database files are missing, a reindex will be forced
Removing all database files
Removing database:'/root/.local/share/tracker/data/common.db'
Removing database:'/var/tmp/tracker-root/cache.db'
Removing database:'/root/.cache/tracker/file-meta.db'
Removing database:'/root/.cache/tracker/file-contents.db'
Removing database:'/root/.cache/tracker/email-meta.db'
Removing database:'/root/.cache/tracker/email-contents.db'
Setting index database locations
Checking index directories exist
Checking index files exist
Could not find index file:'/root/.cache/tracker/file-index.db'
Could not find index file:'/root/.cache/tracker/email-index.db'
Removing all database index files
Removing database index:'/root/.cache/tracker/file-index.db'
Removing database index:'/root/.cache/tracker/email-index.db'
Nokia-N900-42-11:~#

but i checked the photos stil the files there

aman18narang 2010-03-03 19:39

Re: how to delete read only files from N900
 
r u able to view the pics or r they being shown as the broken landscape image pic that is shown when the actual pic is not available?

Rob1n 2010-03-03 20:00

Re: how to delete read only files from N900
 
Quote:

Originally Posted by boss007 (Post 554542)
ok guys finally i was able to configure it, here is the results.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-42-11:~# tracker-processes- r
-sh: tracker-processes-: not found
Nokia-N900-42-11:~# tracker-processes -r
Found 131 pids...
Found process ID 1085 for 'trackerd'
Killed process 1085
Found process ID 1326 for 'tracker-indexer'
Killed process 1326
Setting database locations
Checking database directories exist
Checking database version
Checking database files exist
Could not find database file:'/root/.local/share/tracker/data/common.db'
One or more database files are missing, a reindex will be forced
Removing all database files
Removing database:'/root/.local/share/tracker/data/common.db'
Removing database:'/var/tmp/tracker-root/cache.db'
Removing database:'/root/.cache/tracker/file-meta.db'
Removing database:'/root/.cache/tracker/file-contents.db'
Removing database:'/root/.cache/tracker/email-meta.db'
Removing database:'/root/.cache/tracker/email-contents.db'
Setting index database locations
Checking index directories exist
Checking index files exist
Could not find index file:'/root/.cache/tracker/file-index.db'
Could not find index file:'/root/.cache/tracker/email-index.db'
Removing all database index files
Removing database index:'/root/.cache/tracker/file-index.db'
Removing database index:'/root/.cache/tracker/email-index.db'
Nokia-N900-42-11:~#

but i checked the photos stil the files there

You've got the right command there but, as I thought, it doesn't work as root. You can see that it's trying to delete the index files from /root when they're actually in /home/user. Rerun the "tracker-processes -r" command as the normal user.

boss007 2010-03-04 00:32

Re: how to delete read only files from N900
 
Quote:

Originally Posted by Rob1n (Post 554578)
You've got the right command there but, as I thought, it doesn't work as root. You can see that it's trying to delete the index files from /root when they're actually in /home/user. Rerun the "tracker-processes -r" command as the normal user.

finally its gone, the broken read only files has gone finally, thanks
Rob1n for your help and i would like to thank everybody who was patient with me and who tried to help me with this problem, finally its solved

gaffa 2010-04-02 22:03

Re: how to delete read only files from N900
 
hi everyone
i had downloaded some videos through torrent using transmission but all the videos are "read-only" files and cannot be deleted. They are in the downloads folder and i cant get rid of them.
Will this index method work?
ive tried the gainroot method but it doesnt seem to work and says unable to rmdir downloads...
any help will be much appreciated thank you in advance.

nuke 2010-04-13 16:38

Re: how to delete read only files from N900
 
Quote:

Originally Posted by gaffa (Post 593159)
hi everyone
i had downloaded some videos through torrent using transmission but all the videos are "read-only" files and cannot be deleted. They are in the downloads folder and i cant get rid of them.
Will this index method work?
ive tried the gainroot method but it doesnt seem to work and says unable to rmdir downloads...
any help will be much appreciated thank you in advance.

Hi gaffa

I had the same issue, with transmission, after it crashed the
/home/user/MyDocs folder became readonly, and I could not
delete the torrents and or save any pictures.


This is what I did :


1) From xterm I signed in as root and remounted the filesystem in
/home/user/MyDocs as read and write.

Code:

    mount -o remount,rw  /home/user/MyDocs
2) I deleted the torrents

Code:

    rm -rf  /home/user/MyDocs/Downloads/files.torrent*
3)Checked what device was mounted /home/user/MyDocs under

Code:

  Nokia-N900-42-11:~# df -h

  /dev/mmcblk0p1  27.0G  1.3G 25.7G  5% /home/user/MyDocs

4) And runed fsck.vfat to clear filesystem inconsistencies on the
device reported /dev/mmcblk0p1

a) I unmounted filesystem first *****that is very important

Code:

Nokia-N900-42-11:~# umount /home/user/MyDocs/
b) Then fsck.vfat /dev/mmcblk0p1
Code:

Nokia-N900-42-11:~# fsck.vfat /dev/mmcblk0p1
dosfsck 3.0.1, 23 Nov 2008, FAT32, LFN
alleged total clusters: 442377
4424
8848
13272
17696
checked clusters: 21510
/dev/mmcblk0p1: 1797 files, 21510/442377 clusters
Nokia-N900-42-11:~#

I had to run fsck.vfat a few times until it came up clear v

5) I rebooted the n900 and all was OK.

danielpublic 2010-04-30 12:18

Re: how to delete read only files from N900
 
Hi! I have this problem as well.

When I run:
Code:

fsck.vfat /dev/mmcblk0p1
fsck version and so forth.
alleged total clusters: 442377

and then it askes me:
Code:

FATs differ but appear to be intact. Use which FAT ?
1) Use first FAT
2) Use second FAT

Suggestions? :confused:

[SOLVED] by
Code:

fsck -r /dev/mmcblk0p1
and by pressing '1' for the first FAT and then answering 'yes' if I wanted to make some changes.
Then just reboot and filesystem is read/write again. :)


All times are GMT. The time now is 06:29.

vBulletin® Version 3.8.8