Remplacer la carte SD par un disque dur SSD sur un raspberry pi 4
Pas de mystère ici, c'est des commandes debian tout ce qui a de plus standard.
sudo apt update
sudo apt full-upgrade
Un peu plus trekky, on met à jour le firmware
sudo rpi-update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Performing self-update
*** Relaunching after update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** We're running for the first time
*** Backing up files (this will take a few minutes)
*** Backing up firmware
*** Backing up modules 5.10.103-v8+
#############################################################
WARNING: This update bumps to rpi-5.15.y linux tree
See: https://forums.raspberrypi.com/viewtopic.php?t=322879
'rpi-update' should only be used if there is a specific
reason to do so - for example, a request by a Raspberry Pi
engineer or if you want to help the testing effort
and are comfortable with restoring if there are regressions.
DO NOT use 'rpi-update' as part of a regular update process.
##############################################################
Would you like to proceed? (y/N)
*** Downloading specific firmware revision (this will take a few minutes)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 173 100 173 0 0 1184 0 --:--:-- --:--:-- --:--:-- 1184
100 111M 100 111M 0 0 1051k 0 0:01:48 0:01:48 --:--:-- 1023k
*** Updating firmware
*** Updating kernel modules
*** depmod 5.15.35-v8+
*** depmod 5.15.35+
*** depmod 5.15.35-v7+
*** depmod 5.15.35-v7l+
*** Updating VideoCore libraries
*** Using SoftFP libraries
*** Updating SDK
*** Running ldconfig
*** Storing current firmware revision
*** Deleting downloaded files
*** Syncing changes to disk
*** If no errors appeared, your firmware was successfully updated to 6db8c1cdd3da2f070866d2149c956ce86a4ccdd5
*** A reboot is needed to activate the new firmware
On redémarre pour activer le nouveau firmware
sudo reboot
S'assurer que dans le fichier /etc/default/rpi-eeprom-update
, la variable FIRMWARE_RELEASE_STATUS soit à stable ou latest. Avec la valeur default, ce n'est pas toujours le dernier firmware qui est installé.
FIRMWARE_RELEASE_STATUS="stable"
sudo rpi-eeprom-update -d -a
*** INSTALLING EEPROM UPDATES ***
BOOTLOADER: update available
CURRENT: jeudi 3 septembre 2020, 12:11:43 (UTC+0000) (1599135103)
LATEST: mardi 25 janvier 2022, 14:30:41 (UTC+0000) (1643121041)
RELEASE: default (/lib/firmware/raspberrypi/bootloader/default)
Use raspi-config to change the release.
VL805_FW: Using bootloader EEPROM
VL805: up to date
CURRENT: 000138a1
LATEST: 000138a1
CURRENT: jeudi 3 septembre 2020, 12:11:43 (UTC+0000) (1599135103)
UPDATE: mardi 25 janvier 2022, 14:30:41 (UTC+0000) (1643121041)
BOOTFS: /boot
EEPROM updates pending. Please reboot to apply the update.
To cancel a pending update run "sudo rpi-eeprom-update -r".
On redémarre pour activer le nouveau bootloader
sudo reboot
Si on relance la commande précédente, la version CURRENT doit être identique à LATEST. Dans le cas contraire, il faut une nouvelle fois redémarrer.
sudo raspi-config
On sélectionne le menu des options avancées
Puis le menu de la version du bootloader
On sélectionne Utiliser le bootloader avec la version la plus récente
On revient sur les options avancées, et on sélectionne cette fois le menu Ordre de démarrage
On sélectionne Démarrage USB si disponible, autrement démarrage sur carte SD
La copie entraine l'effacement du disque dur
sudo dd if=/dev/mmcblk0 of=/dev/sda status=progress
On arrête le raspberry pi, on débranche l'alimentation USB C, on enlève la carte SD et on rebranche l'alimentation USB C.