Re: increase swap space without free space in HD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux