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-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 02:31.

vBulletin® Version 3.8.8