---
title: "Discussion on \"LUKS on LVM\" | Hashnode"
description: "Discussion on \"LUKS on LVM\". If using an old drive\n$ fdisk -l\n$ fdisk /dev/nvme0n1\n# d if existing partitions exist\n$ cryptsetup open --type plain -d /dev/urandom /dev/nvme0n1 to_be_wiped\n$ dd if=/dev/zero of /dev/mapper/to_be_wiped bs=1M status progress\n$ cryptsetup close to_be..."
url: "https://hashnode.com/posts/luks-on-lvm/631cd7c7f73f4734bc055210"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LUKS on LVM](https://blog.gravityfargo.dev/luks-on-lvm?utm_source=hashnode&utm_medium=feed)

If using an old drive $ fdisk -l $ fdisk /dev/nvme0n1 # d if existing partitions exist $ cryptsetup open --type plain -d /dev/urandom /dev/nvme0n1 to\_be\_wiped $ dd if=/dev/zero of /dev/mapper/to\_be\_wiped bs=1M status progress $ cryptsetup close to\_be...

Sep 10, 2022 · 2 min read · blog.gravityfargo.dev  
Updated Nov 9, 2023  
Read the article

-   [#encryption](https://hashnode.com/tag/encryption)
-   [#archlinux](https://hashnode.com/tag/archlinux)
-   [#luks](https://hashnode.com/tag/luks)
-   [#lvm](https://hashnode.com/tag/lvm)
-   [#arch](https://hashnode.com/tag/arch)

## Written by

[Nathan Price](https://hashnode.com/@gravityfargo)

@gravityfargo

  
[View profile](https://hashnode.com/@gravityfargo)

Just here to document stuff I do so I don't have to figure it out again later.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
