matinzk
Posts: 35
Joined: Fri Sep 28, 2012 4:26 pm
Location: UK

Restore image with Disk Imager error on boot

Fri Oct 21, 2016 10:57 pm

Hi everyone,

We have a version of the Rasbian with all of our settings files correctly on a micro SD card. We want to clone this, so we have used Disk Imager on Windows and got a img file. When we write this on another micro Sd card, which is exactly the same as the other card, it successfully writes it but when put in a Raspberry Pi it gives na error on boot.

Does anyone know what the issue could be?

Thank you.

broe23
Posts: 902
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: Restore image with Disk Imager error on boot

Sat Oct 22, 2016 12:55 am

It is because of the windows software that causes it. It does the same thing if you use Linux. If you are using Win32 Disk Imager, it should be not causing this. Are the cards the same brand, class, size? Also remember that Windows does not see EXT2, EXT4 partitions natively. You have to use third party software to allow that. https://thepihut.com/blogs/raspberry-pi ... is-sd-card

You can also do this with a Linux Live DVD. Just scroll down in the link above to the Linux info.
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

User avatar
rpdom
Posts: 18011
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Restore image with Disk Imager error on boot

Sat Oct 22, 2016 6:34 am

What error does it give?

If the cards are actually the same size and WindiskImager reported that the image was correctly read and written, you should have no problems.

Alternatively, you can copy the card on the Pi, using a USB card reader and the piclone software (from GUI or command line).

matinzk
Posts: 35
Joined: Fri Sep 28, 2012 4:26 pm
Location: UK

Re: Restore image with Disk Imager error on boot

Sat Oct 22, 2016 8:30 am

I am using Win32 Disk Imager version 0.9.5.

Attached is the error that it gives.
error.jpg

fruitoftheloom
Posts: 25298
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Restore image with Disk Imager error on boot

Sat Oct 22, 2016 8:47 am

matinzk wrote:Hi everyone,

We have a version of the Rasbian with all of our settings files correctly on a micro SD card. We want to clone this, so we have used Disk Imager on Windows and got a img file. When we write this on another micro Sd card, which is exactly the same as the other card, it successfully writes it but when put in a Raspberry Pi it gives na error on boot.

Does anyone know what the issue could be?

Thank you.
Raspbian Jessie has a SD Card Copier Utility built in, though you say your SD Cards are identical they could be one byte difference in usable size:

https://www.raspberrypi.org/blog/anothe ... e-raspbian
The information is out there....you just have to let it in.

My other Linux machine is a ChromeBox

matinzk
Posts: 35
Joined: Fri Sep 28, 2012 4:26 pm
Location: UK

Re: Restore image with Disk Imager error on boot

Sat Oct 22, 2016 9:26 am

we really need to do it with the Win32 Disk Imager.

fruitoftheloom
Posts: 25298
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Restore image with Disk Imager error on boot

Sat Oct 22, 2016 9:48 am

matinzk wrote:we really need to do it with the Win32 Disk Imager.
Win32Disk Imager requires the the SD Card to be exactly the same size as the SD Card .IMG was created from :?

https://answers.launchpad.net/win32-ima ... ion/231637
The information is out there....you just have to let it in.

My other Linux machine is a ChromeBox

matinzk
Posts: 35
Joined: Fri Sep 28, 2012 4:26 pm
Location: UK

Re: Restore image with Disk Imager error on boot

Sat Oct 22, 2016 9:51 am

fruitoftheloom wrote:
matinzk wrote:we really need to do it with the Win32 Disk Imager.
Win32Disk Imager requires the the SD Card to be exactly the same size as the SD Card .IMG was created from :?

https://answers.launchpad.net/win32-ima ... ion/231637
So even if it's 1 byte different we get an error?

What if we create the image file with Ubuntu/Linux and the write to the new SD card with Win32Disk Imager? Will that work?

drgeoff
Posts: 11387
Joined: Wed Jan 25, 2012 6:39 pm

Re: Restore image with Disk Imager error on boot

Sat Oct 22, 2016 5:59 pm

fruitoftheloom wrote:
matinzk wrote:we really need to do it with the Win32 Disk Imager.
Win32Disk Imager requires the the SD Card to be exactly the same size as the SD Card .IMG was created from
No, the correct answer is: Win32DiskImager requires the the SD Card to be exactly the same size as, or larger than, the SD Card .IMG was created from
Quis custodiet ipsos custodes?

fruitoftheloom
Posts: 25298
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Restore image with Disk Imager error on boot

Sat Oct 22, 2016 6:08 pm

drgeoff wrote:
fruitoftheloom wrote:
matinzk wrote:we really need to do it with the Win32 Disk Imager.
Win32Disk Imager requires the the SD Card to be exactly the same size as the SD Card .IMG was created from
No, the correct answer is: Win32DiskImager requires the the SD Card to be exactly the same size as, or larger than, the SD Card .IMG was created from
Goes to prove I am not a WinDozer :D
The information is out there....you just have to let it in.

My other Linux machine is a ChromeBox

matinzk
Posts: 35
Joined: Fri Sep 28, 2012 4:26 pm
Location: UK

Re: Restore image with Disk Imager error on boot

Sun Oct 23, 2016 3:26 pm

It is but error exists :(

drgeoff
Posts: 11387
Joined: Wed Jan 25, 2012 6:39 pm

Re: Restore image with Disk Imager error on boot

Sun Oct 23, 2016 5:31 pm

matinzk wrote:It is but error exists :(
Same or larger actual size or nominal size? Cards of same nominal size can have different actual sizes, even if from same manufacturer and batch.
Quis custodiet ipsos custodes?

broe23
Posts: 902
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: Restore image with Disk Imager error on boot

Mon Oct 24, 2016 5:34 am

matinzk wrote:
fruitoftheloom wrote:
matinzk wrote:we really need to do it with the Win32 Disk Imager.
Win32Disk Imager requires the the SD Card to be exactly the same size as the SD Card .IMG was created from :?

https://answers.launchpad.net/win32-ima ... ion/231637
So even if it's 1 byte different we get an error?

What if we create the image file with Ubuntu/Linux and the write to the new SD card with Win32Disk Imager? Will that work?
Yes that is correct. Not all SD cards or even USB sticks are going to be the same size. If the program used to format or do a image copy to any type of storage medium. If it is not the same exact clone of going from A to B, the imaging program will puke and tell you no way.

In the way that the foundation has created the images, it does not give you much room. What is even worst is if you use a SSD to place the Linux partition on and only use the SD card for the Boot Partition. You run into problems. There really is no easy way to do this. Just way too many variables, since you are dealing with something that is created by the millions with a large margin of error in what the cheaply made medium will be like in the end.

As long as you use the same program over and over and make sure that the partitions will allow an exact clone (ie not take up all empty space before the clone on the master), you really should not have issues. At first it is more trial and error to get it right to have an Master image that you can keep stored on a NAS or in a Cloud drive for safe keeping.
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

Return to “Beginners”