Recovering data from ext4 to swap partition?
I accidentally turned my ext4 partition (/dev/sda5 - main storage) to a swap partition through a live USB. I haven't touched the partition at all so I think the data inside should be safe.
Is there a way to turn it back into ext4 w/o losing the data inside? Rewrite the partition table w/o having to reformat?
I ran
mkswap /dev/sda5
output:
mkswap: /dev/sda5: warning: wiping old ext4 signature.
Setting up swapspace version 1, size = 469.4 GiB (503968690176 bytes)
no label, UUID=a34aa5c7-
I'm looking for any solutions from safely backing up the partition as image for later, to rewriting the partition table, partial/full data recovery, etc. Any process to get the data back from a partition that was turned from ext4 to swap.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Sybillance
- Solved:
- Last query:
- Last reply: