SOLUTION FOR ALL swap problems
SOLUTION FOR ALL
Question)Is it possible to specify swap device in GRUB bootloader?
Answer)No
Question)I forgot to create swap device during installation.What should I do?
Answer)
Create swap file of size 1.5 to 2 times RAM as follows.
Run as ROOT
(1)dd if=/dev/zero of=/swapfile bs=1024 count=1048576
NOTE:1048576=1024x1024KB=1GB so calculate number of KB's for your RAM by remebering 1MB=1024KB,1GB=1024MB.
(2)mkswap /swapfile
(3)swapon /swapfile
(4)add following line to /etc/fstab
/swapfile swap swap defaults 0 0
If this helps you then thank me by pressing thumbs up button.Thank You.
Last edited by sumeet inani; 11-12-2009 at 02:07 AM.
|