Bonjour,
Alors depuis 2 jours j’essaie sans résultats de booter sur mon raspberry pi B depuis la carte SD (ce qui est normal pour cette version de raspberry qui ne peut booter qu'a partir de la SD) et transférer ce qui correspond à l'os sur une clé USB.
Afin d'arriver à mes fins j'installe Raspbian Jessi with Pixel sur la carte SD
j’obtiens une partition boot en FAT32 et une partition Os en ext4
La partition de la carte SD qui m'intéresse est la /dev/mmcblk0p2, celle qui contient l'OS et une fois monté voici les fichiers qu'elle contient :Disque /dev/mmcblk0*: 15.9*Go, 15931539456*octets, 31116288*secteurs
Unités = secteur de 1 × 512 = 512*octets
Taille de secteur (logique / physique)*: 512*octets / 512*octets
taille d'E/S (minimale / optimale)*: 512*octets / 512*octets
Type d'étiquette de disque*: dos
Identifiant de disque*: 0x90fb79b7
Périphérique Amorçage Début Fin Blocs Id. Système
/dev/mmcblk0p1 8192 137215 64512 c W95 FAT32 (LBA)
/dev/mmcblk0p2 137216 31116287 15489536 83 Linux
Ensuite je format ma clé USB en ext4 en faisant :total 32
-rw-r--r--. 1 root root 0 11 déc. 00:52 1
lrwxrwxrwx. 1 root root 7 11 déc. 00:42 bin -> usr/bin
dr-xr-xr-x. 3 root root 4096 27 mars 21:50 boot
drwxr-xr-x. 21 root root 3620 30 mars 01:33 dev
drwxr-xr-x. 144 root root 8192 29 mars 22:49 etc
drwxr-xr-x. 3 root root 20 10 mars 2016 home
lrwxrwxrwx. 1 root root 7 11 déc. 00:42 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 11 déc. 00:42 lib64 -> usr/lib64
drwxr-xr-x. 2 root root 6 10 mars 2016 media
drwxr-xr-x. 2 root root 6 10 mars 2016 mnt
drwxr-xr-x. 4 root root 28 17 févr. 03:24 opt
dr-xr-xr-x. 261 root root 0 29 mars 22:48 proc
dr-xr-x---. 13 root root 4096 27 mars 22:28 root
drwxr-xr-x. 42 root root 1260 29 mars 21:59 run
lrwxrwxrwx. 1 root root 8 11 déc. 00:42 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 10 mars 2016 srv
dr-xr-xr-x. 13 root root 0 29 mars 22:48 sys
drwxrwxrwt. 21 root root 4096 30 mars 01:16 tmp
drwxr-xr-x. 13 root root 4096 11 déc. 00:42 usr
drwxr-xr-x. 21 root root 4096 29 mars 22:48 var
et j'obtiens ceci :
Code : Sélectionner tout - Visualiser dans une fenêtre à part mfsk.ext4 /dev/sdc1
Enfin je fais un copie de ma carte SD de la partition /dev/mmcblk0p2 qui correspond à l'OS vers ma clé USB sur la partition /dev/sdc1 en utilisant un dd :Disque /dev/sdc*: 31.4*Go, 31379685376*octets, 61288448*secteurs
Unités = secteur de 1 × 512 = 512*octets
Taille de secteur (logique / physique)*: 512*octets / 512*octets
taille d'E/S (minimale / optimale)*: 512*octets / 512*octets
Type d'étiquette de disque*: dos
Identifiant de disque*: 0x00069377
Périphérique Amorçage Début Fin Blocs Id. Système
/dev/sdc1 2 61288447 30644223 83 Linux
Lorsque je monte ma clé USB j'ai bien les dossiers et fichiers nécessaires :
Code : Sélectionner tout - Visualiser dans une fenêtre à part dd if=/dev/mmcblk0p2 of=/dev/sdc1
Finalement je modifie le fichier cmdline.txt présent dans le boot de ma carte SD pour changer le /dev/mmcblk0p2 par le /dev/sdc1 comme ceci :total 32
-rw-r--r--. 1 root root 0 11 déc. 00:52 1
lrwxrwxrwx. 1 root root 7 11 déc. 00:42 bin -> usr/bin
dr-xr-xr-x. 3 root root 4096 27 mars 21:50 boot
drwxr-xr-x. 21 root root 3620 30 mars 01:33 dev
drwxr-xr-x. 144 root root 8192 29 mars 22:49 etc
drwxr-xr-x. 3 root root 20 10 mars 2016 home
lrwxrwxrwx. 1 root root 7 11 déc. 00:42 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 11 déc. 00:42 lib64 -> usr/lib64
drwxr-xr-x. 2 root root 6 10 mars 2016 media
drwxr-xr-x. 2 root root 6 10 mars 2016 mnt
drwxr-xr-x. 4 root root 28 17 févr. 03:24 opt
dr-xr-xr-x. 261 root root 0 29 mars 22:48 proc
dr-xr-x---. 13 root root 4096 27 mars 22:28 root
drwxr-xr-x. 42 root root 1260 29 mars 21:59 run
lrwxrwxrwx. 1 root root 8 11 déc. 00:42 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 10 mars 2016 srv
dr-xr-xr-x. 13 root root 0 29 mars 22:48 sys
drwxrwxrwt. 21 root root 4096 30 mars 01:16 tmp
drwxr-xr-x. 13 root root 4096 11 déc. 00:42 usr
drwxr-xr-x. 21 root root 4096 29 mars 22:48 var
devient :dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/sdc1 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
et je modifie également le fichier /etc/fstab de la clé USB en ajoutant la ligne /dev/sdc1 / ext4 defaults,noatime 0 1 et je met en commentaire la ligne /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 comme ceci :
Je met ma clé USB dans le port USB et ma carte SD je démarre mon raspberry et là le système reste bloqué sur la framboise en haut à gauche, aucune ligne ne s'affiche et aucun message d'erreur n'apparait.proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
#/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
/dev/sdc1 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
Du coup je me demandais qu'est ce qui pouvait clocher dans ma procédure ?
j'ai suivie divers tuto mais voilà sans aucun succès.
Merci d'avance pour votre aide, en espérant avoir été clair.
Partager