mkswap reports wrong uuid

Bug #61474 reported by Hervé Fache
6
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-da54-4776-99ca-04de898751ff

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-8022-4a14-a611-a0a15e059850 -> ../../hda2
lrwxrwxrwx 1 root root 10 2006-09-20 14:00 5e9dc7c0-935d-4c33-94ed-5c9d9e704e02 -> ../../hda5
lrwxrwxrwx 1 root root 10 2006-09-20 14:00 f1dc11a3-3682-4fbc-8072-2ef368d31ed6 -> ../../hda3

Revision history for this message
Hervé Fache (rvfh) wrote :

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:
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-8022-4a14-a611-a0a15e059850 -> ../../hda2
lrwxrwxrwx 1 root root 10 2006-09-21 09:49 5e9dc7c0-935d-4c33-94ed-5c9d9e704e02 -> ../../hda5
lrwxrwxrwx 1 root root 10 2006-09-21 09:49 a23404dd-da54-4776-99ca-04de898751ff -> ../../hda3

Revision history for this message
Hervé Fache (rvfh) wrote : /dev/disk/by-uuid/ not updated on swap creation

Changed the title to be correct

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.