Prepare SD card for removal from Cyanogenmod 13 HTC Desire HD A9191 I installed CM on the above phone. I wanted to remove the SD card, but when it boots up again the phone says 'Encryption unsuccessful'. It works again if I put the card back in and reboot the phone.

I want to move the SD card to another phone, and have this one without an SD card. I know that it works without an SDcard, but how? Do I need to move the /data partition somehow? How do I do that?

Edit: It was the CM build I used, which was aceopt. The opt part means that it uses the SD card as internal storage. So I need another build if I want to take the card out. Unfortunately, there doesn't seem to be a non opt version of CM 13 for this device, so I'll have to go with 12.
Insert your SD card in your phone, reboot it, then go to Settings - Storage &amp; USB, press "menu" button and choose "format as portable". You should be able to use your SD card on other devices after that.