[lvlug] fsck on swap space...
martin dempsey
lvlug@lvlug.org
Thu, 14 Mar 2002 07:58:16 -0800
> Thats what i was thinking.. but i was looking for a way to parition
> on the fly.. so i could make a new swap..
You can make a new swap file on the fly. While its slightly more
efficent to swap to a partition instead of a file, a file works fine
especially in an emergency or if its inconvienent to partition a
disk. You can add a 256 Meg swap file by typing somthing like:
dd if=/dev/zero of=/path/to/swap_file bs=1M count=256
mkswap /path/to/swap_file
swapon /path/to/swap_file
There is also a swapoff command that will stop swapping on a certain
(or all) devices.
> guess if i have to reboot, ill just use partition magic.. but
> somehow i think that might be bad ( since i don't think you can set
> up what number (hda?) the partition is.. and that might break
> something.. :)
Don't use partition magic. It has a horrible license. I refuse to use
it. Theres a free alternative that runs under linux:
http://www.gnu.org/software/parted/ It won't do NTFS partitions, but
in every other way its equivilant or better.