# Adding An NVMe Drive

**URL:** <https://forums.balena.io/t/adding-an-nvme-drive/349728>\
**Category:** balenaOS\
**Created:** [October 17, 2021, 11:10pm UTC](https://forums.balena.io/t/adding-an-nvme-drive/349728 "2021-10-17T23:10:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ts-cfield](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ts-cfield/32/6603_2.png) [@ts-cfield](https://forums.balena.io/u/ts-cfield)\
**Post date:** [October 21, 2021, 3:09pm UTC](https://forums.balena.io/t/adding-an-nvme-drive/349728/2 "2021-10-21T15:09:33Z")

</div>

Hello,

I am not totally familiar with the CM4 IO board nor am I familiar with configuring a SAMBA container, but I set up the [NVMe for my Jetson board](https://forums.balena.io/t/postgres-database-persistent-storage-on-nvme-ssd-instead-of-sd-card/346106) with the following, high-level procedure:

1. Install BalenaOS on the board. Instructions vary depending on board. See Balena’s documentation for your specific board.

2. Log into the host via SSH.

3. I believe the parted command line application is available in the BalenaOS host. I followed the [How to Partition and Format Storage Devices in Linux](https://www.digitalocean.com/community/tutorials/how-to-partition-and-format-storage-devices-in-linux) tutorial by DigitalOcean to format the NVMe SSD.

4. Add `ENV UDEV=1` to dockerfile for the service/container.

5. Create an initialization shell script that mounts the NVMe.

6. Add the initialization shell script as an entrypoint to the dockerfile and provide the default command. This will be highly specific to the samba container you are using, so the following is _not_ going to work and is meant for demonstration.

---

_[View the full topic](https://forums.balena.io/t/adding-an-nvme-drive/349728)._
