How can I delete a Linux swap-partition

Using applications, configuring, problems
Post Reply
Message
Author
r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

How can I delete a Linux swap-partition

#1 Post by r__hughes »

How can I unmount and delete an active Linux swap-partition in pup431?

I/m using a frugal pup431 (grub booted with options for WinXP, pup421 and pup431). All of these coexist on the main hard-drive sda which has 4 partitions :

sda1(ntfs for WinXP)
sda2(fat2) for Win & pup data files
sda3(ext2 for pup431/pup431)
sda4(Linux swap partition).

I've increased my RAM to 2G and the Linux swap partition (sda4) never seems to be used so I would like to delete it; but booting pup431(frugal) then using gparted_0.4.5 always shows sda4 active and locked but with no mount-point and no bytes used.

swapoff -a has no effect.
umount /dev/sda4 gives an error message: invalid argument
umount /mnt/sda4 gives an error message: no such file or directory

gparted always shows the same info for sda4: active and mounted(lock-symbol)
Pdisk shows sda4 but gives no info apart from allocated size.

Is there a way of mounting pup431 with a noswap flag?

Is it safe to delete the swap partition inspite of gparted showing it active? How can I do this because gparted won't let me but would the Pdisk partition-manager let me do it?
--- quad booting Slacko57NPAE, Slacko56NPAE, Slacko55PAE (with OO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 630 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

Code: Select all

swapoff /dev/sda4

r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#3 Post by r__hughes »

Thank you very much - works fine :)
Now how did I miss that??
--- quad booting Slacko57NPAE, Slacko56NPAE, Slacko55PAE (with OO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 630 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.

Post Reply