| Author |
Message |
nubc

Joined: 23 Jan 2007 Posts: 739 Location: USA
|
Posted: Fri 20 Apr 2012, 17:55 Post subject:
How to delete locked swap partition? [solved] Subject description: when pfix=ram doesn't unlock the partition |
|
A long while ago, I set up a Linux box with two partitions and swap. For some reason the swap partition is embedded inside an extended partition of the same approximate size. That extended partition is labeled sda2, and the swap partition is labeled sda5. The second partition is not really a formal partition, just blank space covering the last half of the 80 GB hard drive. When I run Wary 5.2 as live CD with the pfix=ram boot option, GParted shows both the swap partition and the extended container partition to be locked. So then, what are my options? I would rather not have to wipe (zero) this drive because the only quick wipe is from floppy, and this computer does not have a floppy drive. So then I am guessing that I must delete this partition from command line. I did a little research and came up with the following procedure using the fdisk command.
http://www.cyberciti.biz/faq/linux-how-to-delete-a-partition-with-fdisk-command/
Any other suggestions on how to proceed?
Last edited by nubc on Sat 21 Apr 2012, 07:30; edited 1 time in total
|
|
Back to top
|
|
 |
Lookinglass360
Joined: 22 May 2009 Posts: 79 Location: Largo, Florida USA
|
Posted: Fri 20 Apr 2012, 18:48 Post subject:
How to delete locked swap partition? Subject description: wh |
|
Hi nubc
This has worked for me,then delete.
Good luck!
| Description |
|
| Filesize |
60.51 KB |
| Viewed |
352 Time(s) |

|
|
|
Back to top
|
|
 |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: Sat 21 Apr 2012, 02:39 Post subject:
|
|
Also from terminal you can use swapoff -a.
Your save file has nothing to do with swap, so pfix=ram is useless in this case.
HTH
Rolf
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
|
|
Back to top
|
|
 |
nubc

Joined: 23 Jan 2007 Posts: 739 Location: USA
|
Posted: Sat 21 Apr 2012, 07:33 Post subject:
|
|
In my version of GParted, swapoff was not available from the 'Partition' menu. Instead, one had to right click the partition itself, as listed under the graphic representation of the drive. I deleted the embedded swap partition first (sda5), and then the extended container partition (sda2).
Thanks for the tips.
Last edited by nubc on Mon 11 Mar 2013, 15:14; edited 1 time in total
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9389 Location: SwedenEurope
|
Posted: Sat 21 Apr 2012, 07:44 Post subject:
|
|
Thanks for the thread. I wanted to know these things too.
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
Monsie

Joined: 01 Dec 2011 Posts: 464 Location: Kamloops BC Canada
|
Posted: Sat 21 Apr 2012, 21:57 Post subject:
How to delete locked swap partition? |
|
For the record and just to clarify:
If you run Gparted within Wary, select the swap partition first, then click on "Partition" in Gparted and you will find that the "swapoff" feature will show up in the menu. If you do not select the swap partition first, then "swapoff" will not show up in the menu... tested and confirmed on my Wary desktop.
Monsie
_________________ My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
|
|
Back to top
|
|
 |
|