mkswap reports wrong uuid
Bug #61474 reported by
Hervé Fache
This bug report is a duplicate of:
Bug #66637: After running mkswap, swap space is discarded, system fails to hibernate (invalid swap signature).
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
mkswap /dev/hda3
Setting up swapspace version 1, size = 2056314 kB
no label, UUID=a23404dd-
ls /dev/disk/by-uuid/ -l
total 0
lrwxrwxrwx 1 root root 10 2006-09-20 14:00 07D6-0215 -> ../../hda1
lrwxrwxrwx 1 root root 10 2006-09-20 14:00 0a0c8bdd-
lrwxrwxrwx 1 root root 10 2006-09-20 14:00 5e9dc7c0-
lrwxrwxrwx 1 root root 10 2006-09-20 14:00 f1dc11a3-
To post a comment you must log in.
Nop! Not mkswap's fault. The UUID is not updated in /dev/disk/by-uuid/ So it's udev's fault I presume...
After reboot, the UUID is correct: 8022-4a14- a611-a0a15e0598 50 -> ../../hda2 935d-4c33- 94ed-5c9d9e704e 02 -> ../../hda5 da54-4776- 99ca-04de898751 ff -> ../../hda3
ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2006-09-21 09:49 07D6-0215 -> ../../hda1
lrwxrwxrwx 1 root root 10 2006-09-21 09:49 0a0c8bdd-
lrwxrwxrwx 1 root root 10 2006-09-21 09:49 5e9dc7c0-
lrwxrwxrwx 1 root root 10 2006-09-21 09:49 a23404dd-