Jameson Lopp on Nostr: If you ever accidentally delete a disk partition and need to quickly undo, "testdisk" ...
If you ever accidentally delete a disk partition and need to quickly undo, "testdisk" is a very powerful utility that works on multiple operating systems.
Ironically, I deleted a partition while using "ntfsfix" to try to unset the "dirty bit" on an NTFS partition that Linux refused to mount. Turns out if you give the root device as a parameter rather than the specific device partition, "ntfsfix" will just wipe all of the partitions without warning! ⚠️⚠️⚠️
Published at
2026-01-08 13:15:38 UTCEvent JSON
{
"id": "5fd6dd80caf00b2fd8e3c734b5dbe7dea54f31b2812318c3d652ff167dd513da",
"pubkey": "f728d9e6e7048358e70930f5ca64b097770d989ccd86854fe618eda9c8a38106",
"created_at": 1767878138,
"kind": 1,
"tags": [
[
"alt",
"A short note: If you ever accidentally delete a disk partition a..."
]
],
"content": "If you ever accidentally delete a disk partition and need to quickly undo, \"testdisk\" is a very powerful utility that works on multiple operating systems.\n\nIronically, I deleted a partition while using \"ntfsfix\" to try to unset the \"dirty bit\" on an NTFS partition that Linux refused to mount. Turns out if you give the root device as a parameter rather than the specific device partition, \"ntfsfix\" will just wipe all of the partitions without warning! ⚠️⚠️⚠️",
"sig": "4cbe42d22876080ff5f20f2070bced9056b50dae9aa5349c4daaecd953a5f2cda500e6f5e92b0ad03bd97aed5ce02c38209e120b2af37b9944ec221763a8c242"
}