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! ⚠️⚠️⚠️
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! ⚠️⚠️⚠️