On Thu, Jul 05, 2001 at 09:15:43PM -0400, [EMAIL PROTECTED] wrote:
> fdisk shows that still have a partition with ID82 and identified as
> swap. 

Look at /etc/fstab for swap entries.

> So which swap am I using? How can I make the swap partition the holder

swapon -s

> of the swap file instead of /usr, and how do I get rid of the /usr/SWAP
> without causing a disaster?

Fix up your /etc/fstab so that only the partion is listed for swap.

Then do a swapon -a.  This will enable the swap (and make sure your fstab
entry is correct).

swapon -s 

should show it in use:

thune:~# swapon -s
Filename                        Type            Size    Used    Priority
/dev/hda2                       partition       132040  16216   1
/dev/hde1                       partition       131504  16364   1
/dev/hdf1                       partition       131504  16336   1
/dev/hdg1                       partition       131504  16364   1
/dev/hdh1                       partition       131504  16308   1

Then turn off the swapfile with swapoff /path/to/swapfile:

thune:~# swapoff /dev/hdh1

Then verify the results:

thune:~# swapon -s
Filename                        Type            Size    Used    Priority
/dev/hda2                       partition       132040  16212   1
/dev/hde1                       partition       131504  16364   1
/dev/hdf1                       partition       131504  16332   1
/dev/hdg1                       partition       131504  16364   1


Of course, before doing any of this, read and understand the swapon/swapoff
man page.

mrc
-- 
     Mike Castle      [EMAIL PROTECTED]      www.netcom.com/~dalgoda/
    We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to