Forum

Full Version: I/O error when trying access to the XBMC database files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
1/ Check SD card is not full df -h
2/ Try /dev/null instead
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
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.
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.
(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.
Can you try:
sudo btrfs fi show
sudo btrfs fi df /

It's not looking good. You have got a backup?
(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
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
Now my Pi didnt boot either. Loading screen and non-blinking ACT led.
(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.
(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.
Boot with debug mode ends here:
Code:
mmc0: Controller never released inhibit bit(s).
(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.
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?
Pages: 1 2
Reference URL's