keith-scarlett
December 10th, 2023, 10:55 AM
Hello,
I've recently got a new to me (i.e. used) laptop and I'd like to use the nvme format command to securely erase the contents. I am aware this may be excessive / unnecessary, it's more for future reference.
Here's the relevant terminal output:
mint@mint:~$ nvme list
Node SN Model Namespace Usage Format FW Rev
--------------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1 1 0.00 B / 0.00 B 1 B + 0 B
mint@mint:~$ sudo nvme format --ses=2 /dev/nvme0 -n 0xffffffff
You are about to format nvme0, namespace 0xffffffff(ALL namespaces).
Controller nvme0 has child namespace(s):nvme0n1
WARNING: Format may irrevocably delete this device's data.
You have 10 seconds to press Ctrl-C to cancel this operation.
Use the force [--force|-f] option to suppress this warning.
Sending format operation ...
NVMe status: INVALID_NS: The namespace or the format of that namespace is invalid(0x200b)
mint@mint:~$ sudo nvme format --ses=2 /dev/nvme0n1 -n 0xffffffff
You are about to format nvme0n1, namespace 0xffffffff(ALL namespaces).
Namespace nvme0n1 has parent controller(s):nvme0
WARNING: Format may irrevocably delete this device's data.
You have 10 seconds to press Ctrl-C to cancel this operation.
Use the force [--force|-f] option to suppress this warning.
Sending format operation ...
NVMe status: INVALID_NS: The namespace or the format of that namespace is invalid(0x200b)
As you'll see I'm trying to do this on a Linux Mint installation (sorry!) - I couldn't get definitive / clear help on the Linux Forum.
The drive has 4 namespaces (each identified with a different 'p' number, or are these actually partitions?) by the way; my intention is to have the format command apply to all at once and thereby 'unify' the drive.
Any help much appreciated, thanks.
I've recently got a new to me (i.e. used) laptop and I'd like to use the nvme format command to securely erase the contents. I am aware this may be excessive / unnecessary, it's more for future reference.
Here's the relevant terminal output:
mint@mint:~$ nvme list
Node SN Model Namespace Usage Format FW Rev
--------------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1 1 0.00 B / 0.00 B 1 B + 0 B
mint@mint:~$ sudo nvme format --ses=2 /dev/nvme0 -n 0xffffffff
You are about to format nvme0, namespace 0xffffffff(ALL namespaces).
Controller nvme0 has child namespace(s):nvme0n1
WARNING: Format may irrevocably delete this device's data.
You have 10 seconds to press Ctrl-C to cancel this operation.
Use the force [--force|-f] option to suppress this warning.
Sending format operation ...
NVMe status: INVALID_NS: The namespace or the format of that namespace is invalid(0x200b)
mint@mint:~$ sudo nvme format --ses=2 /dev/nvme0n1 -n 0xffffffff
You are about to format nvme0n1, namespace 0xffffffff(ALL namespaces).
Namespace nvme0n1 has parent controller(s):nvme0
WARNING: Format may irrevocably delete this device's data.
You have 10 seconds to press Ctrl-C to cancel this operation.
Use the force [--force|-f] option to suppress this warning.
Sending format operation ...
NVMe status: INVALID_NS: The namespace or the format of that namespace is invalid(0x200b)
As you'll see I'm trying to do this on a Linux Mint installation (sorry!) - I couldn't get definitive / clear help on the Linux Forum.
The drive has 4 namespaces (each identified with a different 'p' number, or are these actually partitions?) by the way; my intention is to have the format command apply to all at once and thereby 'unify' the drive.
Any help much appreciated, thanks.