- Assurez-vous que votre carte SD n'est pas insérée
- Ouvrez une fenêtre du terminal et tapez
watch lsblk - Insérez la carte SD et guettez l'apparition d'un nouvel appareil dans lsblk
- Lisez le résultat pour le nouvel appareil. Il devrait ressembler à quelque chose comme ça :
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 29.7G 0 disk └─mmcblk0p1 179:1 0 29.5G 0 part /run/media/user/FFFF-FFFF
- Notez le nom de l'appareil qui apparaît désormais. Dans l'exemple ci-dessus, c'était
mmcblk0, mais il pourrait se montrer commesdaousdb, si vous utilisez un adaptateur USB.- Si `RO` est défini à 1, assurez-vous que le cran de verouillage n'est pas glissé vers le bas
- Hit CTRL + C to exit the menu
- Type
sudo umount /dev/<device name>*(do not replace the*) - Install the
fdiskanddosfstoolspackages using your package manager of choice - Type
sudo fdisk /dev/<device name> - Enter
o, this will create a new MBR partition scheme - Enter
n, then press enter until you're returned to the prompt- The default values will work fine for all consoles
- Enter
t, then enter0c - Enter
aand thenp- observe the output, and make sure the device is now formatted correctly:Disk /dev/mmcblk0: 29.72 GiB, 31914983424 bytes, 62333952 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x######## Device Boot Start End Sectors Size Id Type /dev/<partition name> 8192 62333951 62325760 29.7G c W95 FAT32 (LBA)
- If there are no issues, enter
w- this will save changes and exit the fdisk prompt - Type
sudo mkfs.vfat /dev/<partition name> -s 64to reformat the new partition- If the SD card is over 32GB in size, change
64to128
- If the SD card is over 32GB in size, change
- Type
sudo eject /dev/<device name>, then remove and reinsert the SD card - If the SD card had any files and folders on it before the format, copy everything back from your computer, unless you were linked to this by another guide that needs the SD to be formatted and blank
