Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 May 2013, 19:59
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to delete locked swap partition? [solved]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
nubc


Joined: 23 Jan 2007
Posts: 739
Location: USA

PostPosted: 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
View user's profile Send private message 
Lookinglass360

Joined: 22 May 2009
Posts: 79
Location: Largo, Florida USA

PostPosted: 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!
2012-04-20_18-39-18-thumb.jpg
 Description   
 Filesize   60.51 KB
 Viewed   352 Time(s)

2012-04-20_18-39-18-thumb.jpg

Back to top
View user's profile Send private message 
rhadon


Joined: 27 Mar 2008
Posts: 1228
Location: Germany

PostPosted: 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. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
nubc


Joined: 23 Jan 2007
Posts: 739
Location: USA

PostPosted: 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
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 9389
Location: SwedenEurope

PostPosted: 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
View user's profile Send private message 
Monsie


Joined: 01 Dec 2011
Posts: 464
Location: Kamloops BC Canada

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0559s ][ Queries: 13 (0.0104s) ][ GZIP on ]