aquilisdicio
Posts: 5
Joined: Tue Feb 17, 2015 11:10 pm

Clone Rpi B+ to Rpi2 B+

Tue Feb 17, 2015 11:13 pm

Hello,
I have two Rpis. V1 and v2 B+. I have a regular 32 GB SD and a micro 32 GB SD card that i've attempted to mirror. The v2 doesn't boot. I've formatted using the SD tool and then using win32 imager. I ran apt-get upgrade on my rpi v1 prior to mirroring the sd card. Can anyone shed some light on whether this can be done? Prefer not to re-build and configure the apps on a fresh install. Thanks.

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Clone Rpi B+ to Rpi2 B+

Tue Feb 17, 2015 11:50 pm

What is the output of 'uname -a' on the B+ after update / upgrade?

aquilisdicio
Posts: 5
Joined: Tue Feb 17, 2015 11:10 pm

Re: Clone Rpi B+ to Rpi2 B+

Wed Feb 18, 2015 10:43 pm

Linux Raspberrypi 3.18 7+ #755 PREMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Clone Rpi B+ to Rpi2 B+

Wed Feb 18, 2015 10:50 pm

Can you put the microSD card into an SD card adapter and attempt to boot the V1 Raspberry Pi from the cloned card? My guess would be that something has gone wrong in the process of cloning.

aquilisdicio
Posts: 5
Joined: Tue Feb 17, 2015 11:10 pm

Re: Clone Rpi B+ to Rpi2 B+

Fri Feb 20, 2015 12:53 am

Strangely, the micro sd card boots in the old pi. Attempted again the the pi2 and nada. I tested it by flashing with the noobs image and that worked. I'm at a loss. I ordered a USB microSD adapter to attempt a copy from the rpi1. Any other suggestions?

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Clone Rpi B+ to Rpi2 B+

Fri Feb 20, 2015 10:38 am

2 different SD cards of nominally the same type and size are often different sizes in reality. Cloning a slightly larger card onto a slighlty smaller card will often cause problems.

There are numerous solutions, the way I'd do it is stick the original in another linux computer before you clone it and use parted or gparted to shrink the main partition slightly. Then clone it, because all of the main partition will now sit on the slightly smaller card it will boot. You can use raspi-config to stretch it back up to fill the new card afterwards if you wish.

As I say, everybody will have their own way of doing it, thats mine.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Clone Rpi B+ to Rpi2 B+

Fri Feb 20, 2015 10:52 am

If theres the slightest doubt about the validity of the second SD card, I'd be checking to see if its a fake. 32GB is a good size for fakes.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

aquilisdicio
Posts: 5
Joined: Tue Feb 17, 2015 11:10 pm

Re: Clone Rpi B+ to Rpi2 B+

Fri Feb 20, 2015 4:03 pm

The micro is a 32GB samsung sdhc purchased from best buy. Windows disk management sees the full size. The regular sd card is a PNY I believe, also 32 GB.

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Clone Rpi B+ to Rpi2 B+

Fri Feb 20, 2015 4:08 pm

aquilisdicio wrote:The micro is a 32GB samsung sdhc purchased from best buy. Windows disk management sees the full size. The regular sd card is a PNY I believe, also 32 GB.
It could still be a fake. Use for example h2testw (http://www.heise.de/download/h2testw-26 ... 50539.html)

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Clone Rpi B+ to Rpi2 B+

Fri Feb 20, 2015 4:13 pm

Windows disk management will report what the SD card tells it.

You want a program called h2testw : https://sosfakeflash.wordpress.com/h2testw/

It basically fills the card up and then reads it back and reports on discrepancies.

Theres a linux program called f3 which does the same thing.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

aquilisdicio
Posts: 5
Joined: Tue Feb 17, 2015 11:10 pm

Re: Clone Rpi B+ to Rpi2 B+

Sat Feb 21, 2015 4:55 pm

Using that utility, the freshly formatted micro sd card is 30514 MB. The image file is 30436 MB. Seems like it should fit.

Return to “Beginners”