how to find default OS block size?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users how to find default OS block size?
Prev   Next
# 1  
Old 07-29-2008
how to find default OS block size?

Hi

Can someone please guide me on how to get the default block size for
all unix flavors.
As per my investigation its 512 for all unix flavours other than HP for which it is 1024.However I am not sure on this.
I even tried the df ommand but utt gives the output w.r.t file system created but I need the OS block size.

It would be great if some one could guide me on this.

thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

About Block Size and Fragment Size

Accordingly a lot of manuals - if you have block size 8KB and trying to write a 1KB file to the block, as result you waste 7KB of the block space. But recently I noticed about Fragments of File Block. In same case if you have File Block 8KB and Fragment size 1KB - you can save your block space,... (6 Replies)
Discussion started by: jess_t03
6 Replies

2. Red Hat

O/s block size

Hi Guys, I am running Linux 2.6.18-164.el x86_64 how do i check the block size? Thanks in advance... (1 Reply)
Discussion started by: Phuti
1 Replies

3. UNIX for Advanced & Expert Users

Physical disk IO size smaller than fragment block filesystem size ?

Hello, in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Discussion started by: rarino2
4 Replies

4. UNIX for Dummies Questions & Answers

find block size of ocfs2 file system

please some one help me to find the block size of ocfs2 file system in rehat linux 4 (4 Replies)
Discussion started by: robo
4 Replies

5. Shell Programming and Scripting

find with file size and show the size

Hi All... is the below command be modified in sucha way that i can get the file size along with the name and path of the file the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also.. find / -name "*.*" -size +100000k ... (3 Replies)
Discussion started by: rpraharaj84
3 Replies

6. AIX

Block Size

Hi, I try to change the block size from 512 to 0, but it send this message: 0514-068 Cause not know Can someone help me whith this? (3 Replies)
Discussion started by: Ruben78
3 Replies

7. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

8. AIX

How can I find the filesystem block size?

How can I find the filesystem block size in AIX? I need to check if it is the same as my DB block size. (4 Replies)
Discussion started by: progressdll
4 Replies

9. Solaris

block size

how do you determine block size for a file system? In solaris 5.8 (3 Replies)
Discussion started by: csaunders
3 Replies

10. Filesystems, Disks and Memory

block size

Hi, Somehow i have forgotten a comand that displays me the block size of the unix filesystem. Can someone letme know this command regards penguin (5 Replies)
Discussion started by: linuxpenguin
5 Replies
Login or Register to Ask a Question
GETBSIZE(3)						   BSD Library Functions Manual 					       GETBSIZE(3)

NAME
getbsize -- get user block size LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <stdlib.h> char * getbsize(int *headerlenp, long *blocksizep); DESCRIPTION
The getbsize function determines the user's preferred block size based on the value of the ``BLOCKSIZE'' environment variable; see environ(7) for details on its use and format. The getbsize function returns a pointer to a NUL terminated string describing the block size, something like ``1K-blocks''. If the headerlenp parameter is not NULL the memory referenced by headerlenp is filled in with the length of the string (not including the terminat- ing NUL). If the blocksizep parameter is not NULL the memory referenced by blocksizep is filled in with block size, in bytes. If the user's block size is unreasonable, a warning message is written to standard error and the returned information reflects a block size of 512 bytes. SEE ALSO
df(1), du(1), ls(1), systat(1), environ(7) HISTORY
The getbsize function first appeared in 4.4BSD. BSD
May 30, 2003 BSD