block size | Unix Linux Forums | Filesystems, Disks and Memory

  Go Back    


Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

block size

Filesystems, Disks and Memory


Tags
linux

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-18-2002
linuxpenguin's Avatar
linuxpenguin linuxpenguin is offline Forum Advisor  
Registered User
 
Join Date: May 2002
Last Activity: 28 March 2014, 4:09 PM EDT
Location: India
Posts: 350
Thanks: 0
Thanked 5 Times in 5 Posts
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
Sponsored Links
    #2  
Old 05-19-2002
linuxpenguin's Avatar
linuxpenguin linuxpenguin is offline Forum Advisor  
Registered User
 
Join Date: May 2002
Last Activity: 28 March 2014, 4:09 PM EDT
Location: India
Posts: 350
Thanks: 0
Thanked 5 Times in 5 Posts
Error 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.
Sponsored Links
    #3  
Old 05-25-2002
jasmine_uk jasmine_uk is offline
Registered User
 
Join Date: May 2002
Last Activity: 6 June 2002, 8:23 AM EDT
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
block size

defualit block size for a prtition is 8192 bytes

You set this up using the newfs command


jasmine (SCSA & MCSE)
    #4  
Old 05-28-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
 
Join Date: Jul 2001
Last Activity: 16 June 2011, 4:50 PM EDT
Location: Portland, OR, USA
Posts: 1,626
Thanks: 2
Thanked 15 Times in 13 Posts
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?
Sponsored Links
    #5  
Old 05-30-2002
gambhi_s gambhi_s is offline
Registered User
 
Join Date: May 2002
Last Activity: 20 April 2004, 5:07 AM EDT
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
In linux , sfdisk -l gives the block size of the file system.

Regards
Gambhi.
Sponsored Links
    #6  
Old 06-01-2002
linuxpenguin's Avatar
linuxpenguin linuxpenguin is offline Forum Advisor  
Registered User
 
Join Date: May 2002
Last Activity: 28 March 2014, 4:09 PM EDT
Location: India
Posts: 350
Thanks: 0
Thanked 5 Times in 5 Posts
Data

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
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do I set the block size in ZFS? sqa777 Solaris 1 01-07-2009 03:47 AM
Block Size Ruben78 AIX 3 04-28-2008 08:40 PM
How to know the OS Block size Dilippatel UNIX for Dummies Questions & Answers 1 07-20-2004 07:23 AM
block size csaunders Solaris 3 05-19-2004 02:35 PM
os block size kburrows Filesystems, Disks and Memory 1 10-10-2002 04:45 PM



All times are GMT -4. The time now is 08:54 AM.