0

I want to reset an NVMe disk to the state when it came out of the box, not a data or secure wipe needed, disk will be reused in same system.

More context:

It is a Turing RK1 Module in a Turing PI 2.5 Cluster Board with Samsung 990 Pro NVMe 1TB. What I want to achieve is to wipe/reset the drive; data wiping / secure erasure is not needed. I can interact with the NVMe drive by booting a freshly flashed OS from the RK1 internal storage chip, so I can interact with it without it being mounted.

I need to wipe/reset because there is a RockChip install script to copy over the data to the NVMe drive. And without the drive being 'clean/reset', it keeps booting from it by default because the NVMe drive is the first boot priority.

So I want to reset the drive using the newly flashed OS to run the ubuntu-rockchip-install script, which will format and copy the flashed os from the internal storage chip to the NVMe drive.

The distro I flashed to the internal storage chip is: Ubuntu 24.04-LTS

Found This Answer

I found the following possible solution: https://serverfault.com/a/787210/1114347

It says to wipe the first and last sectors of the drive with dd.

My questions:

  1. Does anybody know if the answer I found will work for an NVMe drive?
  2. Has anybody ever used these commands with an NVMe drive?
  3. Which device should I use?
    • /dev/nvme0 (I think this is the controller)
    • /dev/nvme0n1 (I'm Currently guessing this is the one)
    • /dev/nvme0n1p1 (Partition I want to remove)
    • /dev/nvme0n1p2 (Partition I want to remove)

0 Answers0