|
|
| Ubuntu, swap, hibernate |
|
|
|
| Written by Bart Dorlandt |
| Sunday, 09 December 2007 12:46 |
|
Just a couple of days ago I wanted to increase my swap space to 1 GB instead of 512 MB. This way I could finally do an hibernate. Most of the time I wasn't able to because I have 1 GB of RAM and with firefox and thunderbird running it uses a lot. So what did I do. I installed Gparted to adjust my disks. As you can see further below my swap partition is for my biggest partition. So I had to resize and move my data a bit to the right so I could grew my swap partition. Make sure do this when you have enough time. I took me around 3 hours. The following commands where used. apt-get install gparted Make sure you have unmounted the partition you want to edit, you are also able to do it with Gparted, but it crashed on my machine. So I did it by hand. NOTE: remember the partition you are using. System > Administration > Partition Editor Now we are going to create the swap partition. mkswap /dev/sda5 After this we will use the UUID in the /etc/fstab and in /etc/initramfs-tools/conf.d/resume. Now we are going to reinitialize the ramfs by using this command: update-initramfs -u After this has finished you may reboot normally. Extra informationThe following commands may help you during the way.
# fdisk -l
# blkid
# cat /proc/swaps Error sectionThese could be found/seen during booting or in dmesg. Unable to find swap-space signature activating swap [fail] |
| Last Updated on Thursday, 31 January 2008 16:53 |
| Related items: |
|---|
|


