I did some partition size expansions of my centOs system and recover boot loader and file system successfully.I also changed the location and expanded the swap (5GB to 8GB) partition along with above deeds. Now the file system looks like this.
The problem is swap doesn't show it's full size. (look at the red circle. thought the used space is 0, unused space is still 5GB ). I want to fix this.
Here is the result of free -m
[root@localhost ~]# free -m total used free shared buffers cached Mem: 3711 700 3010 0 71 298 -/+ buffers/cache: 330 3380 Swap: 4999 0 4999
Here is the uuid of swap
/dev/sda7: UUID="52485c83-3929-4f5b-bd1c-60492ebd1e5c" TYPE="swap"
will the command mkswap -U 52485c83-3929-4f5b-bd1c-60492ebd1e5c
help me here. Else what must I do?
swapoff
only if your swap is in use (but it won't do any harm if the swap was already off). If you just have resized your partitions, they are probably still unmounted so you don't needswapoff
, but if you have restarted since then, your swap could have been mounted again.