BLL
Posts: 230
Joined: Fri Jun 07, 2013 2:30 pm

Using rpi-clone - problems

Fri Sep 09, 2016 11:14 am

Hi
I am experimenting with rpi-clone on my RasPi model 3 with jessie. It fails every time!
Here is what I do:
1) Put 16GB SD card, formatted all ext4, into USB card reader attached to the Pi.
2) Check with sudo fdisk -l that it shows. It shows as sdb1.
3) Run sudo rpi-clone sdb1 and I get:

======== Clone Summary ========
Clone mode : rsync modified files to existing sdb1 file systems
Clone destination disk : sdb1
Clone destination rootfs : /dev/sdb12 (no label) on /mnt/clone
Clone destination bootfs : /dev/sdb11 on /mnt/clone/boot
Verbose mode : off
===============================
Final check, is it Ok to proceed with the clone (yes/no)?: y
=> Mounting /dev/sdb12 (no label) on /mnt/clone
mount: special device /dev/sdb12 does not exist
Mount failure of /dev/sdb12, aborting!

I have checked that /mnt/clone and mnt/clone/boot exist
Where is this sdb12 coming from? All fdisk shows is sdb1

Any help most welcome!

Thanks

Brian

User avatar
nl3prc
Posts: 160
Joined: Sun Jul 24, 2016 12:39 pm
Location: Den Helder the netherlands

Re: Using rpi-clone - problems

Fri Sep 09, 2016 11:21 am

check with df -h if your entering the writh drive

in my case its sda for the compleet drive not sda1

so enter rpi-clone sda or rpi-clone sdb

and be aware that you do this as root user
su -

and in my case under debian jessie the usb drives are mounted onder /media/pi

Be aware that al the data thats on the drive wil be overwritten by rpi-clone

billw
Posts: 412
Joined: Tue Sep 18, 2012 8:23 pm

Re: Using rpi-clone - problems

Fri Sep 09, 2016 3:48 pm

Yes, you should give a disk name like sdb and not a partition name like sdb1.

I just updated rpi-clone in git to check if a disk name ending in a digit was entered
and it will now warn you that you may have entered a partition name instead of
a disk name.
https://github.com/billw2/rpi-clone

JMK8
Posts: 42
Joined: Tue Apr 28, 2015 10:00 am

Re: Using rpi-clone - problems

Sat May 13, 2017 10:22 am

I'm trying to clone one 8GB SD card to a slightly smaller 8GB SD card with V1.5 of rpi-clone and I get this error - any ideas.
Thanks in advance, JohnK

Code: Select all

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done


/dev/sdb is initialized and resized.  Its partitions are:
Error: Can't have a partition outside the disk!

Return to “Beginners”