finding a lost swap partition?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
There should be some kind of sanity check when fstab specifies the wrong swap partition. I'm running Ubuntu on a number of machines, and I just finished going through what seemed like several hours of battling that started when the UUID of the swap partition was changed. I had a pretty large advantage of realizing fairly quickly that the problem was the swap partition, but it was still a pretty major pain to figure out what was supposed to be in the /etc/fstab file before I was able to fix it. It would seem like this should be a fairly minor thing to fix--if I actually understood what was going on.
Probably the general solution would be a recovery routine if fstab has any problems. In this particular case, I just needed to find the proper name for the only swap partition and put it in there...
Changed in linux: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
Can you expound on the UUID of the swap partition changing? Was this something that was caused by another bug? I suppose I'm wondering what might cause the UUID to change, which would then cause this issue.
the 'blkid' command will generate filesystem information, including device, UUID and fs-type. Would this be a tool that would help find/resolve this issue in the future?