3 ms·
> Well in the CSD register (accessible using SD commands), the NAND geometry is given Is this difficult to obtain (e.g., via ioctl(2)) and parse? [edit] look
by yrro 4y ago
> Well in the CSD register (accessible using SD commands), the NAND geometry is given
Is this difficult to obtain (e.g., via ioctl(2)) and parse?
[edit] looks like it's readable from sysfs: https://www.kernel.org/doc/html/latest/driver-api/mmc/mmc-dev-attrs.html https://www.kernel.org/doc/html/latest/driver-api/mmc/mmc-de...
Parsing is another matter. It would be really useful if e.g., parted could read/parse that and then automatically align created partitions!
- dmitrygr 4y agoPartition alignment also depends on the file system options you plan to use to format it. Eg: depending on cluster size you choose, the size of the FAT differs, which in turn shifts the start sector of the first cluster. So, really, partitioning and formatting NEED to be done cooperatively and not independently. That’s the purpose of this tool, really.
- yrro 4y agoYeah good point. Back in the distant past, parted manged the creation of filesystems as well as the partitions on which they are created. It's a shame that was all removed because this is exactly why it's needed!