The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Filesystems, Disks and Memory
Google UNIX.COM


Filesystems, Disks and Memory Questions involving NAS, SAN, RAID, Robotic Libraries, backups, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Block Size Ruben78 AIX 3 04-28-2008 04:40 PM
block size bache_gowda UNIX for Dummies Questions & Answers 1 05-31-2007 03:21 AM
How to know the OS Block size Dilippatel UNIX for Dummies Questions & Answers 1 07-20-2004 03:23 AM
block size csaunders SUN Solaris 3 05-19-2004 10:35 AM
os block size kburrows Filesystems, Disks and Memory 1 10-10-2002 12:45 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2002
linuxpenguin's Avatar
Registered User
 

Join Date: May 2002
Location: India
Posts: 295
Question 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
__________________
War doesnt determine who is right, it determines who is left
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-19-2002
linuxpenguin's Avatar
Registered User
 

Join Date: May 2002
Location: India
Posts: 295
Exclamation Re: block size

df -v gives the blocks status of the file system. But what i want to know is, how many bytes make one block in a file system. I hope I have clarified my question. Someone, please respond.
__________________
War doesnt determine who is right, it determines who is left
Reply With Quote
  #3 (permalink)  
Old 05-25-2002
Registered User
 

Join Date: May 2002
Posts: 10
block size

defualit block size for a prtition is 8192 bytes

You set this up using the newfs command


jasmine (SCSA & MCSE)
Reply With Quote
  #4 (permalink)  
Old 05-27-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
The above is not true for all filesystems.
ext2, for example (the default on many Linux systems - but not even all of those) is 4096.

What type of system are you using, linuxpenguin?
Reply With Quote
  #5 (permalink)  
Old 05-30-2002
Registered User
 

Join Date: May 2002
Posts: 8
In linux , sfdisk -l gives the block size of the file system.

Regards
Gambhi.
Reply With Quote
  #6 (permalink)  
Old 05-31-2002
linuxpenguin's Avatar
Registered User
 

Join Date: May 2002
Location: India
Posts: 295
Unhappy

I am using red hat linux (kernel 2.0)

i calculated the block size in my system using du and du -k
however what i really want is a command (if there is any) that will display me this block size.

the other work around is by writing a small c program.
however i m only interested to know if there is any such command which directly displays me the block size.

rgds
penguin
__________________
War doesnt determine who is right, it determines who is left
Reply With Quote
Google UNIX.COM
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0