Merci !
Je vais tester ce que vous me dites.
Je fais un copier coller des commandes que j'ai fais au cas où :
Code : Tout sélectionner
pi@raspberrypi:~ $ git clone https://github.com/billw2/rpi-clone.git
Clonage dans 'rpi-clone'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 180 (delta 0), reused 1 (delta 0), pack-reused 176
Réception d'objets: 100% (180/180), 98.78 KiB | 561.00 KiB/s, fait.
Résolution des deltas: 100% (68/68), fait.
pi@raspberrypi:~ $ cd rpi-clone/
pi@raspberrypi:~/rpi-clone $ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin/
pi@raspberrypi:~/rpi-clone $ sudo rpi-clone sda -f
Destination disk partition /dev/sda2 is mounted on /media/pi/rootfs.
The clone cannot proceed unless it is unmounted.
Do you want to unmount /media/pi/rootfs? (yes/no): yes
Destination disk partition /dev/sda1 is mounted on /media/pi/boot.
The clone cannot proceed unless it is unmounted.
Do you want to unmount /media/pi/boot? (yes/no): yes
Booted disk: mmcblk0 128.0GB Destination disk: sda 120.0GB
---------------------------------------------------------------------------
Part Size FS Label Part Size FS Label
1 /boot 256.0M fat32 -- 1 256.0M fat32 --
2 root 119.0G ext4 rootfs 2 6.6G ext4 rootfs
---------------------------------------------------------------------------
== Initialize: IMAGE partition table - forced by option ==
1 /boot (53.0M used) : MKFS SYNC to sda1
2 root (3.2G used) : RESIZE MKFS SYNC to sda2
---------------------------------------------------------------------------
Run setup script : no.
Verbose mode : no.
-----------------------:
** WARNING ** : All destination disk sda data will be overwritten!
-----------------------:
Initialize and clone to the destination disk sda? (yes/no): yes
Optional destination ext type file system label (16 chars max):
Initializing
Imaging past partition 1 start.
=> dd if=/dev/mmcblk0 of=/dev/sda bs=1M count=8 ...
Resizing destination disk last partition ...
Resize success.
Changing destination Disk ID ...
=> mkfs -t vfat -F 32 /dev/sda1 ...
=> mkfs -t ext4 /dev/sda2 ...
Syncing file systems (can take a long time)
Syncing mounted partitions:
Mounting /dev/sda2 on /mnt/clone
=> rsync // /mnt/clone with-root-excludes ...
Mounting /dev/sda1 on /mnt/clone/boot
=> rsync /boot/ /mnt/clone/boot ...
Editing /mnt/clone/boot/cmdline.txt PARTUUID to use 162f4ca2
Editing /mnt/clone/etc/fstab PARTUUID to use 162f4ca2
===============================
Done with clone to /dev/sda
Start - 16:32:09 End - 16:34:48 Elapsed Time - 2:39
Cloned partitions are mounted on /mnt/clone for inspection or customizing.
Hit Enter when ready to unmount the /dev/sda partitions ...
unmounting /mnt/clone/boot
unmounting /mnt/clone
===============================
A savoir que quand je connecte mon SSD sur mon PC Windows j'ai une seule partition qui fais 268 mo je n'ai pas de répertoire boot mais j'ai un fichier cmdline.txt avec à l’intérieur :
console=serial0,115200 console=tty1 root=PARTUUID=162f4ca2-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
Je le mentionne car quand tu me dis :
>et essaye de remplacer "root=PARTUUID=162f4ca2-01" par "root=/dev/sda2"
Je n'ai pas de root=PARTUUID=162f4ca2-01 mais j'ai root=PARTUUID=162f4ca2-02 à la place.
Je continue merci bien.