Originally Posted by
timace
Hey,
I have discovered I've made a bad move, as mentioned in the title, I increased the swap partition size (because it was ridiculously low), now Ubuntu 8.04 doesn't recognise it when I go to hibernate, etc
Is there a way I can assign the swap partition to ubuntu again, without reinstalling?
Thanks in advance
change your fstab to match the current partition information. you can do this by changing the UUID to match the new uuid of the swap partition (the UUID changed when you resized it) or simply change the /etc/fstab to load the swap partition via /dev or label. (you need superuser priveledges to save the changes)
Code:
sudo nano /etc/fstab
for example example if your swap resided on sdb2 the line should look like this:
Code:
/dev/sdb2 none swap sw 0 0
If you want to go the UUID route:
Code:
ls -alh /dev/disk/by-uuid
then modify the UUID for your swap partition in /etc/fstab
edit: additional information as prompted by overdrank's response above:
after doing the above:
Code:
sudo mount -a
swapon -a
to verify your swap file is mounted and working:
if you see any value for swap other than:
you are good to go
Bookmarks