Swap partition enabled twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
New
|
Undecided
|
Gabriel Patiño |
Bug Description
Somehow, after upgrading from Dapper to Edgy, my laptop started to report double the previous swap memory. At the same time, I noticed that under certain circumstances the laptop became very slow and some applications got stalled. For instance, when running synaptic, sometimes complained it has failed when forking due to a lack of memory.
The problem disappears if I disable and then enable the swap partition:
$ sudo swapon -s
Password:
Filename Type Size Used Priority
/dev/hda2 partition 979956 0 -1
/dev/mapper/hda2 partition 979956 0 -2
$ sudo swapoff -a
$ sudo swapon -a
$ sudo swapon -s
Filename Type Size Used Priority
/dev/mapper/hda2 partition 979956 0 -3
The problem seems to be related to the use of UUID in /etc/fstab. If I replace the line:
UUID=2f7932b2-
with:
/dev/hda2 none swap sw 0 0
after rebooting, the laptop reports the right swap size:
$ sudo swapon -s
Password:
Filename Type Size Used Priority
/dev/hda2 partition 979956 128560 -1
Hope this is helpful,
Nico
Changed in util-linux: | |
assignee: | nobody → gepatino |
I'm seeing the same thing (in feisty now). I have the UUID line in my fstab, and tools like "top", and gnome-system- monitor report that I have 4GB of swap, despite the fact that I have just one 2GB swap partition.
burner@phoenix:~$ cat /proc/swaps efcf-4f58- a84a-85f7365903 fe none swap sw 0 0
Filename Type Size Used Priority
/dev/hda5 partition 2273156 669408 -1
/dev/mapper/hda5 partition 2273156 0 -2
burner@phoenix:~$ grep "swap\|hda5" /etc/fstab
# /dev/hda5 -- converted during upgrade to edgy
UUID=50d295d4-