<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Oops &#8211; meant to add &#8211; if
swapoff doesn&#8217;t do it then you need to comment out the swap entry in
/etc/fstab and reboot to remove it.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
ale-bounces@ale.org [mailto:ale-bounces@ale.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b><st1:PersonName w:st="on">Lightner, Jeff</st1:PersonName><br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, May 31, 2011 2:29
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Atlanta
 Linux Enthusiasts</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [ale] who is eating
my drive</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>swapoff is used to disable a swap device
according to the man page.&nbsp; I haven&#8217;t used swapoff myself.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>After you&#8217;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.&nbsp;&nbsp;
The simplest thing would be to use it to create a new filesystem.&nbsp;&nbsp;
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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I have never heard anything that says swap
can&#8217;t be on a primary disk partition and am pretty sure I&#8217;ve done
that in the past.&nbsp;&nbsp; However, these days I typically setup only two
primary partitions &#8211; one for /boot and one for LVM then I make my
filesystems and swap in the LVM volume group.&nbsp;&nbsp; Partions have
limitations that I don&#8217;t care for as opposed to LVM.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
ale-bounces@ale.org [mailto:ale-bounces@ale.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Narahari 'n' Savitha<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, May 31, 2011 2:07
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Atlanta
 Linux Enthusiasts</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [ale] who is eating
my drive</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hmm.&nbsp; Makes
sense.&nbsp; But I dont think you can make swap on the primary parition.&nbsp;
To make swap space you have to create extended and on that extended you setup
up swap.<br>
<br>
Thats my understanding may be (and obivously ) it is wrong.<br>
<br>
Not sure how to undo the swap space.<br>
<br>
I have 8GB of Memory allocated to this VMWare session.<br>
<br>
I may not need almost any swap at all.<br>
<br>
Can I reclaim all the swap as a regular drive ?&nbsp; If so how do I do that ?<br>
<br>
-Narahari<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Tue, May 31, 2011 at 1:40 PM, <st1:PersonName w:st="on">Lightner,
 Jeff</st1:PersonName> &lt;<a href="mailto:JLightner@water.com">JLightner@water.com</a>&gt;
wrote:<o:p></o:p></span></font></p>

<div link=blue vlink=purple>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>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).&nbsp;&nbsp; (By the way you don&#8217;t typically use
Extended partition until you run out of primaries &#8211; you could have made
/dev/sda2 itself the swap device.</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Type &#8220;swapon &#8211;s&#8221; and you should see this device.</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>&nbsp;</span></font><o:p></o:p></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;font-weight:
bold'>From:</span></font></b><font size=2 face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma'> <a href="mailto:ale-bounces@ale.org" target="_blank">ale-bounces@ale.org</a>
[mailto:<a href="mailto:ale-bounces@ale.org" target="_blank">ale-bounces@ale.org</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Narahari 'n' Savitha<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, May 31, 2011 1:29
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Atlanta
 Linux Enthusiasts</st1:PersonName></span></font><o:p></o:p></p>

<div>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [ale] who is eating
my drive</span></font><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>Thanks for all
your time.<o:p></o:p></span></font></p>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
Here is the output of the fdisk -l command<br>
<br>
devusr@devusr-virtual-machine:~$ sudo fdisk -l /dev/sda<br>
<br>
Disk /dev/sda: 22.5 GB, 22548578304 bytes<br>
255 heads, 63 sectors/track, 2741 cylinders<br>
Units = cylinders of 16065 * 512 = 8225280 bytes<br>
Sector size (logical/physical): 512 bytes / 512 bytes<br>
I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
Disk identifier: 0x00075d29<br>
<br>
&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks&nbsp;&nbsp; Id&nbsp; System<br>
/dev/sda1&nbsp;&nbsp;
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1698&nbsp;&nbsp;&nbsp;
13630464&nbsp;&nbsp; 83&nbsp; Linux<br>
/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1698&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2742&nbsp;&nbsp;&nbsp;&nbsp;
8386561&nbsp;&nbsp;&nbsp; 5&nbsp; Extended<br>
/dev/sda5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1698&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2742&nbsp;&nbsp;&nbsp;&nbsp;
8386560&nbsp;&nbsp; 82&nbsp; Linux swap / Solaris<br>
<br>
<br>
<br>
So what should I be looking here for ?<br>
<br>
-Narahari<o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Proud partner. Susan G. Komen for the Cure.</span></font> <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><i><font size=1 color=green face=Arial><span
style='font-size:7.5pt;font-family:Arial;color:green;font-style:italic'>Please
consider our environment before printing this e-mail or attachments.</span></font></i>
<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>----------------------------------<br>
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.<br>
----------------------------------</span></font><font size=1 face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

</div>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>