From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,ecb9bf0a3f8bcbad X-Google-Attributes: gidf72b0,public X-Google-Thread: 1012a6,ecb9bf0a3f8bcbad X-Google-Attributes: gid1012a6,public X-Google-Thread: fb0d8,ecb9bf0a3f8bcbad X-Google-Attributes: gidfb0d8,public X-Google-Thread: 1020c6,ecb9bf0a3f8bcbad X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,ecb9bf0a3f8bcbad X-Google-Attributes: gidfee84,public X-Google-Thread: 10650a,ecb9bf0a3f8bcbad X-Google-Attributes: gid10650a,public 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 Message-ID: <6c9tc7$p1r@Zeus.teknon.de>#1/1 X-Deja-AN: 325805934 Distribution: world Sender: bt@Gaia (Volker Borchert) References: <6c9h6c$nek@news.us.landisstaefa.com> <34E80666.293D@slip.net> Organization: INSIDERS TEKNON GmbH, Mainz Newsgroups: comp.unix.admin,comp.unix.internals,comp.unix.large,comp.unix.misc,comp.unix.osf.osf1,comp.unix.shell In article <34E80666.293D@slip.net>, Coburn Watson 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 "I'm a mechanic, not a doctor." Volker Borchert