increase swap space without free space in HD

Opesh opeshalkara at gmail.com
Fri Oct 7 11:35:30 UTC 2005


> If your disc is fully partitioned you need a swap _file_!
> Find a partition you're using for files that has lots of spare room.
> Make the swap file on that partition.
>
> See "man mkswap" and "man swapon". From the former:
>
>        To setup a swap file, it is necessary to create that file  before
ini-
>        tializing it with mkswap , e.g. using a command like
>
>               # dd if=/dev/zero of=swapfile bs=1024 count=65536
>
>        Note  that  a  swap file must not contain any holes (so, using
cp(1) to
>        create the file is not acceptable).
>
> That example makes a 64MB swap file named "swapfile". Then prepare it:
>
> mkswap swapfile
>
> and then start using it:
>
> swapon swapfile
>
> I like to protect the file from accidental damage, too:
>
> chmod 0 swapfile
>
> You can name such a file in /etc/fstab, too, so it will get used on boot.
>
> Cheers,
> --

Hi ...this is what I was exactly looking for....I got it done......thanks
for the help

--Opesh




More information about the redhat-list mailing list