Re: 200gb hard drive?

2003-11-22 Thread Sergey 'DoubleF' Zaharchenko
On Sat, 22 Nov 2003 13:47:40 -0500 Robert Huff <[EMAIL PROTECTED]> probably wrote:

> 
> Sergey 'DoubleF' Zaharchenko writes:
> 
> >  BTW what's the point in printing 3 numbers that match? If they match,
> >  then one of them is redundant:)
> 
>   And if they don't?
> 

Then they all carry some information. If a+b=c, then you don't have to
print out a,b and c, since c carries no information. But the numbers in
df output aren't supposed to match (because of the reserved space), so
they are all printed.


-- 
DoubleF
Honk if you love peace and quiet.


pgp0.pgp
Description: PGP signature


Re: 200gb hard drive?

2003-11-22 Thread Robert Huff

Sergey 'DoubleF' Zaharchenko writes:

>  BTW what's the point in printing 3 numbers that match? If they match,
>  then one of them is redundant:)

And if they don't?


Robert Huff




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 200gb hard drive?

2003-11-22 Thread Sergey 'DoubleF' Zaharchenko
On Fri, 21 Nov 2003 15:05:51 -0500 Robert Huff <[EMAIL PROTECTED]> probably wrote:

> 
> Sergey 'DoubleF' Zaharchenko writes:
> 
> >  >  A better question for the list: did something change in "df"
> >  > sometime in 5.x?  Because the numbers in the three columns used to
> >  > match (modulo rounding error); if you dipped into the reserve pool
> >  
> >  No, it didn't. 4.8-RELEASE:
> 
>   Now that's interesting.  I jumped from 4.7 to 5.0; wonder if
> the change happened afterwards.

Time to take my 4.4 boot diskette from the shelf.

# df -h
FilesystemSize   Used  Avail Capacity  Mounted on
/dev/md0c 2.3M   2.0M   320K87%/
procfs4.0K   4.0K 0B   100%/proc
/dev/ad1s2a97M45M44M51%/mnt

So no, they didn't add up even in 4.4. I don't think 4.7's df was
something extraordinary.

BTW what's the point in printing 3 numbers that match? If they match,
then one of them is redundant:)

> 
>   Robert Huff
> 
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 


-- 
DoubleF
"Biology is the only science in which multiplication means the same
thing as division."



pgp0.pgp
Description: PGP signature


Re: 200gb hard drive?

2003-11-21 Thread Robert Huff

Sergey 'DoubleF' Zaharchenko writes:

>  >A better question for the list: did something change in "df"
>  > sometime in 5.x?  Because the numbers in the three columns used to
>  > match (modulo rounding error); if you dipped into the reserve pool
>  
>  No, it didn't. 4.8-RELEASE:

Now that's interesting.  I jumped from 4.7 to 5.0; wonder if
the change happened afterwards.


Robert Huff


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 200gb hard drive?

2003-11-21 Thread Robert Huff

Omer Faruk Sen writes:

>  Thanks for all answers. That space problem was bothering me all
>  the times and I have learnt the reason for space loss. By the way
>  I admit that I have to make more search on google before sending
>  that to here.
>  
>  But it can be very nice that this information to be added on
>  handbook. Or is it in handbook already?

I think it's in the FAQ.
A better question for the list: did something change in "df"
sometime in 5.x?  Because the numbers in the three columns used to
match (modulo rounding error); if you dipped into the reserve pool
it showed as negative free space available - a _very_ obvious visual
marker something was wrong.
(I'd been wondering why I get this:

huff@> df -h 
FilesystemSize   Used  Avail Capacity  Mounted on
/dev/da0s1a   484M   111M   334M25%/
devfs 1.0K   1.0K 0B   100%/dev
/dev/da1s1d44G19G22G47%/usr
/dev/da0s1d   989M38M   872M 4%/var

and wondering whether it foretold some larger problem.
)


Robert Huff


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 200gb hard drive?

2003-11-20 Thread Omer Faruk Sen
Thanks for all answers. That space problem was bothering me all the times 
and I have learnt the reason for space loss. By the way I admit that I have 
to make more search on google before sending that to here. 

But it can be very nice that this information to be added on handbook. Or is 
it in handbook already? 



Frank Knobbe writes: 

On Thu, 2003-11-20 at 14:56, Derrick Ryalls wrote:
When manufacturers talk about drive size, they use base 10.  When computer
report drive size, they use base 2.  So, if you divide 200,000,000 bytes by
( 1024 * 1024 ), you get roughly 190gig in binary, so off the bat you lose
10gigs of space due to marketspeak translation.
That's not always the case. I have seen disk manufacturers use something
like base 20 :)  In other words, they advertise a 160 GB drive which
only holds 120 GB. I hope they get sued for this crap talk about
deceptive marketing...geesh... 

Frank 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: 200gb hard drive?

2003-11-20 Thread Frank Knobbe
On Thu, 2003-11-20 at 14:56, Derrick Ryalls wrote:
> When manufacturers talk about drive size, they use base 10.  When computer
> report drive size, they use base 2.  So, if you divide 200,000,000 bytes by
> ( 1024 * 1024 ), you get roughly 190gig in binary, so off the bat you lose
> 10gigs of space due to marketspeak translation.

That's not always the case. I have seen disk manufacturers use something
like base 20 :)  In other words, they advertise a 160 GB drive which
only holds 120 GB. I hope they get sued for this crap talk about
deceptive marketing...geesh...

Frank



signature.asc
Description: This is a digitally signed message part


Re: 200gb hard drive?

2003-11-20 Thread Jerry McAllister
> 
> Omer, this is because a percentage of your disk space is reserved
> automatically by FreeBSD. I believe that it automatically reserves 8% of
> your disk space. You can adjust this by using 'tunefs'. Try 'man tunefs' to
> find out how to use tunefs.

Partly true for the second part of the question - eg why it says
there is 183G but 169G is reported as 0% free.

But, the first part is because manufactures advertise their disk
sizes in decimal where a GBYTE - 1,000,000,000 bytes, but the
system uses more common convention where the most convenient
binary equivalent is used to report sizes.
In this, 1 KByte = 1024 bytes, 1 MByte = 1,048,576 bytes
and 1 GByte = 1,073,741,824 bytes.

So, the manufacturers advertising is only 93.1323 % of what you think
you will be getting according to the way the system reports it.
For 200 GBytes, that amounts to 186.26 GBytes.   That gets a little
further reduced bye "formatting" (fdisk, disklabel, newfs work) leaving
about 183 GBytes of disk if reported according to the more common
binary equivalent method.

Then the system reserves some for various real and historical reasons
when it interprets how much a non-root account can write to disk.
I think the other responder is correct that the default is 8.0 %.
So, take out 8 % from 183 GBytes and you get about 169 GBytes.

It is all there if you know the system and the arithmetic.

The biggest confusion comes in the manufacturers reporting
in decimal because it makes the disks they are selling sound
bigger.   Of course, there are some who swear that is the correct
way to define disk size.  But, I think that since the normal usage
is by nearest binary equivalent K-s, M-s and G-s, it is somewhat
disengenuous for manufacturers to insist on doing it by decimal.

This has been discussed so many times in the Email list, that if
one does a little searching, it should be impossible to avoid
finding this type of information.   So, do a little searching.
In this case Google and pretty much any search engine out there
can be your friends.

jerry 

> David van Geyn
> - Original Message -
> From: "Omer Faruk Sen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 20, 2003 3:23 PM
> Subject: 200gb hard drive?
> 
> > Hi
> >
> > I have installed a new hard drive to my FreeBSD system. Hard drive is
> 200gb
> > but
> > when I fdisk and disklabel the output of "df -h" is something like that:
> >
> > /dev/ad1s1e   183G   2.0K   169G 0%/disk2
> >
> > Here as you can see I can only use 169GB of it. Bios has seen my harddrive
> > as 190GB also dmesg output is like that:
> >
> > ad1: 190782MB  [387621/16/63] at ata0-slave UDMA100
> >
> > My question is what happened to 190-169 gb or maybe after some filesystem
> > information reservation what happened to 183-169 gb?
> >
> > By the way I have used default newfs parameters -b 16384 -f 2048. I don't
> > know if that helps...
> >
> > REGARDS...
> >
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: 200gb hard drive?

2003-11-20 Thread Derrick Ryalls
> I have installed a new hard drive to my FreeBSD system. Hard 
> drive is 200gb 
> but
> when I fdisk and disklabel the output of "df -h" is something 
> like that: 
> 
> /dev/ad1s1e   183G   2.0K   169G 0%/disk2 
> 
> Here as you can see I can only use 169GB of it. Bios has seen 
> my harddrive 
> as 190GB also dmesg output is like that: 
> 
> ad1: 190782MB  [387621/16/63] at 
> ata0-slave UDMA100 
> 
> My question is what happened to 190-169 gb or maybe after 
> some filesystem 
> information reservation what happened to 183-169 gb? 
> 
> By the way I have used default newfs parameters -b 16384 -f 
> 2048. I don't 
> know if that helps... 
> 

When manufacturers talk about drive size, they use base 10.  When computer
report drive size, they use base 2.  So, if you divide 200,000,000 bytes by
( 1024 * 1024 ), you get roughly 190gig in binary, so off the bat you lose
10gigs of space due to marketspeak translation.

FreeBSD reserves 8% for something (I forget what), so that brings it down to
174gig.  As for the last 5gig, dunno, sorry.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 200gb hard drive?

2003-11-20 Thread Jason
Omer Faruk Sen wrote:

Hi
I have installed a new hard drive to my FreeBSD system. Hard drive is 
200gb but
when I fdisk and disklabel the output of "df -h" is something like that:
/dev/ad1s1e   183G   2.0K   169G 0%/disk2
Here as you can see I can only use 169GB of it. Bios has seen my 
harddrive as 190GB also dmesg output is like that:
ad1: 190782MB  [387621/16/63] at ata0-slave UDMA100
My question is what happened to 190-169 gb or maybe after some 
filesystem information reservation what happened to 183-169 gb?
By the way I have used default newfs parameters -b 16384 -f 2048. I 
don't know if that helps...
REGARDS...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"

Wd uses an old system to measure drive capicity.  For a wd drive 200gb= 
200,000,000,000 bytes, but to any person fimilar with binary and decimal 
numbers there 200gb=186.26gb~2^37.54bytes.  You also have to have a file 
system, with takes up more room with more space to map.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 200gb hard drive?

2003-11-20 Thread David van Geyn
Omer, this is because a percentage of your disk space is reserved
automatically by FreeBSD. I believe that it automatically reserves 8% of
your disk space. You can adjust this by using 'tunefs'. Try 'man tunefs' to
find out how to use tunefs.

David van Geyn

- Original Message -
From: "Omer Faruk Sen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 20, 2003 3:23 PM
Subject: 200gb hard drive?


> Hi
>
> I have installed a new hard drive to my FreeBSD system. Hard drive is
200gb
> but
> when I fdisk and disklabel the output of "df -h" is something like that:
>
> /dev/ad1s1e   183G   2.0K   169G 0%/disk2
>
> Here as you can see I can only use 169GB of it. Bios has seen my harddrive
> as 190GB also dmesg output is like that:
>
> ad1: 190782MB  [387621/16/63] at ata0-slave UDMA100
>
> My question is what happened to 190-169 gb or maybe after some filesystem
> information reservation what happened to 183-169 gb?
>
> By the way I have used default newfs parameters -b 16384 -f 2048. I don't
> know if that helps...
>
> REGARDS...
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"