1833873 Members
1550 Online
110063 Solutions
New Discussion

swap off?

 
Ian Killer_1
Regular Advisor

swap off?

Is there any way to turn off swap on a filesystem without rebooting. I have a fs mounted and failed to "swapon" it properly because of a bad /etc/fstab entry. It doesn't appear in swapinfo, yet the filesystem won't unmount (device busy). Fuser -cu doesn't reveal anything.
Where ever the gypsies rome.
4 REPLIES 4
steven Burgess_2
Honored Contributor

Re: swap off?

Hi

Nope, the only way to remove swap is by removing the entry in fstab and rebooting the machine

Regards

Steve
take your time and think things through
PIYUSH D. PATEL
Honored Contributor

Re: swap off?

Hi,

The is no way......you will have to remove the entry from /etc/fstab and reboot the system.

Piyush
James R. Ferguson
Acclaimed Contributor

Re: swap off?

Hi Ian:

That's the downside. To turn on swap, no reboot is required. To turn it off, however, you must remove the entry from '/etc/fstab' and *reboot*.

Regards!

...JRF...
Ian Killer_1
Regular Advisor

Re: swap off?

THanks all.
Where ever the gypsies rome.