lazloman
Posts: 48
Joined: Sat Jan 07, 2017 12:40 am

Using piclone to clone openhabian

Sat Feb 10, 2018 7:06 pm

I asked this in the OpenHAB forums, but got answers, so I'm trying here:

I have OH2 (openhabian) running on an RPi3 on a 64GB thumb drive. I’d like to copy the installation to a smaller, 16GB drive. I tried using piclone, but when I try to run it, I get a permissions error. So I launched it using
sudo piclone
as well as
sudo su -
piclone

but when launching it through either of those methods, piclone does not see either the boot or target drives. I was able to test piclone successfully on a Pi that does not have OH2 installed, so I know it can work, but I’m not sure how to proceed under openhabian. Does anyone have any ideas?
Thanks

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Using piclone to clone openhabian

Sat Feb 10, 2018 7:37 pm

You can use rsync or tar to back it up/restore it. Not sure why piclone wouldn't run, though...
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

lazloman
Posts: 48
Joined: Sat Jan 07, 2017 12:40 am

Re: Using piclone to clone openhabian

Tue Feb 13, 2018 12:52 am

Will using either of those tools make it bootable?

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Using piclone to clone openhabian

Tue Feb 13, 2018 10:37 am

No - for that you would need to shrink the image and use dd (or something similar)
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

lazloman
Posts: 48
Joined: Sat Jan 07, 2017 12:40 am

Re: Using piclone to clone openhabian

Tue Feb 27, 2018 2:16 am

Here is the answer:

Code: Select all

sudo dbus-launch piclone
The technical explanation is here:
https://github.com/raspberrypi-ui/piclone/issues/12

Return to “Beginners”