From: Kyle Anthony York (noesis@ucscb.UCSC.EDU)
Date: 05/09/93


From: noesis@ucscb.UCSC.EDU (Kyle Anthony York)
Subject: Re: Where did my swap-file memory go?
Date: 9 May 1993 15:38:27 GMT


In article <C6n8vA.65y@cs.uiuc.edu> tgao@cs.uiuc.edu (Tong Gao) writes:
>Please help me to get my hard disk space back! I used to have a swap file of
>size 6M. Then I decided that 6M is not enough, so I "rm" the old swap file,
>and add in another 10M swap file. According to my calculation, I should
>have 10-6=4M less hard disk space. However, when I use df to check, I have 10M
...
>Tong
>tgao@cs.uiuc.edu

i'm just taking a stab here, but did you turn-off the swapfile before
resizing it? i think the easy way to turn it off is to comment out the
necessary line from /etc/fstab, reboot, change the swapfile as you described,
uncomment the line in fstab, and reboot again.
  granted, the last reboot is unncessary as all you need to do is run
mkswap followed by swapon.
  by now i assume you have reboot at least once so run "fsck -av" to
recover the orphaned inodes
--kyle