# Encrypting Your Root File System on RASPBERRY PI - using LUKS & dm-crypt

**URL:** <https://community.zymbit.com/t/encrypting-your-root-file-system-on-raspberry-pi-using-luks-dm-crypt/150>\
**Category:** Encrypting File System\
**Created:** [May 15, 2017, 6:22am UTC](https://community.zymbit.com/t/encrypting-your-root-file-system-on-raspberry-pi-using-luks-dm-crypt/150 "2017-05-15T06:22:09Z")\
**Posts on this page:** 1\
**Showing post:** 108

<div class="post-metadata">

**Author:** ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)\
**Post date:** [February 13, 2019, 12:29am UTC](https://community.zymbit.com/t/encrypting-your-root-file-system-on-raspberry-pi-using-luks-dm-crypt/150/108 "2019-02-13T00:29:54Z")

</div>

@Gtewksbury Are you using Noobs or are you using one of the other images (Stretch Desktop or Lite)? If you are using Noobs, the root file system is usually located at partition 7. If so, then you will need to invoke the conversion script with the option `-m 7` as per [our post on encpryption](https://community.zymbit.com/t/encrypting-your-root-file-system-on-raspberry-pi-using-luks-dm-crypt/150). In this case, it would look like this:  
`curl -G https://s3.amazonaws.com/zk-sw-repo/mk_encr_sd_rfs.sh | sudo bash -s -- -m 7`

The default for the script is to use a Raspbian Desktop or Lite image where the root file system is located at partition 2. In this case, the encryption process would have failed. You could try one of two things:

1. Try the encryption script with default settings on a fresh install of Raspbian Lite or Desktop
2. Retry the encryption script with your current setup but invoke the script with the `-m 7` option.

---

_[View the full topic](https://community.zymbit.com/t/encrypting-your-root-file-system-on-raspberry-pi-using-luks-dm-crypt/150)._
