[ltp] Wasted Free Space

Alex Bell linux-thinkpad@www.bm-soft.com
Mon, 27 Mar 2000 21:31:58 -0500


On Mon, 27 Mar 2000 14:30:48 -0500, George Staikos wrote:

Snipped

>  Yes.  it's safest to do this kind of thing in single user mode, but if
>you're not familiar with this, it still works in multiuser mode (i've done
>it many times).  Run swapoff on the swap device, run fdisk and delete the
>partition, recreating a new one of the proper size (assuming the swap and the
>freespace are adjacent as you said they are).  Toggle it as Linux Swap (type
>82 I think?  look it up in the list....).  then take note of the new device
>name (ie /dev/hda6 or something like that).  Exit fdisk, saving the changes. 
>You _may_ have to reboot at this point.  If you do, just log in as root and
>continue (it will tell you if you have to when you exit fdisk - saying
>something like "error writing partition").  Now run mkswap /dev/hda?
>(whatever hda device your swap partition is).  Then swapon /dev/hda?.  That's
>it! 

Snipped

Many thanks, George, it worked like a charm!



----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html