Windows under the wrong formatted Linux SWAP partition recovery

  
                  

Description of the problem:

In the windows and linux dual operating system, if you accidentally format the swap partition, how to recover?


Workaround:
Under Linux, use the mkswap command to create a swap partition, and then use the swapon command to enable the swap partition.

For example: swap partition is sda7

mkswap /dev/sda7

swapon /dev/sda7

Copyright © Windows knowledge All Rights Reserved