SD Card failure

Got a really huge amount of errors trying to install the latest version:

unable to remove newly-extracted version of /usr/share/kodi/addons/pvr.dvblink/resources/settings.xml': Input/output error dpkg: error while cleaning up: unable to remove newly-extracted version of /usr/bin/kodi’: Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of /usr/bin/mediacenter': Read-only file system dpkg: error while cleaning up: unable to remove newly-extracted version of /usr/bin/kodi-standalone’: Read-only file system
dpkg: error while cleaning up:
unable to securely remove ‘/var/lib/dpkg/tmp.ci’: Read-only file system
dpkg: error while cleaning up:
unable to securely remove ‘/var/lib/dpkg/reassemble.deb’: Read-only file system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for mime-support (3.58) …
dpkg: unrecoverable fatal error, aborting:
unable to flush updated status of `mime-support’: Read-only file system
osmc@osmc:~$ top
-bash: /usr/bin/top: Input/output error

Now I can’t do anything :<

Looks like your SD Card is gone :frowning:
Suggest a new install on a new SD Card and then try to salvage via Card Reader what is on the old card

Damn, that would s*ck monkeyballs…

Hopefully a powerpull will fix it when I’m back home.
If not… asks permission to swear

That may make it reboot but not magically heal the SD Card. You will be defiantly in danger for corruption. If it boots after power plug then monitor kernel log closely in the next days

1 Like

Would I be able to clone the current SD-card to a new one using a MacBook? What FileSystem does OSMC use, regular EXT4?

Moved you out of the V17 thread as the topic is not related.
Cloning the SD card would work. While cloning is done on a bit level so it doesn’t matter which filesystem OSMC is using. OSMC uses Fat for the boot partition and ext4 for root partition.

But if files are already have been damaged a cloning will not be to smart.

Thanks for the splitting.
I guess I’ll try a “dd” copy at home.

Let’s see if the thing will still boot up afterwards.

Damn, really looking forward to https://www.reddit.com/r/raspberry_pi/comments/48af52/raspberry_pi_3_usb_and_pxe_network_boot_boot/

f*ck SD cards!

BTW, is there any way to test the SDcard for corruption?

Well after you do a dd you could to some stress test on it and see if it fails. Could use bonnie++ or iozone3

!@#!($&)!@#%&!)$&@#())!@#$(!@%&@#%)!@
The exact same thing happened a couple of minutes ago…

Two days ago I backuped (dd) my faulty SD card and put it back on another SD card… that one just crashed.

I’m not overclocking, I use the RPi3 2.5A adapter… what else can I do??

Get quality SD cards and do a fresh install no dd

Can .img’s that you DD in themselves be corrupted?

I’m using Samsung EVO’s, should be good, right?

To be sure: after formatting (FAT?) an SD it should be “uncorrupted” again, right?

There is no need to format if you are going to dd or use the OSMC installer to write a new image to the card. These are block level operations.

Certainly a backup you have made could already contain file system corruption which you are simply rewriting to the card each time you try to restore it.

Thanks for the info @ActionA
Guess the backup was corrupted!

One last question: I’ve backed up a couple of folders, my fstab, my crontab to my local NFS-share.
Can these be corrupted too? Thus, could they corrupt my fresh SD-install after putting them back?

Absolutely they can.

Yes, they could be corrupted. But as they are text files just copy&paste the content than no issue at all.

Fresh install.

First update cycle:

osmc@osmc:~$ sudo apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
base-files-osmc libc-bin libc6 libgcrypt20 mediacenter-addon-osmc multiarch-support perl-base
7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.8 MB of archives.
After this operation, 21.5 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://security.debian.org/ jessie/updates/main perl-base armhf 5.20.2-3+deb8u4 [1126 kB]
Get:2 http://apt.osmc.tv/ jessie/main base-files-osmc all 1.8.6 [15.4 kB]
Get:3 http://apt.osmc.tv/ jessie/main mediacenter-addon-osmc all 3.0.610 [18.0 MB]
Get:4 http://security.debian.org/ jessie/updates/main libc-bin armhf 2.19-18+deb8u3 [1161 kB]
Get:5 http://security.debian.org/ jessie/updates/main libc6 armhf 2.19-18+deb8u3 [3961 kB]
Get:6 http://security.debian.org/ jessie/updates/main libgcrypt20 armhf 1.6.3-2+deb8u1 [354 kB]
Get:7 http://security.debian.org/ jessie/updates/main multiarch-support armhf 2.19-18+deb8u3 [179 kB]
Fetched 24.8 MB in 4s (5750 kB/s)
Preconfiguring packages …
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)ead-only file system file system
E: Sub-process /usr/bin/dpkg returned an error code (2)
E: Failed to write temporary StateFile /var/lib/apt/extended_states.tmp
osmc@osmc:~$ sudo apt-get upgrade
-bash: /usr/bin/sudo: No such file or directory
osmc@osmc:~$ top
-bash: /usr/bin/top: Input/output error
osmc@osmc:~$

Really not sure what I’m doing wrong :frowning:

You MUST run sudo apt-get update first, followed by sudo apt-get dist-upgrade.

I did run a apt-get update before, but maybe the problem is that I didn’t use dist-upgrade, but normal upgrade…

Could that result in the error I saw?

What are you trying to achieve here? Are you running the v17 test build? Why?