Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I read that low level formatting is done before you even receive the disk. This determines the block size. It also says that block sizes are fixed.

Are really not allowed to change the blocks size in our file system. How does this work. I can't find an answer.

***Also what does logical block addressing have to do with this?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Block size is rather loaded term, which could mean a number of things:

  1. Smallest addressible unit of data on a hard disk. Also called a sector. Until recently, all hard drives had sector size of 512 bytes. Some current drives have a sector size of 4096 bytes. This parameter is an inherent feature of a drive's hardware and firmware, and cannot be changed.

  2. Smallest addressible unit of data in a filesystem. Also called a cluster. A cluster contains a whole number of disk sectors. The exact size of a cluster is specified during the filesystem creation, e.g. "formatting". Different filesystems support different cluster sizes, however cluster sizes from 4KB to 64KB are most common.

    Usually, the default cluster size is the most sensible setting, as the software selects value that is the best trade-off for general filesystem use, taking into an account the size of the filesystem you create.

In conclusion, you can change the cluster size when you reformat your disk (create a new filesystem, wiping everything that was there before), but this is a high-level operation that does not change the sector size which is fixed.

Logical block addressing (LBA)

LBA has nothing to do with this. Older drives used only cylinder-head-sector addressing scheme (CHS). All current drives use just one big number to address sectors on disk, and drive's firmware does the translation of that number to access the needed sector. Then numbers reported by fdisk and similar utilities are "virtual". Your disk does not really have 256 heads, etc.

Low-level formatting

Low-level formatting is a process of dividing disk tracks into sectors, writing service data, marking bad blocks as such and remapping their contents into a different place on a disk, creating calibration tables, etc. All this activity is done while the drive is still in the factory. This applies to modern drives, which have an integrated disk controller.

Most of the service data on disk is accessible to drive's controller only, some is exposed via SMART etc.

Of course, you can read the zeros that the low-level format wrote all over the disk :-)

share|improve this answer
    
Awesome, thank you that is very clear :-) –  rubixibuc Dec 13 '11 at 1:04
    
do they still need to have low level formatting done to them? –  rubixibuc Dec 13 '11 at 1:05
    
what exactly is low level formatting? –  rubixibuc Dec 13 '11 at 1:05
    
@rubixibuc: No. You actually cannot low-level format a modern hard disk... They come pre-formatted from the factory. –  haimg Dec 13 '11 at 1:07
    
is there anything written to the disk when this is done or are they just configuring the firmware? –  rubixibuc Dec 13 '11 at 1:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.