User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

A modified Win32DiskImager for Pi users

Wed Dec 23, 2015 2:27 pm

Hello,
Win32DiskImager.gif
Win32DiskImager.gif (21.6 KiB) Viewed 5815 times
A modified vesion of Win32DiskImager (for Pi users).
The original source has been taken from:-
http://sourceforge.net/projects/win32diskimager/

* Added progress bar update when calculating check sums.
* Added hash button, calculates different hashes. Defaults to Sha1.
* Added full/short checkboxes, to enable full size backup or
* full back up to a smaller disk image (just files only, no empty space copied). This is
* work in progress and is not enabled or incuded at the moment.
* Added Refresh button to update USB devices. My system does not auto-refresh USB devices).
* Changed the text colour (I like blue!).

The following hashes can be calculated on any file:-
Md4 - Md5 - Sha1 - Sha224 - Sha256 - Sha384 - Sha512 - Sha3_224 - Sha3_256 - Sha3_384 - Sha3_512
On start up defaults to "Sha1" (for Pi users).

This has been compiled and tested on Windows 7 (32bit), should work on all 32Bit systems
that the original worked on.
The program was compiled using:-
Qt Creator 3.5.1 (opensource)
Based on Qt 5.5.1 MinGW 32bit

The source files will be on DropBox from 24-12-2015:-
https://www.dropbox.com/sh/e66samp5ovxz ... ZIdxa?dl=0

There is no installer for the moment.
The program has to be run as 'Administrator'.
If you just want to run the program, download to a folder on your HDD, the following files:-
Win32DiskImager.exe
Qt5Widgets.dll
QT5Gui.dll
Qt5Core.dll
linwinpthread-1.dll
libstdc++6.dll
libgcc_s_dw2-1.dll
icuuc53.dll
icuin53.dll
icudt53.dll

All files you need are in a folder 'Win32DiskImager' on the DropBox site:-
https://www.dropbox.com/sh/e66samp5ovxz ... 32bit?dl=0
If you don't want to trust these files, install QtCreator 3.5.1/Qt 5.5.1 and build the
program yourself from the source files.

Regards

Edited 16-3-2016, URL added
Last edited by mad-hatter on Sun May 29, 2016 4:59 pm, edited 4 times in total.

mikerr
Posts: 2719
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: A modified Win32DiskImager for Pi users

Wed Dec 23, 2015 2:36 pm

Can this image directly to/from a zipped image ? (as the screenshot appears to show)
Android app - Raspi Card Imager - download and image SD cards - No PC required !

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Wed Dec 23, 2015 3:17 pm

Hello mikerr ,

On the file search, it defaults to *.zip / *.ZIP, but you can search for *.img / *.IMG or all files *.*
No, it does not expand *.zip files.
The image is just showing the *.zip file hash, but its a nice idea to go from a zip file to an image on the SD card.
I'll have a play.

Regards

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Tue Jan 05, 2016 10:40 am

Hello,

I've added a 'Pi Write' button, this allows you to start from an image or zip file.

If starting with a zip file:-
It expands the zip file to an image file and then writes the image to the SD card selected.
If Starting with an image file:-
It writes the image file to the SD card selected.

In both cases when the iamage is written to the SD card, it asks whether you want to edit
the 'config.txt' file on the SD card. If 'Yes' will then open a text edit window for this
with the 'config.txt' file loaded (accepts copy and paste and normal editing).

The 'Pi Write' button will only accept "Jessie" or "Wheezy" zip files at the moment.
I'm working on adding 'Noobs' zip files.

I'm using the 7z (command line vesion of '7zip') for the unzip process.

All other functions of 'Win32DiskImager' work as normal.

Regards
unzip.gif
unzip.gif (21.29 KiB) Viewed 5552 times
write image.gif
write image.gif (21.79 KiB) Viewed 5552 times
edit config.gif
edit config.gif (8.58 KiB) Viewed 5552 times

gjennings
Posts: 8
Joined: Fri May 29, 2015 12:07 am

Re: A modified Win32DiskImager for Pi users

Fri Jan 08, 2016 11:55 pm

Thank you Hatter for a very nice tool. In the newest version (5 days ago as I post) I'm unable to run it, however. I get the dreaded:

This application failed to start because it could not find or load the Qt platform plugin "windows".

Am I missing something at my end, or is a dll missing or something? Thanks in advance -
Gordie

mattmiller
Posts: 1953
Joined: Thu Feb 05, 2015 11:25 pm

Re: A modified Win32DiskImager for Pi users

Fri Jan 08, 2016 11:56 pm

* full back up to a smaller disk image (just files only, no empty space copied). This is
* work in progress and is not enabled or incuded at the moment.
This is the Holy Grail :)

gjennings
Posts: 8
Joined: Fri May 29, 2015 12:07 am

Re: A modified Win32DiskImager for Pi users

Sat Jan 09, 2016 2:07 am

I agree: I did it the long way with dd, and it worked fine, but it wasn't graceful or easy.

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Sat Jan 09, 2016 3:40 pm

Hello gjennings,
This application failed to start because it could not find or load the Qt platform plugin "windows".
What operating system and is it 32 or 64 bit.
What was the complete error message, can you post an image/picture?

The easiest way is to download all the files from the Win32DiskImage-32bit folder on DropBox to a folder on your desktop,
and run as 'administrator' from there.
I've now included a set of checksums for all the files.
I've just downloaded the files from dropbox to a folder on my desktop, and it runs file.

Regards

gjennings
Posts: 8
Joined: Fri May 29, 2015 12:07 am

Re: A modified Win32DiskImager for Pi users

Sun Jan 10, 2016 1:27 am

Sure, Hatter -
I'm on Windows 8.1 64 bit. I downloaded the complete Dropbox folder and ran the tool as Administrator.
Here are the errors I get:
Attachments
Screenshot (60).jpg
Screenshot (60).jpg (21.22 KiB) Viewed 5324 times
Screenshot (61).jpg
Screenshot (61).jpg (22.58 KiB) Viewed 5324 times

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Sun Jan 10, 2016 11:26 am

Hello gjennings,

I think I know what the problem is.
It seems that some of the files in my QT installation are refered to by the program.
I can replicate the same errors by renaming my QT directory so it can't be found.
I'm not using Visual C++ but Qt creator.
I'm searching for a cure.

Regards

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Sun Jan 10, 2016 2:58 pm

Hello gjennings,

I think I've found the cure.
If you would care to download all the files again, it should work.
I've uploaded some extra files that seem to be needed .
I tested by renaming my QT dirs so the system couldn't find them and it ran OK.
Otherwise I don't know the solution.

Regards

gjennings
Posts: 8
Joined: Fri May 29, 2015 12:07 am

Re: A modified Win32DiskImager for Pi users

Sun Jan 10, 2016 4:48 pm

Thanks Hatter! Will do, and will let you know.

gjennings
Posts: 8
Joined: Fri May 29, 2015 12:07 am

Re: A modified Win32DiskImager for Pi users

Sun Jan 10, 2016 6:09 pm

Bingo! Fires up fine, works like a charm!
This utility will be spectacular when you get the image-shrinking operation going. I'll be watching this space.
Thanks Hatter-
Gordie

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Sat Jan 23, 2016 5:56 pm

Hello,

I've added NOOBS to the extract and write on the 'PiWrite' button.

Regards
noobs select.gif
noobs select.gif (16.11 KiB) Viewed 5033 times
write to sd.gif
write to sd.gif (18.78 KiB) Viewed 5033 times
un-zip to HD.gif
un-zip to HD.gif (18.54 KiB) Viewed 5033 times

User avatar
rpdom
Posts: 12805
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: A modified Win32DiskImager for Pi users

Sat Jan 23, 2016 7:58 pm

mad-hatter wrote:Hello,

I've added NOOBS to the extract and write on the 'PiWrite' button.

Regards
noobs select.gif
I like the work you're doing on this :)

How about for NOOBS, because it only requires a smallish partition for the install, your program could write a default blank formatted partition, then put the NOOBS files in it. The size could be fixed at just big enough for the NOOBS files (allowing for future increases)? That would save having to use the SD card formatter program.

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Sat Jan 23, 2016 9:50 pm

Hello rpdom,
rpdom wrote:
mad-hatter wrote:Hello,

I've added NOOBS to the extract and write on the 'PiWrite' button.

Regards
noobs select.gif
I like the work you're doing on this :)

How about for NOOBS, because it only requires a smallish partition for the install, your program could write a default blank formatted partition, then put the NOOBS files in it. The size could be fixed at just big enough for the NOOBS files (allowing for future increases)? That would save having to use the SD card formatter program.
I've not used 'NOOBS' in anger, just for testing the write and extract was OK. I tried the card and it booted, thats all I know about 'NOOBS'.
A question, can the config.txt file be edited/written to before the system boots and does its stuff?
I'll think about you suggestion.

Regards

User avatar
rpdom
Posts: 12805
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: A modified Win32DiskImager for Pi users

Sat Jan 23, 2016 9:58 pm

mad-hatter wrote:I've not used 'NOOBS' in anger, just for testing the write and extract was OK. I tried the card and it booted, thats all I know about 'NOOBS'.
A question, can the config.txt file be edited/written to before the system boots and does its stuff?
I'll think about you suggestion.
I've only tried NOOBS a couple of times to get a feel for how things work.

I don't think you can edit a config.txt file until NOOBS has finished installing an OS.

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: A modified Win32DiskImager for Pi users

Sat Jan 23, 2016 10:05 pm

By default, there is no config.txt file in the NOOBS 'RECOVERY' root partition if that's where you mean.

Not relevant to the current discussion, but I always put one in there by mounting the RECOVERY partition from inside Raspbian after I've installed that to get rid of the initial rainbow splash screen that so many NOOBS users complain about. :)
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Sun Jan 24, 2016 6:25 pm

Hello,

I've found some useful code that can give the following data (tested):-

Code: Select all

With some data
"S:/"
name: "RECOVERY"
fileSystemType: "FAT32"
size: 7879 MB
availableSize: 6772 MB

Code: Select all

Without data (SDFormatter)
"S:/"
name: ""
fileSystemType: "FAT32"
size: 7879 MB
availableSize: 7879 MB
I can determine if its a blank/empty SD card and its format.
One thing with Windows, if the first partion on a drive is not a Windows type it won't even
recognise any partions (all it wants to do is format) and the only thing left is the SDFormattter.
I don't know if the 'DOS' format command has the same restriction.
Are 'DOS' commands supported on Windows 8 and Windows 10, anybody kmow?
By default, there is no config.txt file in the NOOBS 'RECOVERY' root partition if that's where you mean
Not thinking.

Regards

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Tue Jan 26, 2016 12:16 pm

Hello,
rpdom wrote:How about for NOOBS, because it only requires a smallish partition for the install, your program could write a default blank formatted partition, then put the NOOBS files in it. The size could be fixed at just big enough for the NOOBS files (allowing for future increases)? That would save having to use the SD card formatter program.
Please note, this is really intended for 'noobie' users. A lot of people who know how, will do it their own way, anyway.
I don't know how to format the SD card from within 'Qt' (pointers please).

I've refined the NOOBS extract a little, the revised code will be uploaded to DropBox 27-1-2016.

Regards
Attachments
Image2.gif
Image2.gif (20.69 KiB) Viewed 4757 times
Image1.gif
Image1.gif (19.92 KiB) Viewed 4757 times

User avatar
DougieLawson
Posts: 33787
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: A modified Win32DiskImager for Pi users

Tue Mar 15, 2016 12:13 am

I've just tried installing this on my brand new Win10 laptop and failed badly. The program can't find all the DLLs. I've got all ten items from the first post

Code: Select all

 Directory of C:\Users\dl1im\Dropbox (Personal)\Win32DiskImager

14/03/2016  23:57    <DIR>          .
14/03/2016  23:57    <DIR>          ..
16/10/2014  10:34        21,565,880 icudt53.dll
16/10/2014  10:34         3,758,809 icuin53.dll
16/10/2014  10:33         2,093,901 icuuc53.dll
21/12/2014  16:07           119,822 libgcc_s_dw2-1.dll
21/12/2014  16:07         1,026,062 libstdc++-6.dll
21/12/2014  16:07            49,152 libwinpthread-1.dll
14/11/2015  11:32         5,391,360 Qt5Core.dll
12/10/2015  19:31         5,334,528 Qt5Gui.dll
12/10/2015  19:37         6,541,824 Qt5Widgets.dll
31/01/2016  15:26           195,072 Win32DiskImager.exe
              10 File(s)     46,076,410 bytes
               2 Dir(s)  1,890,741,354,496 bytes free

C:\Users\dl1im\Dropbox (Personal)\Win32DiskImager>
Can you help? What have I missed?
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Tue Mar 15, 2016 9:12 am

Hello DougieLawson ,

You need all the files and folders from this link:-
https://www.dropbox.com/home/win32diski ... ager-32bit
Its changed a little since the first post.

Regards

itsmedoofer
Posts: 256
Joined: Wed Sep 25, 2013 8:43 am

Re: A modified Win32DiskImager for Pi users

Tue Mar 15, 2016 12:43 pm

Hi,
mad-hatter wrote:Hello DougieLawson ,
You need all the files and folders from this link:-
https://www.dropbox.com/home/win32diski ... ager-32bit
Its changed a little since the first post.
I think thats a private dropbox link rather than a public one, may want to check...

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

Re: A modified Win32DiskImager for Pi users

Tue Mar 15, 2016 1:29 pm

itsmedoofer wrote:Hi,
mad-hatter wrote:Hello DougieLawson ,
You need all the files and folders from this link:-
https://www.dropbox.com/home/win32diski ... ager-32bit
Its changed a little since the first post.
I think thats a private dropbox link rather than a public one, may want to check...
It is...

https://www.dropbox.com/sh/vkzqeww8o8ia ... 32bit?dl=0 should work.
(found by using the dropbox link in the top post)

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: A modified Win32DiskImager for Pi users

Tue Mar 15, 2016 1:56 pm

Hello,
DirkS wrote: It is...

https://www.dropbox.com/sh/vkzqeww8o8ia ... 32bit?dl=0 should work.
(found by using the dropbox link in the top post)
Yes, my mistake.

Regards

Return to “Off topic discussion”

Who is online

Users browsing this forum: No registered users and 5 guests