Mailing List Archive

Support open source code!


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

Re: swap partition too small



Tony,

On Wed, 12 Jul 2000, Tony Laszlo wrote:

> Hi folks. 
> 
> I managed to solve many of the early problems 
> I had been having with Debian on this 110M HD 
> notebook. 
> 
> Got a new problem though: in trying to conserve 
> the little hard disk space that I have, I have 
> made the swap partition too small. I know I 
> should probably pay penance and do the install 
> all over again, but am wondering if there is 
> a way to carve out a portion of the hard disk 
> for swap at this stage of the game. Something 
> like a fips that can shrink a Linux partition. 
> No? Just thought I'd ask before reinstalling... 
> 

You can use the mkswap command to turn a file 
on disk into swap. 

First create the file
	dd if=/dev/zero of=swapfile bs=1024 count=65536

then run mkswap(8) on the file to make it into
a swap area, then run swapon(8) to turn on swapping
to the file.

Regards,
Jake


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links