Rpi-Clone me contrarie

Le système préconisé par la Fondation Raspberry Pi

Modérateurs : Francois, maxty01

Répondre
Sven
Messages : 11
Enregistré le : mer. 6 janv. 2016 09:05

Rpi-Clone me contrarie

Message par Sven » mar. 15 oct. 2024 15:29

Hello
Voici ce que me renvoie rpi-clone quand je veux faire une copie de ma clé USB de démarrage vers la carte SD (de même taille) que j’ai inséré
@framboise:~ $ sudo rpi-clone mmcblk0p1
Error: /dev/mmcblk0p1: unrecognised disk label

Booted disk: sdb 128.3GB Destination disk: mmcblk0p1 128.0GB
---------------------------------------------------------------------------
Part Size FS Label Part Size FS Label
1 /boot 256.0M fat32 --
2 root 119.3G ext4 rootfs
---------------------------------------------------------------------------
== Initialize: IMAGE partition table - partition number mismatch: 2 -> 0 ==
1 /boot (30.5M used) : MKFS SYNC to mmcblk0p1p1
2 root (1.9G used) : RESIZE MKFS SYNC to mmcblk0p1p2
---------------------------------------------------------------------------
Run setup script : no.
Verbose mode : no.
-----------------------:
** WARNING ** : All destination disk mmcblk0p1 data will be overwritten!
-----------------------:

Initialize and clone to the destination disk mmcblk0p1? (yes/no): y
Optional destination ext type file system label (16 chars max):

Initializing
Imaging past partition 1 start.
=> dd if=/dev/sdb of=/dev/mmcblk0p1 bs=1M count=8 ...
Resizing destination disk last partition ...
Resize success.
Changing destination Disk ID ...Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/mmcblk0p1 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.

=> mkfs -t vfat -F 32 /dev/mmcblk0p1p1 ...
=> mkfs -t ext4 /dev/mmcblk0p1p2 ...

Syncing file systems (can take a long time)
Syncing mounted partitions:
Mounting /dev/mmcblk0p1p2 on /mnt/clone
mount: /mnt/clone: special device /dev/mmcblk0p1p2 does not exist.
Mount failure of /dev/mmcblk0p1p2 on /mnt/clone.
Aborting!
je pige pas car

Code : Tout sélectionner

sudo blkid
me donne
/dev/mmcblk0p1: LABEL="SD Card" UUID="4CE1-0294" BLOCK_SIZE="512" TYPE="exfat" PARTUUID="946d7da1-01"
/dev/sdb1: LABEL_FATBOOT="bootfs" LABEL="bootfs" UUID="95B8-58CA" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="182b87f3-01"
/dev/sdb2: LABEL="rootfs" UUID="806b710e-cfd3-408c-a27c-5128465dc18f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="182b87f3-02"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/sda1: PARTUUID="c2281d86-e330-68c3-1cca-4d4d22d805c8"
où se trouve ma c*nnerie, je vois pas.
Une idée ?

EDIT:
voilà ce que me donne aussi

Code : Tout sélectionner

ls -l /dev/disk/by*
/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 9 Oct 15 15:50 ata-WD_Green_2.5_240GB_223901A0127A -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 15 15:50 ata-WD_Green_2.5_240GB_223901A0127A-part1 -> ../../sda1
lrwxrwxrwx 1 root root 13 Oct 15 15:50 mmc-ED4QT_0xe41d57c5 -> ../../mmcblk0
lrwxrwxrwx 1 root root 15 Oct 15 15:50 mmc-ED4QT_0xe41d57c5-part1 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 9 Oct 15 15:50 usb-Samsung_Flash_Drive_FIT_0376218120006373-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct 15 15:50 usb-Samsung_Flash_Drive_FIT_0376218120006373-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Oct 15 15:50 usb-Samsung_Flash_Drive_FIT_0376218120006373-0:0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 9 Oct 15 15:50 usb-WD_Green_2.5_240GB_012345678999-0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 15 15:50 usb-WD_Green_2.5_240GB_012345678999-0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Oct 15 15:50 wwn-0x5001b448bdb1d7b8 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 15 15:50 wwn-0x5001b448bdb1d7b8-part1 -> ../../sda1

/dev/disk/by-label:
total 0
lrwxrwxrwx 1 root root 10 Oct 15 15:50 bootfs -> ../../sdb1
lrwxrwxrwx 1 root root 10 Oct 15 15:50 rootfs -> ../../sdb2

/dev/disk/by-partuuid:
total 0
lrwxrwxrwx 1 root root 10 Oct 15 15:50 182b87f3-01 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Oct 15 15:50 182b87f3-02 -> ../../sdb2
lrwxrwxrwx 1 root root 15 Oct 15 15:50 946d7da1-01 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 10 Oct 15 15:50 c2281d86-e330-68c3-1cca-4d4d22d805c8 -> ../../sda1

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root 9 Oct 15 15:50 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 15 15:50 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1:1.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Oct 15 15:50 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:2:1.0-scsi-0:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct 15 15:50 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:2:1.0-scsi-0:0:0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Oct 15 15:50 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:2:1.0-scsi-0:0:0:0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 13 Oct 15 15:50 platform-fe340000.mmc -> ../../mmcblk0
lrwxrwxrwx 1 root root 15 Oct 15 15:50 platform-fe340000.mmc-part1 -> ../../mmcblk0p1

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 Oct 15 15:50 806b710e-cfd3-408c-a27c-5128465dc18f -> ../../sdb2
lrwxrwxrwx 1 root root 10 Oct 15 15:50 95B8-58CA -> ../../sdb1

piper
Modérateur
Messages : 712
Enregistré le : sam. 5 juin 2021 18:57

Re: Rpi-Clone me contrarie

Message par piper » mar. 15 oct. 2024 19:15

Je n'utilise pas rpi-clone mais à lire la doc je dirais que taper sudo rpi-clone mmcblk0p1 c'est demander de faire le clone du disque système complet vers mmcblk0p1
Hors, mmcblk0p1 n'est pas un disk, c'est une partition
Donc rpi-clone va lire les partitions systèmes (p1 et p2) et tenter d'écrire mmcblk0p1p1 et mmcblk0p1p2 mais ces partitions n'existent pas

Moi, j'utiliserais la syntaxe sudo rpi-clone mmcblk0 si mmcblk0 est le périphérique SDCARD de destination
3 Pi4 : Emby / Samba , Librelec, Android TV
3 Pi3 : Hifiberry /OSMC, Games station, Samba / VPN / HotSpot Wifi
2 Pi2 : RFID, radio reveil (PiReveil)
1 Pi0 : traker GPS et acquisitions
1 Pi0 2W : tests divers
5 Arduinos dont 4 nanos et 1 Mega
1 ESP32

Sven
Messages : 11
Enregistré le : mer. 6 janv. 2016 09:05

Re: Rpi-Clone me contrarie

Message par Sven » mer. 16 oct. 2024 10:53

Bon eh bien je vais devoir prendre des vitamines.
Merci de m’avoir ouvert les yeux.

piper
Modérateur
Messages : 712
Enregistré le : sam. 5 juin 2021 18:57

Re: Rpi-Clone me contrarie

Message par piper » mer. 16 oct. 2024 13:02

Pas de quoi, je ne suis pas tous jours en super forme non plus
3 Pi4 : Emby / Samba , Librelec, Android TV
3 Pi3 : Hifiberry /OSMC, Games station, Samba / VPN / HotSpot Wifi
2 Pi2 : RFID, radio reveil (PiReveil)
1 Pi0 : traker GPS et acquisitions
1 Pi0 2W : tests divers
5 Arduinos dont 4 nanos et 1 Mega
1 ESP32

Répondre

Retourner vers « Raspbian »