swap not mounted after repartitioning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GParted |
Fix Released
|
Unknown
|
|||
gparted (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Ubuntu 6.10
I repartitioned my disk with gparted.
Noted that my notebook (only 256MB RAM) became much slower and
"swapped" a lot.
Found that the swap partition was no longer active ("top" returned zero swap size).
"swapon -a" returned error message
swapon: cannot stat /dev/disk/
Found hint on http://
namely I commented away the uuid-line from fstab and added
/dev/hda3 none swap defaults 0 0
followed by "mount -a"
Swap seems to work now. There is some error message upon waking up from hibernate
which I cannot read
(N.B.: and I do not know how to read the error log and cannot spend still more
time to find out -- there should be a man-page or such on reading error logs)
Bottom line: repartioning the disk causes fstab to fail: This must not happen !
-------
Another comment: Why in the wolrd is there a "UUID" now in fstab ?
This looks like a really bad hack, requiring specific numbers where symbolic names like /dev/hda1
are appropriate. Some comment from the net:
"UUID must rank as one of the butt-ugliest new 'features'. It makes the once simple fstab almost impossible to read and is causing all sorts of support ..."
Changed in gparted: | |
status: | Unknown → Fix Released |
I just upgraded to Intrepid.
Hibernate failed in Hardy and I wanted to see if it was fixed.
It wasn't.
It turns out I'd added more RAM and nothing noticed that swap was smaller than RAM.
I used gparted to resize the swap. That went smoothly. I did swapoff/ resize/ swapon from inside gparted.
Then when I rebooted I had no swap.
gparted did not update fstab with the UUID (or it changed the UUID)