hello, i had a corrupted sd card problem a few days ago so i bought a new one and rather than uninstalling the whole thing i decided to install fresh then copy the contents of the ext4 partition to the new one, everything went fine then i rebooted the rpi this morning and got stock at Splash-early permission denied…
How did you copy the ext4 partition over? Did you do it on bit level with dd or on a file level with cp?
I suggest you either do a bitlevel copy with dd, but when you do that you might also copy errors from the corrupted card.
Or you do it on file level but when doing that it is important that you don’t change the ownership of the files so you either have to use the respective cp setting or use tar.
But when doing file level copy I suggest you just copy the .kodi folder unless you have other customization done that you want to save.
i did the dd to copy from the sd card to the linux box then copied file by file to the new sd card.
when i open the files properties theyre all owned by root don’t think i messed up the perms.
now what should i do?
Depending which files you are talking about, obviously not all files should be owned by root!!!
so how should i proceed?
Well personally I would do a full clean install and then copy the files that you need (e.g. the complete .kodi directory) on to the new card but preserving the permission and owner which you either can do with cp -a
or more with tar
as I wrote earlier.
i’m also looking to get back my sickrage and the coucpotato config, so kodi + sickrage + couchpotatoe are the main things i want to get back as theyr were
Well than also copy them over but ensure that all permissions and ownership information are preserved
Don’t try to copy the entire file system, if the system was corrupted you’re only going to end up with trouble, even if you did the copying properly.
Just back up any important configuration files from the software you had installed and re-instate those config files after a fresh install and reinstall of that software.
well that’s the thing i dunno where each software stores its data, say i copy only /home/osmc/sickrage, i’m sure its not gonna work as it installs files in other folders too, unless i figure out the config files for each one of them and only copy those?
Install a fresh installation and install the respective APPS (like sickrage) you want then copy /home/osmc and /etc and hope that none of the files where corrupted.
If you ensure permissions and ownership are unchanged and the files haven’t been corrupted it should work.