• 4 Posts
  • 567 Comments
Joined 3 years ago
cake
Cake day: June 26th, 2023

help-circle






  • bizdelnicktoLinuxFormat a 512e drive to 4096 on Linux
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    1 month ago

    TL;DR: Everything should work well with default settings, no special actions required.

    First of all, partitions must be aligned to sector size (multiples of 4096). Most partitioning tools align partitions to 1MiB by default nowadays, so this shouldn’t be a problem, however if the disk is already partitioned, check the partition offset. For ext4, as well as most modern filesystems, default block size is 4KiB, so you don’t need to pass optional parameters to mkfs. For cryptsetup luksFormat there are also two things that must be set correctly: --align-payload (2048 512-byte sectors by default, equal to 256 4096-byte sectors, no need to change), and --sector-size (for 512e device it should be set to 4096 bytes automatically, no need to set manually).





  • bizdelnicktoLinux*Permanently Deleted*
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    In theory, Mac’s Mach-O executable format supports multi-architecture binaries that can work on both arm64 and x86_64. But I know nothing about Apple’s plans to drop support for x86_64 in X-Code. After this happen, developers will provide arm64-only binaries.








  • In my country, they say that you need to be fast when catching fleas. They also say, I can type 2000 characters per minute, but the result is a total bullshit.

    I can be very fast when working on the project that I know very good. An I can be very slow when I need to understand how the code works, to learn some new API, new tools etc. If I always were fast, I’d make a lot of stupid mistakes and had to fix them wasting much more time than I spent for initial investigation.