More Pi Please
Posts: 50
Joined: Mon Jun 17, 2013 5:26 pm

Clone SD card on Windows but multiple devices appear

Sun Sep 10, 2017 8:54 pm

I wanted to clone my Raspberry Pi card on Windows.

Found many easy instructions on how to do it with Win32 Disk Imager.

Put card in Windows, Select device, read and save. Easy.

So I get Win32 Disk Imager.
Insert my SD card.
3 devices show up :shock:

One is named RECOVERY. The other 2 devices/partitions unreadable on Windows.

Searched for an answer and can't find one yet.

Is there no way to clone the entire card/devices/partitions into a single image on Windows?

Thank you for any help.

gkaiseril
Posts: 661
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: Clone SD card on Windows but multiple devices appear

Sun Sep 10, 2017 9:12 pm

The pl os creates multiple partitions. It is easier and faster to copy the os on the pi ising a card reader and SDcopuer on te desk top or piclone using the command line. Both will adjust the partitions as needed to copy a lager SDcard yo a smaller card as lo g as the smaller card has enough space for the actual data.

On Windows you need a program that can read Unix/Linux file system and the copy will as large or larger than the size of the sorce sd card.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

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

Re: Clone SD card on Windows but multiple devices appear

Sun Sep 10, 2017 9:36 pm

gkaiseril wrote:
Sun Sep 10, 2017 9:12 pm
On Windows you need a program that can read Unix/Linux file system and the copy will as large or larger than the size of the sorce sd card.
The first half of that is completely untrue.

A program that makes an image of a card does NOT need to be able to read Unix/Linux file systems. It reads the raw bytes and does not give a fig about the file system(s).

Win32DiskImager is such a program.

More Pi Please
Posts: 50
Joined: Mon Jun 17, 2013 5:26 pm

Re: Clone SD card on Windows but multiple devices appear

Sun Sep 10, 2017 9:50 pm

drgeoff wrote:
Sun Sep 10, 2017 9:36 pm
gkaiseril wrote:
Sun Sep 10, 2017 9:12 pm
On Windows you need a program that can read Unix/Linux file system and the copy will as large or larger than the size of the sorce sd card.
The first half of that is completely untrue.

A program that makes an image of a card does NOT need to be able to read Unix/Linux file systems. It reads the raw bytes and does not give a fig about the file system(s).

Win32DiskImager is such a program.

That's what I thought. But if the SD Pi card shows as 3 devices/partitions in Win32DiskImager, what do I do?

If I select any of the 3 devices will it copy the entire card anyway? Or will it just copy the partition as a card image which will probably result in nothing of use?

Is there no way to clone the entire card/devices/partitions into a single image on Windows?

Thank you again for any help.

gkaiseril
Posts: 661
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: Clone SD card on Windows but multiple devices appear

Sun Sep 10, 2017 10:58 pm

Use SD copyor plclone on the raspberry pi.

A disk image is different from a dik copy or clone.

Win32 Disk Imager can read an Sd card and then write an ISO image of what was read to your hard disk. And that should do it.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Clone SD card on Windows but multiple devices appear

Mon Sep 11, 2017 3:51 am

More Pi Please wrote:
Sun Sep 10, 2017 9:50 pm
the SD Pi card shows as 3 devices/partitions in Win32DiskImager, what do I do?
-a- windows can only see the first partition of SD card or USB stick.
-b- Win32DiskImager copy drives only
so make sure F: is the SD card in your card reader.
if you use a multi card reader several drives might pop up but are not selectable.
only the drive with the "old" noobs SD card ( here D: ), and it might look like:
Image
in windows filemanager.

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

Re: Clone SD card on Windows but multiple devices appear

Mon Sep 11, 2017 5:07 am

More Pi Please wrote:
Sun Sep 10, 2017 8:54 pm
I wanted to clone my Raspberry Pi card on Windows.

Found many easy instructions on how to do it with Win32 Disk Imager.

Put card in Windows, Select device, read and save. Easy.

So I get Win32 Disk Imager.
Insert my SD card.
3 devices show up :shock:

One is named RECOVERY. The other 2 devices/partitions unreadable on Windows.

Searched for an answer and can't find one yet.

Is there no way to clone the entire card/devices/partitions into a single image on Windows?

Thank you for any help.
W32DI makes a byte copy and can only be copied back to exactly the same size SD Card unless one does some funky size adjudtments


Raspbian comes with PiClone SD Card Copier and providing the SD Card has enough space, any size will do. You only need a USB SDHC Card Reader and SD Card

PiClone also works with NoobS SD Cards, If not running Raspbian see:

https://github.com/raspberrypi-ui/piclo ... ter/README


An alternative to PiClone is RPiClone:

https://github.com/billw2/rpi-clone
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

More Pi Please
Posts: 50
Joined: Mon Jun 17, 2013 5:26 pm

Re: Clone SD card on Windows but multiple devices appear

Mon Sep 11, 2017 6:31 pm

KLL wrote:
Mon Sep 11, 2017 3:51 am
More Pi Please wrote:
Sun Sep 10, 2017 9:50 pm
the SD Pi card shows as 3 devices/partitions in Win32DiskImager, what do I do?
-a- windows can only see the first partition of SD card or USB stick.
-b- Win32DiskImager copy drives only
so make sure F: is the SD card in your card reader.
if you use a multi card reader several drives might pop up but are not selectable.
only the drive with the "old" noobs SD card ( here D: ), and it might look like:
Image
in windows filemanager.
Just for clarity I wanted to mention that the SD card I am trying to clone is from a Pi project I did that was created in 2013. So maybe things are different now.

But the SD card definitely brings up 3 devices in Windows File Explorer. RECOVERY which can be opened and the files inside seen. And the other 2 which can't be seen in Windows. And the 3 devices show in Win32DiskImager as well to select for reading.

If I put the same SD card into Ubuntu, 3 devices/partitions show up, and I can see all the files inside all 3 devices/partitions.

So maybe it was just the way NOOBS did things in 2013 :?:

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

Re: Clone SD card on Windows but multiple devices appear

Mon Sep 11, 2017 6:42 pm

fruitoftheloom wrote:
Mon Sep 11, 2017 5:07 am

W32DI makes a byte copy and can only be copied back to exactly the same size SD Card unless one does some funky size adjudtments
Not quite correct. The card does not need to be exactly the same size. It needs to be at least the size of the original.

And for clarification, the "size" is the actual available capacity, not the nominal value marked on the label.

More Pi Please
Posts: 50
Joined: Mon Jun 17, 2013 5:26 pm

Re: Clone SD card on Windows but multiple devices appear

Mon Sep 11, 2017 6:45 pm

fruitoftheloom wrote:
Mon Sep 11, 2017 5:07 am
More Pi Please wrote:
Sun Sep 10, 2017 8:54 pm
I wanted to clone my Raspberry Pi card on Windows.

Found many easy instructions on how to do it with Win32 Disk Imager.

Put card in Windows, Select device, read and save. Easy.

So I get Win32 Disk Imager.
Insert my SD card.
3 devices show up :shock:

One is named RECOVERY. The other 2 devices/partitions unreadable on Windows.

Searched for an answer and can't find one yet.

Is there no way to clone the entire card/devices/partitions into a single image on Windows?

Thank you for any help.
W32DI makes a byte copy and can only be copied back to exactly the same size SD Card unless one does some funky size adjudtments


Raspbian comes with PiClone SD Card Copier and providing the SD Card has enough space, any size will do. You only need a USB SDHC Card Reader and SD Card

PiClone also works with NoobS SD Cards, If not running Raspbian see:

https://github.com/raspberrypi-ui/piclo ... ter/README


An alternative to PiClone is RPiClone:

https://github.com/billw2/rpi-clone

Thank you very much, this was a great answer.

I would like to copy the SD card on a desktop and not on a Pi.

Can I use a virtual machine such as VirtualBox or VMWare and use "Debian with Raspberry Pi Desktop" which is currently "Debian Jessie with Raspberry Pi Desktop" to do as you've suggested? But without an actual Raspberry Pi?

Does that include the "SD Card Copier" referenced here:

https://www.raspberrypi.org/blog/anothe ... -raspbian/

And can I use that to copy my current 4GB SD Pi project card to a new 16GB SD Card? Or copy card to file/image, then copy file/image to new card?

Thank you :D

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Clone SD card on Windows but multiple devices appear

Tue Sep 12, 2017 3:07 am

i only have win7, and that can only read first partition of SD card. ( unless use add tools )
but that has nothing to do with IMAGING SD cards / drives.

so: to copy a 4GB SD card / with a windows PC with card reader / to a bigger SD card
can use win32diskimager or etcher
AND you select a windows DRIVE ( not a partition only )
what creates a 4GB image.
that you can burn to any bigger SD card, but system will only use 4GB.
later from RPI use gparted ... to go from 4GB to full SD card size.
( if it was a RASPBIAN IMAGE there is also a sudo raspi-config menu / advanced options / A1 expand file system / )

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

Re: Clone SD card on Windows but multiple devices appear

Tue Sep 12, 2017 6:35 am

Boot up the machine with a created bootable "Debian Jessie with Raspberry Pi Desktop" Operating System so you are now using something sane....
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

User avatar
HawaiianPi
Posts: 4865
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Clone SD card on Windows but multiple devices appear

Wed Sep 13, 2017 10:40 am

Win32 Disk Imager is a crappy way to back up cards, but if you want to use it, just pick the first device letter Windows assigns to the card and it should back up the entire card.

For example, when I plug a Raspbian card into my Windows 10 machine it shows drive D: as a 62MB "device" labelled boot, and drive E: as unreadable (says it needs to be formatted). If I tell Win32 to copy drive D: it makes a file that is the size of the entire card, not just the 62MB partition. That image could then be used to make another copy of the card, or to return the card to the same state it was in when the image was made at some future date.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

sraeb
Posts: 2
Joined: Mon Jul 20, 2015 3:29 am

Re: Clone SD card on Windows but multiple devices appear

Tue Sep 19, 2017 6:06 am

HawaiianPi wrote: Win32 Disk Imager is a crappy way to back up cards, but if you want to use it, just pick the first device letter Windows assigns to the card and it should back up the entire card.

For example, when I plug a Raspbian card into my Windows 10 machine it shows drive D: as a 62MB "device" labelled boot, and drive E: as unreadable (says it needs to be formatted). If I tell Win32 to copy drive D: it makes a file that is the size of the entire card, not just the 62MB partition. That image could then be used to make another copy of the card, or to return the card to the same state it was in when the image was made at some future date.

For the record, what is your preferred method of backing up the pi SD card to a windows PC?

xMad
Posts: 5
Joined: Fri Mar 16, 2018 8:08 pm

Re: Clone SD card on Windows but multiple devices appear

Fri Mar 16, 2018 8:17 pm

Hi,
I can't make it work
I have a NOOBS SD card and install RaspBian through NOOBS. It creates several partitions
I want to make from W10 a full copy of this SD for future restore

Win32DiskImager
Nevertheless the partition i backup I can't restore it but it's not bootable
EaseUs partition manage
I use Copy Disk
Same result

After test it's impossible to reformat th SD, W10 Disk manager can't handle it
Only EaseUs can delete partition and prepare a W10 reofrmat

Please help to create a backup
Regards,
Xavier

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Clone SD card on Windows but multiple devices appear

Sat Mar 17, 2018 2:04 am

Hi Xavier,

-a- windows and win32diskimager can be used
to copy a SD card (for BACKUP ) to a .img file and burn that to same SD card, or a bigger one, but
not sure to a other card same nominal size.

-b- yes, there are several partitions and you might not see them from windows
( as windows only wants to read the first one only )
and ALL must be backup and restored ( what image programs are doing).
Nevertheless the partition i backup
is wrong wording

-c- possible problems:
-c1- you use a PC internal cardreader what can not handle the used SD card
-c2- the new/backup/copy SD card is not good.

you need to get a external USB SD card reader what
+ can handle all cards
+ can be used from the windows PC
+ AND from RPI and use the Raspbian desktop menu/accessories/SD-card Copier Tool for backup ( even to smaller SD cards )
+ AND even is RPI bootable ( while holding a good SD card ) ( same problem like with USB stick what not are all bootable )

-d- as long you use win32diskimager for reading and writing .img files / full SD cards /
there is no need to think about formatting a SD card.
BUT
if you want to setup a new NOOBS you need to format.
like with windows programs: SDFormatter 5.0 or guiformat 32

xMad
Posts: 5
Joined: Fri Mar 16, 2018 8:08 pm

Re: Clone SD card on Windows but multiple devices appear

Sat Mar 17, 2018 7:17 am

Hi,

--So I backup with win32diskimager the NOOBS SD card with Raspian installed
Because I have to choose a disk I choose BOOT ( RECOVER is also accessible and to other non accessible partitions).
I restored it on a other card same size 16 Gb (not same model) (not same one as I don't won't to crash my config with no validated backup)
=> Can't boot
If you have a detailled mode op ( as you said "ALL must be backup and restored" )?

I use an external Transcend multiple card reader : Never have an issue with it
My new SD is a Sandisk one

--So will try the Raspbian desktop menu/accessories/SD-card Copier => Need several SD card !

Regards

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Clone SD card on Windows but multiple devices appear

Sat Mar 17, 2018 8:21 am

again you mix:
a SD card is like a disk, drive, ....
and it (can have ) has several partitions....

a backup ( call it FULL BACKUP ) should backup the whole DISK / DRIVE / DEVICE ... not one partition only.

BOOT ...RECOVER are partitions only, in your case a backup of these only is no use.

but possibly its only a confusion by windows:
Image
like my win7 filemanager see drive D: RECOVERY ( first FAT partition of SD card )
the win32diskimager select drive D: will backup full SD card ( 8GB / 16GB ...)

so if your .img file is 16GB you got the full SD card
if its 63MB you got the first partition only ( but i not see how that would be possible by win32diskimager )
__________________________________________________________________________________________________________
using sd card copier tool in raspbian desktop
you will copy ( drive to drive ) from
/dev/mmcblk0
to possibly
/dev/sda ( what could be the card reader or a usb stick )
xMad wrote:
Sat Mar 17, 2018 7:17 am
-So will try the Raspbian desktop menu/accessories/SD-card Copier => Need several SD card !
what you want to tell me with this?
as the sd card copier tool is very smart, it might be that your content ( of the 16GB card ) might fit on a 8GB card.

xMad
Posts: 5
Joined: Fri Mar 16, 2018 8:08 pm

Re: Clone SD card on Windows but multiple devices appear

Sat Mar 17, 2018 9:21 am

HI,
Thanks for your answers
You say : "a backup ( call it FULL BACKUP ) should backup the whole DISK / DRIVE / DEVICE ... not one partition only."
But when you select D in Win32Disk Imager you select a partition (as for me I also have E:RECOVER and other hidden partitions) of the SD card not the full disk. Right ?
My image is 16GB.
But when i restore i can't boot !
Will test again.......

-- piclone
I can launch it when i'm pi but it can't access disk (lack of permissions)
I can't launch it (sudo or as root)
-----
[email protected]:~# piclone
No protocol specified

(piclone:1202): Gtk-WARNING **: cannot open display: :10.0
---
Note that from menu it"s unresponsive

Regards,
Xavier

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

Re: Clone SD card on Windows but multiple devices appear

Sat Mar 17, 2018 9:43 am

Does not use NoobS unless you need multiple OSes.

SD Cards are at a price point where one OS per card is viable.

Raspbian Stretch with Desktop includes SD Card Copier which can back up the whole SD Card to a SD Card in a SDHC USB Card Reader providing it is big enough to hold the data (it can be a smaller or larger capacity)

Trying to undertake anything in Windows NT relating to Linux is a Lottery...
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

fbe
Posts: 540
Joined: Thu Aug 17, 2017 9:08 pm

Re: Clone SD card on Windows but multiple devices appear

Sat Mar 17, 2018 9:51 am

xMad wrote:
Sat Mar 17, 2018 9:21 am
-- piclone
I can launch it when i'm pi but it can't access disk (lack of permissions)
I can't launch it (sudo or as root)
-----
[email protected]:~# piclone
No protocol specified

(piclone:1202): Gtk-WARNING **: cannot open display: :10.0
---
Note that from menu it"s unresponsive

Regards,
Xavier
See: Remote desktop (xrdp) on stretch: Some menu items do not work (viewtopic.php?f=66&t=193912)

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Clone SD card on Windows but multiple devices appear

Sat Mar 17, 2018 12:34 pm


rickwookie
Posts: 23
Joined: Sat Mar 03, 2012 11:09 am

Re: Clone SD card on Windows but multiple devices appear

Tue Mar 20, 2018 12:10 pm

drgeoff wrote:
Sun Sep 10, 2017 9:36 pm
gkaiseril wrote:
Sun Sep 10, 2017 9:12 pm
On Windows you need a program that can read Unix/Linux file system and the copy will as large or larger than the size of the sorce sd card.
The first half of that is completely untrue.

A program that makes an image of a card does NOT need to be able to read Unix/Linux file systems. It reads the raw bytes and does not give a fig about the file system(s).

Win32DiskImager is such a program.
I was hoping this was the case, but I tried using Win32DiskImager on my laptop, copying from it's in-built SD card reader, and the image created was only about 63 MiB (the size of the boot partition presumably). Did it on my desktop using a USB card reader and sure enough I got the full 3.75 GiB image that I was expecting from my MicroSD card labelled as 4GB. Btw using diskpart on the laptop only identified the microSD card in the built-in reader as a 63 MB size with a single 63 MB primary partition, so this is a windows (or possible Dell SD card reader driver) issue, not a Win32DiskImager one.

Both laptop and desktop are running Windows 10, and I think it is Win32Disk imager 0.9.5 (1.0.0 won't run on my desktop for some reason).

So I suppose my word of caution here is check the size of the resulting image file matches the card size and don't assume Win32DiskImager has done the job, as it will only copy the size of the disk that Windows is reporting to it, which might be wrong!

Absolute Zero
Posts: 3
Joined: Tue Mar 20, 2018 3:01 pm

Re: Clone SD card on Windows but multiple devices appear

Tue Mar 20, 2018 3:20 pm

Been using Acronis for imaging the SD card. Works great. Easy, well supported. If you can wait for a rebate special I picked up a 3 license build for ~ $5.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Clone SD card on Windows but multiple devices appear

Tue Mar 20, 2018 4:46 pm

i just found this comment:

Since Windows 10 Anniversary update, Disk Management becomes able to partition a USB drive and SD card.

but at https://sourceforge.net/p/win32diskimag ... 3Areleased nothing new?
known bug: Currently, the program will crash if you are using a Ramdisk. This is being debugged.

Return to “Beginners”