Active Topics

 


Reply
Thread Tools
Posts: 228 | Thanked: 100 times | Joined on May 2010 @ Australia
#1
I've got a disk I/O error right smack bang on ~/.cache/tracker/meta.db on my N9. It's messing up my sms's and few other things.

Would a flash guarantee that the file would be wiped or would it cough up another disk i/o error at the same spot? Or could I somehow do a disk check

The backup program won't work either as it crashes when it reads this file.

Thanks
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#2
meta.db

That is bad.
But are you sure it is a HW i/o error? What does dmesg and/or syslog tell?
I would expect the flash disk controller to handle 'bad sectors'.

Did you try a cp or a dd? To move that file to other location as it might be that this meta.db (locked by aegis?/metadata user, ) cannot be moved by OS to other disk location (but even that I would expect to be handled by the controller).
So I am guessing only, please elaborate and try to give some more information.

Another approach: as it is a sqlite DB, you could try to dump it and load it to a new file. Move that file later to correct location and give rights...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 228 | Thanked: 100 times | Joined on May 2010 @ Australia
#3
Originally Posted by peterleinchen View Post
meta.db

That is bad.
But are you sure it is a HW i/o error? What does dmesg and/or syslog tell?
.
After running develsh and issuing - cp /home/user/.cache/tracker/meta.db ~/

dmesg says this... (nothing in syslog)

340.996337] Aegis: cannot measure file orcexec.iMHnzK (process: ngfd)
[ 340.996582] Aegis: cannot measure file orcexec.CuBYWk (process: ngfd)
[ 340.996704] Aegis: cannot measure file orcexec.a0QbkV (process: ngfd)
[ 474.057586] mmcblk0: error -110 transferring data, sector 122225720, nr 8, card status 0x200b00
[ 474.057617] end_request: I/O error, dev mmcblk0, sector 122225720

same error for dd...+

I am not sure of it is a h/w issue but it sounds like it.
 

The Following User Says Thank You to skyjumper For This Useful Post:
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#4
If you don't care about your contacts and SMS you could delete that file (or do a "tracker hard reset", search this forum for it). Do note that you WILL lose contacts, sms, messages, etc.

Most probably a hardware failure but also most probably nothing to worry about since flash blocks die frequently.
 

The Following 3 Users Say Thank You to javispedro For This Useful Post:
Posts: 228 | Thanked: 100 times | Joined on May 2010 @ Australia
#5
Originally Posted by javispedro View Post
Most probably a hardware failure but also most probably nothing to worry about since flash blocks die frequently.
yes most likely, I just really don't want my phone to be bricked if the flash stops at the bad block...
 

The Following User Says Thank You to skyjumper For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#6
Guess I'll still have lots to learn about linux ...
did a
lsof | grep orcexec
and it came out with a file in /var/tmp/
but searching that directory did not reveal anything!?

just guessing
Did you already do a reboot?
as I assume this to be a temporary file on rootfs.(mmcblk0p2)

I guess further that it is not your meta.db directly which is affected but the temporary file only? So a reboot should solve/heal?

If it is your meta.db file itself:
did you try to dump or backup with sqlite?
Like:
sqlite3 /home/user/.cache/tracker/meta.db
.help
.backup /home/user/meta.db.bkp
--or
.output /home/user/MyDocs/meta.db.dmp
.dump

Maybe this is possible?
But what to afterwards? At least you would have a backup...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2016-02-10 at 06:56. Reason: added .output redirection (forgot)
 

The Following User Says Thank You to peterleinchen For This Useful Post:
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#7
Originally Posted by skyjumper View Post
yes most likely, I just really don't want my phone to be bricked if the flash stops at the bad block...
I don't think that will happen. Flasher should (TM) start doing crazy things only when you have "too many bad blocks", and if you do, your device will most probably die soon either way.

Last edited by javispedro; 2016-02-08 at 14:39.
 

The Following 2 Users Say Thank You to javispedro For This Useful Post:
Posts: 228 | Thanked: 100 times | Joined on May 2010 @ Australia
#8
Originally Posted by javispedro View Post
If you don't care about your contacts and SMS you could delete that file (or do a "tracker hard reset", search this forum for it). Do note that you WILL lose contacts, sms, messages, etc.
I'll try this first. This will keep my calendar entries won't it as they're stored in calendar.db ?
 

The Following User Says Thank You to skyjumper For This Useful Post:
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#9
Originally Posted by skyjumper View Post
I'll try this first. This will keep my calendar entries won't it as they're stored in calendar.db ?
If I remember correctly yes, since they're stored in "mkcal".
 

The Following 3 Users Say Thank You to javispedro For This Useful Post:
Posts: 228 | Thanked: 100 times | Joined on May 2010 @ Australia
#10
Originally Posted by javispedro View Post
If you don't care about your contacts and SMS you could delete that file (or do a "tracker hard reset", search this forum for it).
So this worked. It zapped the bad block meta.db file and I re-entered my contacts again. Calendar and Notes untouched :-)

Alas the backup program still stops. Any ideas (without going too far off topic) as to how I could see where the program is stopping?

update: I flashed and all working okay now :-)

Last edited by skyjumper; 2016-02-16 at 06:21.
 

The Following User Says Thank You to skyjumper For This Useful Post:
Reply

Tags
disk i/o


 
Forum Jump


All times are GMT. The time now is 14:34.