billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.57k stars 334 forks source link

mount: /mnt/clone: special device /dev/sda2 does not exist. #84

Closed hartmood closed 5 years ago

hartmood commented 5 years ago

openhabian@openhab:~$ sudo rpi-clone -f sda Booted disk: mmcblk0 31.9GB Destination disk: sda 31.9GB Part Size FS Label Part Size FS Label 1 /boot 256.0M fat32 -- 1 29.7G fat32 -- 2 root 29.5G ext4 rootfs == Initialize: IMAGE partition table - forced by option == 1 /boot (52.0M used) : MKFS SYNC to sda1 2 root (4.1G 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 mount: /mnt/clone: special device /dev/sda2 does not exist. Mount failure of /dev/sda2 on /mnt/clone. Aborting!`

hartmood commented 5 years ago

Seems to be a USB problem with the new RPI4 - the blue USB 3.0 seem to have issues. I also had to put a hub in between my z-wave USB stick and my RPI4 - it used to work perfectly with RPI3 without a hub before. Having attached the SD Card to a 5-bucks-USB-hub from Amazon the cloning process now works.