# What is the correct way to use raw device?

**URL:** <https://discuss.aerospike.com/t/what-is-the-correct-way-to-use-raw-device/7773>\
**Category:** Installation\
**Created:** [August 21, 2020, 4:41am UTC](https://discuss.aerospike.com/t/what-is-the-correct-way-to-use-raw-device/7773 "2020-08-21T04:41:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gunjan\_Sharma](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/gunjan_sharma/32/1184_2.png) [@Gunjan\_Sharma](https://discuss.aerospike.com/u/Gunjan_Sharma)\
**Post date:** [August 21, 2020, 4:41am UTC](https://discuss.aerospike.com/t/what-is-the-correct-way-to-use-raw-device/7773/1 "2020-08-21T04:41:30Z")

</div>

I am using CE on azure VMs. The VM has an attached SSD which is mounted on path /mnt. Device filesystem is /dev/sda1.

The problem now is that it works fine until the machine restarts for some reason. After which the mount is not able to re-register. Similar to [this thread](https://discuss.aerospike.com/t/aerospikes-disk-not-getting-mount-after-machine-restart/1293).

If not mounted what is the correct way to use SSD as a raw device? I understand I can use the file system but that would be less performant as I understand.

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [August 21, 2020, 5:15am UTC](https://discuss.aerospike.com/t/what-is-the-correct-way-to-use-raw-device/7773/2 "2020-08-21T05:15:27Z")

</div>

Just don’t create the mount for sda1, unmount any existing mount. Mounts are needed if you plan to use a filesystem.

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [August 21, 2020, 5:26am UTC](https://discuss.aerospike.com/t/what-is-the-correct-way-to-use-raw-device/7773/3 "2020-08-21T05:26:09Z")

</div>

Also make sure sda1 isn’t your root device (it usually is). Aerospike shouldn’t start if it is - unless you deleted the drives header, in which Aerospike will be allowed to overwrite the root device and your system will no longer be bootable.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [August 27, 2020, 5:26am UTC](https://discuss.aerospike.com/t/what-is-the-correct-way-to-use-raw-device/7773/4 "2020-08-27T05:26:13Z")

</div>

Closed on August 27, 2020, 5:26am UTC

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.
