Encrypting Existing SD Card , Problem

Hello,

I know this command is used to encrypt the SD card, but I do not know the exact parameters. I keep getting errors.

curl -G https://s3.amazonaws.com/zk-sw-repo/mk_encr_sd_rfs.sh | sudo bash -s -- -x <path to external storage device (e.g. /dev/sdX> -m <source partition number>

  1. My external USB is /dev/sdb1 and is 29.8G
  2. The SD card is 16G

Here is what I have
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 29.8G 0 disk
└─sdb1 8:17 1 29.8G 0 part /media/usb
mmcblk0 179:0 0 14.9G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 14.6G 0 part /

What is the exact command with the exact parameters to encrypt the drive to the usb ?

Thanks
Coby

Hi Coby,

Your setup (external usb media at /dev/sdb1 plus SD root) sounds typical. Therefore, if you just enter the following command per the post encrypting-your-root-file-system…, you should have no problems:

curl -G https://s3.amazonaws.com/zk-sw-repo/mk_encr_sd_rfs.sh | sudo bash

The above command will execute using the defaults you have mentioned.

I previously ran it with any parameters and it does work. Is it possible to give me the parameters ?

Thanks

Coby

The verbose form of the default command should be:
curl -G https://s3.amazonaws.com/zk-sw-repo/mk_encr_sd_rfs.sh | sudo bash -s -- -x /dev/sdb -m 2