PDA

View Full Version : swapoff after the device is improperly unplugged



life_is_a_garden
January 13th, 2010, 02:59 AM
Hi guys, I have a question about swap devices.

If users improperly unplugged a storage device (SATA) without safely removing it, and one of the partition of the device is a swap device, and has been swapon'd, therefore has an entry in /proc/swaps. I can't do swapoff, because it will simply tell me that the device is not found/invalid.

Is there a way to make linux refresh/detect that the swap device is invalid and remove it from the available list of swaps?