I have an installation of OSMC on Rapberri PI2, with Owncloud and Mysql, SSH and all the hardening suggestions. All was working fine and yesterday my 1 year old son “played” with the power supply, I had to hard reboot, then MySql didn´t start. Apache was running but, since mysql was KO, Owncloud was not up.
Also “sudo apt-get update” failed
Hit http://download.opensuse.org Packages Ign http://download.opensuse.org Translation-en Fetched 735 kB in 15s (46.2 kB/s) Reading package lists... Error! W: GPG error: http://download.opensuse.org Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4ABE1AC7557BEFF9 E: Could not open file /var/lib/dpkg/status - open (2: No such file or directory) E: The package lists or status file could not be parsed or opened.
After searching with systemctl what did it happen, also a samba mount on fstab failed. I kept on with the search and seems that, some folders under /var/lib are missing.
I just have an micro-sd card
I tryed to verify the sd with fsck and the disk /dev/mmcblk0p1 (/boot) had a dirty byte that I could finally clean.
/dev/mmcblk0p2 (/) was supposed to be fine (after unmounting in single user).
Any one had the same mysterious disappearance of files? Maybe I´m wrong and my son doesn´t have these files destruction skills and comes from another issue with the overall configuration… I´m lost and seems to me I´ll have to reinstall everything.
Is there any opportunity that I don´t need to?
This is the current contents of /var/lib
osmc@papaFrita:/var/lib$ ls -al total 24 drwxr-xr-x 6 root root 4096 Jan 26 09:32 . drwxr-xr-x 12 root root 4096 Jan 20 14:51 .. drwxr-xr-x 3 root root 4096 Jan 25 23:50 apt drwxr-xr-x 3 root root 4096 Jan 26 00:53 connman drwx------ 2 root root 4096 Jan 20 14:51 container drwxr-xr-x 4 root root 4096 Jan 20 14:51 systemd
I also think it is too empty.
If anyone can provide some light to this issue I´d really appreciate.
Thanks in advance.