Results 1 to 3 of 3
hi everybody
I am using is fedora 4
i forgot to give the swap space while installation
i have free space on my disk and i want to add swap ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-13-2005 #1Linux Newbie
- Join Date
- Jul 2004
- Posts
- 143
creation of swap space after installation
hi everybody
I am using is fedora 4
i forgot to give the swap space while installation
i have free space on my disk and i want to add swap space.
please tell me how to add the swap space
thanks
inadvance
- 06-13-2005 #2
Let's see:
1. Create the swap partition using fdisk.
2. Set up the swap area using mkswap.
3. Activate the swap area using swapon.
4. Set up an /etc/fstab entry for it. You can use something like:This assumes the swap partition is fourth partition of first physical drive. You will want to adjust accordingly for yourself. I think that should do it.Code:/dev/hda3 swap swap defaults 0 0
- 06-13-2005 #3
You can use a swap file as well.
Code:Here is an example for a swap file: dd if=/dev/zero of=/usr/local/swapfile bs=1000000 count=200 (200mb swap file) chmod 600 /usr/local/swapfile mkswap /usr/loca/swapfile swapon /usr/local/swapfile Then add this line to your /etc/fstab /usr/local/swapfile swap swap defaults 0 0
I\'m so tired .....
#200472


Reply With Quote
