How to copy config to another pi?
#1
I got a nice working system with pi1b. I want to make a copy for a friend.

So I copied the files to another sd card and tried that in another pi1b. But then the kodi on the second sd card got all the default settings and none of the adons are installed.

I checked the files on both sd cards with winmerge and they are exactly the same!
Where is the kodi config saved? How to copy to another pi? Huh
Reply
#2
just install whatever distro you are using on your friends RPi and then copy the complete .kodi folder (and all its subfolders) to the other RPi. Everything which is needed should be in there.

Note: This only affects Kodi. If you are using where you are able to apt-get and installed additional software, this won't be copied while using the method above.
Reply
#3
I don't have a .kodi folder. Just a 'overlays' folder on the sd.
Reply
#4
the folder is hidden.

Which distro are you using on your RPi?. Check your home folder:

Code:
ls -al ~/

There must be a .kodi folder.
Reply
#5
wouldn't cloning the SD card be the easiest way?

https://thepihut.com/blogs/raspberry-pi-...is-sd-card
Reply
#6
(2017-05-22, 11:40)carsten888 Wrote: I got a nice working system with pi1b. I want to make a copy for a friend.

So I copied the files to another sd card and tried that in another pi1b. But then the kodi on the second sd card got all the default settings and none of the adons are installed.

I checked the files on both sd cards with winmerge and they are exactly the same!
Where is the kodi config saved? How to copy to another pi? Huh

You can use the Backup addon to backup your existing configuration, and then restore your friends RPi.
Kodi Matrix on Dell Optiplex 980 Lubuntu 22.04 | Kodi Matrix on HTPC Lubuntu 20.04 | My Add-ons | Legacy Repo | Matrix Repo
>>>>> Newest MetalChris Addons: Local Now | Redbox | NEWSnet| NHL Radio | Weather Unlocked
Reply
#7
sure, many ways lead to Rome Wink
Reply
#8
(2017-05-22, 14:16)carsten888 Wrote: I don't have a .kodi folder. Just a 'overlays' folder on the sd.

The SD card contains two partitions. The first one is the small boot partition, which is what you see if you take the card out of your Pi and put it into a Windows machine (for example). The other partition is larger, but is in Linux format and is not (as standard) readable on a Windows machine.

The simplest way to view it is either to enable SMB access on your Pi set-up and access it over the network that way, or to use a Linux OS (you can make a temporary bootable live image on a USB key or DVD and use that if you don't want to do a full install) and that should be able to mount and see both partitions.

The overlays folder is in the boot partition, whereas the .kodi folder is (amongst many other things) in the other larger partition.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#9
Photo 
I booted with a linux dvd. I can't see the other partition. I do see a hidden folder 'system volume information'.

Image

I tried copy pasting that to my friends sd card, but no joy.

Rereading your post I thought maybe I need to do that smb setting also for viewing the partition in Linux. So I searched for that, but not sure where and what to set.
ImageImage
Reply
#10
On your linux screen you're looking in the 537MB volume. That's the small partition windows sees.
Looking at your screen I'm guessing the storage partition is the '3.5GB Volume' above that.
To see the whole storage partition over the network you could either edit samba.conf.sample (and make it into samba.conf) that sits in the Configfiles share or connect using WinSCP or similar.

I'm with bricktop though - the easiest way to clone an installation is to clone the card. Win32diskimager or usbit (or probably dozens of other programs I've not used) will do that easily in windows. As long as the new card is at least as big* it should just work. Stick it in your pc, use one of those 2 programs to 'read' to an image. Stick a new card in the pc and 'write' the same image back. Test new card in pi. Give new card to friend.

* Sometimes cloning to a card that's nominally the same size fails because it's actually a few bytes smaller, so a full partition doesn't fit. Something to worry about if it happens.
Reply
#11
I tried cloning with Win32diskimager, but the second card is smaller so it did not want to write.

I watched a few youtube vids about how to do that and concluded it is just too much hassle. The time I spent trying to do this is already more then manually reconfiguring Kodi from scratch.

Anyway. Thanks for all the help.

I have now learned that all my sd-card backups of kodi where totally useless, because each backup is exactly identical. Smile
o well, live and learn.
Reply

Logout Mark Read Team Forum Stats Members Help
How to copy config to another pi?0