Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

I/O error when trying access to the XBMC database files
Thank you for your donation

Pages (2): 1 2 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
I/O error when trying access to the XBMC database files
25th Jul, 2013, 05:50 PM
Post: #1
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
I/O error when trying access to the XBMC database files
Code:
xbian@xbian ~ $  cp .xbmc/userdata/Database/MyVideos75.db /dev/zero
cp: reading `.xbmc/userdata/Database/MyVideos75.db': Input/output error
cp: failed to extend `/dev/zero': Input/output error
What does it mean? My SDcard becomes broken or what?

First I installed nmap with 69 additional packages, then I tried to remove nmap but apt-get said that 'package list parse error'.
Then I sent 'reboot' to my Pi and after that my media library has gone.
I then remove this packages (nmap+69 additionsl) using dpkg -r but I/O error still appear.
Code:
xbian@xbian ~ $  ls -al .xbmc/userdata/Database/
total 2068
drwxr-xr-x 1 xbian xbian    160 Jul 25 07:28 .
drwxr-xr-x 1 xbian xbian    356 Jul 15 10:10 ..
-rw-r--r-- 1 xbian xbian 606208 Jul 25 07:28 Addons15.db
drwxr-xr-x 1 xbian xbian      0 Jan  1  1970 CDDB
-rw-r--r-- 1 xbian xbian  28672 Feb 13 16:31 Epg7.db
-rw-r--r-- 1 xbian xbian 184320 Feb 13 16:31 MyMusic32.db
-rw-r--r-- 1 xbian xbian 819200 Jan  1  1970 MyVideos75.db
-rw-r--r-- 1 xbian xbian 417792 Jul 25 07:28 Textures13.db
-rw-r--r-- 1 xbian xbian  40960 Feb 13 16:31 TV22.db
-rw-r--r-- 1 xbian xbian  20480 Jul 20 18:30 ViewModes4.db
Find all posts by this user
Quote this message in a reply
25th Jul, 2013, 06:11 PM
Post: #2
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: I/O error when trying access to the XBMC database files
1/ Check SD card is not full df -h
2/ Try /dev/null instead

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
25th Jul, 2013, 06:13 PM
Post: #3
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
Re: I/O error when trying access to the XBMC database files
I would say that once you have messed up your sys and dont know what happened, than the best,safest and easier way would be to restore your SD card backup

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
25th Jul, 2013, 07:00 PM
Post: #4
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: I/O error when trying access to the XBMC database files
Code:
xbian@xbian ~ $  df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          7.5G  1.1G  6.2G  15% /
udev             10M  4.0K   10M   1% /dev
tmpfs           189M  204K  188M   1% /run
/dev/mmcblk0p2  7.5G  1.1G  6.2G  15% /
none            5.0M     0  5.0M   0% /run/lock
none            189M     0  189M   0% /run/shm
none            100M     0  100M   0% /run/user
/dev/mmcblk0p1   34M   13M   22M  37% /boot
/dev/mmcblk0p2  7.5G  1.1G  6.2G  15% /home
/dev/sda1       230G  127G   91G  59% /media/hdd
Code:
xbian@xbian ~ $  cp .xbmc/userdata/Database/* t/
cp: omitting directory `.xbmc/userdata/Database/CDDB'
cp: reading `.xbmc/userdata/Database/MyVideos75.db': Input/output error
cp: failed to extend `t/MyVideos75.db': Input/output error

Trying fsck.btrfs now...

Is it serious? On second pass same output.
Find all posts by this user
Quote this message in a reply
25th Jul, 2013, 07:37 PM
Post: #5
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: I/O error when trying access to the XBMC database files
Are you just trying to backup your XBMC settings? Have you tried XBMC backup? Also export library from within XBMC.

cp .xbmc/userdata/Database/* t/ is not a valid command.

I've tried on my machine, mkdir temp, cp .xbmc/userdata/Database/* temp and it works, apart from CDDB which is empty.

Sounds like something is corrupt. Can you access another linux machine and run a check on the card.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
25th Jul, 2013, 07:43 PM
Post: #6
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: I/O error when trying access to the XBMC database files
(25th Jul, 2013 07:37 PM)IriDium Wrote:  Are you just trying to backup your XBMC settings? Have you tried XBMC backup? Also export library from within XBMC.

cp .xbmc/userdata/Database/* t/ is not a valid command.

I've tried on my machine, mkdir temp, cp .xbmc/userdata/Database/* temp and it works, apart from CDDB which is empty.

Sounds like something is corrupt. Can you access another linux machine and run a check on the card.
No. No. Export - choose folder - Ok -> freeze for few seconds and nothing happens.
fsck log in the previous post.

Also several other files has I/O error.
Find all posts by this user
Quote this message in a reply
25th Jul, 2013, 08:09 PM
Post: #7
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: I/O error when trying access to the XBMC database files
Can you try:
sudo btrfs fi show
sudo btrfs fi df /

It's not looking good. You have got a backup?

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
25th Jul, 2013, 08:31 PM
Post: #8
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: I/O error when trying access to the XBMC database files
(25th Jul, 2013 08:09 PM)IriDium Wrote:  Can you try:
sudo btrfs fi show
sudo btrfs fi df /

It's not looking good. You have got a backup?

Code:
xbian@xbian ~ $ sudo btrfs fi show
Label: 'xbian-root-btrfs'  uuid: d06e41d3-e15b-449d-a853-a09b70341912
        Total devices 1 FS bytes used 997.21MB
        devid    1 size 7.48GB used 2.32GB path /dev/mmcblk0p2

Btrfs Btrfs v0.19
xbian@xbian ~ $ sudo btrfs fi df /
Data: total=1.94GB, used=918.66MB
System, DUP: total=8.00MB, used=4.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=183.50MB, used=78.55MB
Metadata: total=8.00MB, used=0.00
Find all posts by this user
Quote this message in a reply
25th Jul, 2013, 08:54 PM
Post: #9
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: I/O error when trying access to the XBMC database files
I'm at a loss. I wonder if it got corrupted using the "cp" command on a btrfs file system when rsync should have been used.

It might be possible to recover, but I'm not a btrfs expert. Someone else might be able to help.

https://btrfs.wiki.kernel.org/index.php/Restore

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
26th Jul, 2013, 01:43 AM
Post: #10
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: I/O error when trying access to the XBMC database files
Now my Pi didnt boot either. Loading screen and non-blinking ACT led.
Find all posts by this user
Quote this message in a reply
26th Jul, 2013, 01:54 AM
Post: #11
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: I/O error when trying access to the XBMC database files
(26th Jul, 2013 01:43 AM)kraleksandr Wrote:  Now my Pi didnt boot either. Loading screen and non-blinking ACT led.

Did you try anything prior to this happening?

I think it is time to bite the bullet and do a fresh install.

You may still be able to recover "some" of the files if you have access to another Linux machine but I would put it down to experience and do a fresh install and make sure you have backups.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
26th Jul, 2013, 02:48 AM
Post: #12
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: I/O error when trying access to the XBMC database files
(26th Jul, 2013 01:54 AM)IriDium Wrote:  
(26th Jul, 2013 01:43 AM)kraleksandr Wrote:  Now my Pi didnt boot either. Loading screen and non-blinking ACT led.

Did you try anything prior to this happening?

I think it is time to bite the bullet and do a fresh install.

You may still be able to recover "some" of the files if you have access to another Linux machine but I would put it down to experience and do a fresh install and make sure you have backups.

Only fsck.btrfs and btrfs-restore.
Find all posts by this user
Quote this message in a reply
26th Jul, 2013, 04:26 PM
Post: #13
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: I/O error when trying access to the XBMC database files
Boot with debug mode ends here:
Code:
mmc0: Controller never released inhibit bit(s).
Find all posts by this user
Quote this message in a reply
26th Jul, 2013, 09:20 PM
Post: #14
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
Re: RE: I/O error when trying access to the XBMC database files
(26th Jul, 2013 04:26 PM)kraleksandr Wrote:  Boot with debug mode ends here:
Code:
mmc0: Controller never released inhibit bit(s).

Definitely went south on you, likely no hope of recovering anything.

http://www.raspberrypi.org/phpBB3/viewtopic.php?t=22359&p=230921

Last post of that thread is gsh (Gordon Hollingsworth - Raspberry Pi Developer) asking for a card with this issue to be sent to him if your interested.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
26th Jul, 2013, 10:30 PM
Post: #15
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: I/O error when trying access to the XBMC database files
After erasing my sdcard (dd from /dev/zero) and installing XBian from b1.1 image it works, but at 3rd reboot that error appears again. Is it trouble with SDcard or with RPi?
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [SOLVED] MySQL database updated but XBMC doesnt show content careless25 3 13,839 24th Jul, 2013 06:25 PM
Last Post: rikardo1979
  [PROBLEM] XBMC ouputs ERROR and WARNING into xbmc.log s2108312 2 12,331 15th Jan, 2013 10:43 PM
Last Post: s2108312

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 12:55 PM Powered By MyBB, © 2002-2025 MyBB Group.