Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: bt@Gaia.teknon.de (Volker Borchert)
Subject: Re: How can I figure out what my UNIX disk block size is in bytes
Date: 1998/02/16	[thread overview]
Message-ID: <6c9tc7$p1r@Zeus.teknon.de> (raw)
In-Reply-To: 34E80666.293D@slip.net


In article <34E80666.293D@slip.net>, Coburn Watson <cpw@slip.net> writes:
|> If you're not using raw devices, do a 'df -k' on the system of interest, 
|> this will give the you total kbytes of each filesystem, then run 'df' 
|> without the 'k' option to get the total number of blocks on each 
|> filesystem.  Do some basic division and you are done.  I'm not familiar 
|> with DEC UNIX, but it should work.  Hope that helps.

Hmmm - depends on what you call a block. SunOS 4.1.x, for example,
uses 512 byte physical blocks, but usually 8192 byte logical blocks
and 1024 byte fragments unless you specify other values to newfs.

Other Unices might do likewise.

Besides, said SunOS 4.1.x (and probably other BSD derived Unices)
have df's which always count kbytes. I am too not familiar with DEC
Unix, so your mileage may vary.

	vb

-- 

"I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed>
"I'm a mechanic, not a doctor." Volker Borchert  <bt@teknon.de>



  reply	other threads:[~1998-02-16  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-16  5:00 How can I figure out what my UNIX disk block size is in bytes Jeff Shervey
1998-02-16  5:00 ` Coburn Watson
1998-02-16  5:00   ` Volker Borchert [this message]
1998-02-18  5:00 ` Dr. Strangelove
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox