Impossible to use swap
I have a problem with my swap on my Debian Squeeze.
This is the output of "free -m" Code:
total used free shared buffers cached Code:
# /etc/fstab: static file system information. Code:
swapon: cannot find the device for UUID=aa037805-a2f5-443e-89f0-fe60cd57f996 |
The command ls-l /dev/disk/by-uuid gives the partitions of the disk and its UUID
You can find out if the UUID of the swap partition has changed or do not exist any more If the swap file is gone you can create a new one |
Use blkid in order to get id of drives/partitions.
Then make changes in fstab. Reboot (you can also use swapon for immediate use). |
I haven't used vol_id before myself. I just tried it on a Centos system. I'm not sure it is in the same place on Debian. But this command (as root) may give the info you need:
Code:
/lib/udev/vol_id --uuid /dev/sd* Any of those methods should tell you whether you have a swap partition and if so whether it has a UUID and what that is. It is possible you have an unitialized swap partition, so you would need to use the mkswap command to initialize it before it can be used. See the man page for mkswap. |
It's a bit surprizing that the UUID of the partition have changed.
Anyhow try fdisk -l /dev/hda or if unsuccessfull fdisk -l /dev/sda. Then in /etc/fstab replace the UUID of your swap partition by its device name given by the cfdisk command and reboot. |
Ok solved.
Uuid in "/etc/fstab" was changed. I copied the Uuid of swap of "blkid" output in /etc/fstab and now it's ok. Thanks to everybody. |
All times are GMT -5. The time now is 06:30 AM. |