Comment 2 for bug 474258

Revision history for this message
Whitehat (i-whitehat) wrote :

"However, the proposed solution of checking partition-types before "mounting" as swap does not seem to offer an effective protection against corrupting data held on raw devices"
What's the problem to mount raw device in read-only mode, check what type the unencrypted partition has? Any linux distribution, including ubuntu 9.04, just shows an error "swapon: /dev/sda2: read swap header failed: Invalid argument" and I expected such behavior. But only Ubuntu 9.10 destroys the partition. I think it would be better to change such behavior, because many users can get into trouble with it