[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ext3-users
Subject:    Compute the real total size of a partition formated in EXT3
From:       Stephane Cerveau <scerveau () awox ! com>
Date:       2011-02-07 14:45:17
Message-ID: B670FA1DB6CA6E4A945001BA08E200CE4D5B966876 () TENERIFE ! awox ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Dear All,



In order to have a real percentage of freespace for a user interface, I'm t=
rying to compute the size available on a 4GB USB key formatted in Ext3. Ind=
eed after format, when I ask df to give a summary of size, it tells that th=
ere is 75MB already used.

I would like to know the meaning of this 75MB ( is it the journal??) and es=
pecially how I can compute this when I want, whithout parsing the partition=
 and the size of the file(s).

/dev/sda1            3.7G       71.5MB                3.4G 2% /mnt/internal



Best regards.



St=E9phane Cerveau
Software Engineer

scerveau@awox.com<mailto:scerveau@awox.com>

Phone: +33 4 99 53 27 39


93, Pierre Duhem
34000 Montpellier
FRANCE
Phone: +33 4 67 47 10 00
Fax:      +33 4 67 47 10 15

cid:069332510@17112008-1528




[Attachment #5 (text/html)]

<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:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (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]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Century Gothic";
	panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear All,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">In order to have a real percentage of freespace for a user \
interface, I&#8217;m trying to compute the size available on a 4GB USB key formatted \
in Ext3. Indeed after format, when I ask <b><i>df</i></b> to give a summary of size, \
it tells that there is 75MB already used.<o:p></o:p></p> <p class="MsoNormal">I would \
like to know the meaning of this 75MB ( is it the journal??) and especially how I can \
compute this when I want, whithout parsing the partition and the size of the \
file(s).<o:p></o:p></p> <p class="MsoNormal">/dev/sda1 \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3.7G \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 71.5MB \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
3.4G 2% /mnt/internal&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Best regards.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><b>Stéphane Cerveau</b><span \
style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;"><br> Software Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;"><a href="mailto:scerveau@awox.com"><span \
lang="FR">scerveau@awox.com</span></a></span><span lang="FR" \
style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;">Phone: </span><span lang="FR" \
style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;">&#43;33 4 99 53 27 39</span><span lang="FR" \
style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;"><br> 93, Pierre Duhem<br>
34000 Montpellier<br>
</span><span lang="FR" style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;">FRANCE</span><span lang="FR" \
style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;"><br> </span><span lang="FR" \
style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;">Phone: &#43;33 4 67 47 10 00 </span><span \
lang="FR" style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;"><br> </span><span lang="FR" \
style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;">Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#43;33 4 67 \
47 10 15</span><span lang="FR" style="font-size:10.0pt;font-family:&quot;Century \
Gothic&quot;,&quot;sans-serif&quot;"><br> </span><span lang="FR"><br>
</span><img border="0" width="384" height="127" id="Picture_x0020_1" \
src="cid:image001.jpg@01CBC6DC.F7368040" alt="cid:069332510@17112008-1528"><span \
lang="FR"><o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="FR"><o:p>&nbsp;</o:p></span></p> </div>
<br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus signature database \
5853 (20110207) __________<br> <br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a href="http://www.eset.com">http://www.eset.com</a><br>
</body>
</html>


["image001.jpg" (image/jpeg)]

_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
--===============2979370985918873154==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic