[ale] who is eating my drive

Lightner, Jeff JLightner at water.com
Tue May 31 14:54:15 EDT 2011


Oops - meant to add - if swapoff doesn't do it then you need to comment
out the swap entry in /etc/fstab and reboot to remove it.

 

________________________________

From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
Lightner, Jeff
Sent: Tuesday, May 31, 2011 2:29 PM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] who is eating my drive

 

swapoff is used to disable a swap device according to the man page.  I
haven't used swapoff myself.

 

After you've stopped the swap (or prevented it from coming up) you can
remove it as a swap device from the partitioning (e.g. using fdisk or
parted) and use the space for something else.   The simplest thing would
be to use it to create a new filesystem.   You can extend the root
partition but that takes some planning an effort because you have to
extend the filesystem and since it is root it gets a little more
involved.

 

I have never heard anything that says swap can't be on a primary disk
partition and am pretty sure I've done that in the past.   However,
these days I typically setup only two primary partitions - one for /boot
and one for LVM then I make my filesystems and swap in the LVM volume
group.   Partions have limitations that I don't care for as opposed to
LVM.

 

________________________________

From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
Narahari 'n' Savitha
Sent: Tuesday, May 31, 2011 2:07 PM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] who is eating my drive

 

Hmm.  Makes sense.  But I dont think you can make swap on the primary
parition.  To make swap space you have to create extended and on that
extended you setup up swap.

Thats my understanding may be (and obivously ) it is wrong.

Not sure how to undo the swap space.

I have 8GB of Memory allocated to this VMWare session.

I may not need almost any swap at all.

Can I reclaim all the swap as a regular drive ?  If so how do I do that
?

-Narahari

On Tue, May 31, 2011 at 1:40 PM, Lightner, Jeff <JLightner at water.com>
wrote:

It is showing you made /dev/sda2 your Extended partition of 8 GB then
used up all 8 GB in the sub-partition of the Extended partition as a
SWAP device (/dev/sda5).   (By the way you don't typically use Extended
partition until you run out of primaries - you could have made /dev/sda2
itself the swap device.

 

Type "swapon -s" and you should see this device.

 

________________________________

From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
Narahari 'n' Savitha
Sent: Tuesday, May 31, 2011 1:29 PM
To: Atlanta Linux Enthusiasts


Subject: Re: [ale] who is eating my drive

 

Thanks for all your time.



Here is the output of the fdisk -l command

devusr at devusr-virtual-machine:~$ sudo fdisk -l /dev/sda

Disk /dev/sda: 22.5 GB, 22548578304 bytes
255 heads, 63 sectors/track, 2741 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00075d29

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1698    13630464   83  Linux
/dev/sda2            1698        2742     8386561    5  Extended
/dev/sda5            1698        2742     8386560   82  Linux swap /
Solaris



So what should I be looking here for ?

-Narahari

 

Proud partner. Susan G. Komen for the Cure. 

 

Please consider our environment before printing this e-mail or
attachments. 

----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or
confidential information and is for the sole use of the intended
recipient(s). If you are not the intended recipient, any disclosure,
copying, distribution, or use of the contents of this information is
prohibited and may be unlawful. If you have received this electronic
transmission in error, please reply immediately to the sender that you
have received the message in error, and delete it. Thank you.
----------------------------------


_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20110531/8b6095a4/attachment-0001.html 


More information about the Ale mailing list