cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 298 Views

Sectors and Blocks

In a Linux system, on a storage device, is a sector the same as a block?

Trevor "Red Hat Evangelist" Chandler
Labels (2)
3 Replies
rhnoname
Flight Engineer Flight Engineer
Flight Engineer
  • 268 Views

They are not the same thing.

Shortly:

A Block is a logical unit of data storage managed by the OS and the file system. The block size refers to the allocation size the file system uses. Usually the size is referenced as 512, 1024, 2048, 4096.

A Sector is the smallest physical unit on a hard disk where data is stored. It has a fixed 512 byte size, but a few drives have 4096 bytes sectors.

Best Regards
Chetan_Tiwary_
Community Manager
Community Manager
  • 246 Views

A conceptual tsar bomba indeed! Here is my understanding :

A sector refers to a specific physical area on a disk, while a block is a more general term that can refer to a small unit of data. In the context of file systems, a block is an abstraction that represents, may be,  a group of sectors. Many file systems are designed to work with block devices, which are storage devices that can be accessed in blocks.

Think of blocks as the way the operating system organizes data, while sectors are the actual physical divisions on the disk where data is stored.

Sectors were a way of addressing data on older hard drives, but they're no longer used in modern drives. Today, we use a system called LBA (Logical Block Addressing) to locate data on a drive. While sectors aren't used directly anymore, the operating system can still group multiple sectors together into a single logical block to improve efficiency.

Trevor
Starfighter Starfighter
Starfighter
  • 232 Views

It's these types of responses that motivate/inspire me to ask questions!!!

 

tsar bomba - that also moved the needle on my knowledgebase

 

Trevor "Red Hat Evangelist" Chandler
Join the discussion
You must log in to join this conversation.