I accidentally used
mkswap
on a unmounted 2 TB data partition of a hard drive (not an SSD), while I was on a live USB session. I did not run swapon as I immediately realized what I had just done.
I wonder if there is any way to fix this maybe through the use of e2fsck
.
I ran mke2fs -n
on the affected partition without any other arguments and got a bunch of backup superblocks. However when I run dumpe2fs -o superblocks=N
I get confusing information, like the Last write time is August 2023 (but I had been using this until Sept. 2 2024).
Perhaps because I haven't used the exact same arguments as when creating the FS the backup superblocks I found are from an older filesystem or I am missunderstanding something about the dump.
If there are other superblocks, how would I find them?
Or could I use this superblocks anyway to try and run e2fsck on the file system?
Asked by Samuel
(342 rep)
Sep 4, 2024, 01:19 AM
Last activity: Sep 4, 2024, 01:17 PM
Last activity: Sep 4, 2024, 01:17 PM