:: Re: [DNG] fdisk SD card partitionin…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andreas Messer
Date:  
À: dng
Sujet: Re: [DNG] fdisk SD card partitioning question
Hi Fred,

Am Sun, Jun 12, 2022 at 12:35:06PM -0700 schrieb Fred:
> I tried fdisk again with the same result.
>
> root@aragog:# /sbin/fdisk /dev/sdb
> Command (m for help): n
> Partition type
>    p   primary (0 primary, 0 extended, 4 free)
>    e   extended (container for logical partitions)
> Select (default p): p
> Partition number (1-4, default 1): 1
> First sector (2048-57626623, default 2048):
> Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-57626623, default
> 57626623):

>
> Created a new partition 1 of type 'Linux' and of size 27.5 GiB.


You shouldn't do that. Although its possible to "partition" SD-Cards,
this is not recommended. This is since SD-Cards have some kind of
knowledge about "how FATFS works" to optimize the write cycles. This
won't work if the card is partitioned.

However, the best way to use SD-Cards in Linux only environments is
to format them with f2fs file system. f2fs was developed by Samsung
with internal behavior of embedded MMC memory devices in mind. Which
is pretty the same like an SD-Card. With f2fs you also have
uid/gid as usual and it will help to improve the endurance and
performance of an SD-Card.

cheers,
Andreas

--
gnuPG keyid: 8C2BAF51
fingerprint: 28EE 8438 E688 D992 3661 C753 90B3 BAAA 8C2B AF51