• # Voici un essai

    Posté par (site web personnel) . En réponse au message Formatage en bloc de 4k. Évalué à 1.

    Le lien vers le kernel linux et les disques avec des blocs de 4k.
    https://ata.wiki.kernel.org/index.php/ATA_4_KiB_sector_issue(...)

    Voici la configuration que j'ai mise en place:

    srv-debian:~# parted /dev/sdb
    GNU Parted 2.3
    Using /dev/sdb
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) p
    Model: ATA WDC WD20EARS-00S (scsi)
    Disk /dev/sdb: 2000GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number Start End Size File system Name Flags

    (parted) mkpart primary ext4 1 -1
    Warning: You requested a partition from 1s to 3907029167s.
    The closest location we can manage is 34s to 3907029134s.
    Is this still acceptable to you?
    Yes/No? yes
    Warning: The resulting partition is not properly aligned for best performance.
    Ignore/Cancel? I
    (parted) p
    Model: ATA WDC WD20EARS-00S (scsi)
    Disk /dev/sdb: 3907029168s
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number Start End Size File system Name Flags
    1 34s 3907029134s 3907029101s primary

    srv-debian:~# mkfs.ext4 /dev/sdb1
    mke2fs 1.41.9 (22-Aug-2009)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    122101760 inodes, 488378637 blocks
    24418931 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=4294967296
    14905 block groups
    32768 blocks per group, 32768 fragments per group
    8192 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
    102400000, 214990848

    Writing inode tables: done
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done