How to delete Swap partition?

Booting, installing, newbie
Post Reply
Message
Author
don922
Posts: 433
Joined: Sat 19 Jan 2008, 07:58
Location: Nong Yai Buah

How to delete Swap partition?

#1 Post by don922 »

I am trying to turn off and delete a swap partition (/hdb7). The partition is formated as linux swap. The free command shows that the partition is not being used.

In GParted the Swapoff command doesn't work apparently there is a bug which sends the command swapoff -v which isn't supported in Puppy. I have tried to use the command swapoff -a /dev/hdb7, but GParted still shows the swap partition with a lock and it cannot be deleted.

Help!
Last edited by don922 on Mon 28 Dec 2009, 14:01, edited 1 time in total.
[color=green][i]Don -- Thailand[/i][/color]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#2 Post by mikeb »

Try
swapoff /dev/hdb7
no -a...that's what I use.
I assume (according to free) there is enough room for the swap to empty into the ram...gparted can use large amounts of it

mike

don922
Posts: 433
Joined: Sat 19 Jan 2008, 07:58
Location: Nong Yai Buah

#3 Post by don922 »

mike: your suggestion worked like a charm! :D

I was confused by the help for the swapoff command as follows:
BusyBox v1.8.2 (2007-11-30 09:20:42 ) multi-call binary

Usage: swapoff [-a] [DEVICE]

Stop swapping virtual memory pages on DEVICE

Options: -a Stop swapping on all swap devices
Thank you for your quick answer. I guess experience beats "help" any time.
[color=green][i]Don -- Thailand[/i][/color]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#4 Post by mikeb »

Oh Good

well that -a caught me out too :)

mike

Post Reply