RPI3: Migrating from SDCard to SSD


(Thomas Binder) #1

I’d like to finally move completely to a new installation 100% on SSD. I already have a second openHAB running on a RPi2 with only root moved to SSD, which works flawlessly.
No I want my existing OH2 moved completely to the SSD. Is there something to be aware of? Or can I just clone my existing SD Card to the external SSD, connect that to one of the USB-ports of the RPI3?


(Christos) #2

That’s what you need to do


(Thomas Binder) #3

Thanks! I’ll try this one!


(Jimbob) #4

Hi there,
I’m trying to migrate my Openhab2 setup from my SD card to a USB connected SSD drive.
I’ve followed the instructions linked to above:

pi@openhab ~ $ vcgencmd otp_dump | grep 17:
17:3020000a

I’ve then tried to clone the SD card to the SSD taking a copy of the image from the SD card and then writing it to the SSD drive.

I’d assumed that doing so would be the same as writing a default image, but there’s something I’m missing - I’ve tried modifying fstab and cmdline.txt on the SSD drive to no avail.
lsblk gives:

pi@openhab /boot $ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 111.8G  0 disk
├─sda2        8:2    0  14.8G  0 part
└─sda1        8:1    0    56M  0 part
mmcblk0     179:0    0  14.9G  0 disk
├─mmcblk0p2 179:2    0  14.8G  0 part /
└─mmcblk0p1 179:1    0    56M  0 part /boot

Cheers
James