Page 1 of 2

A modified Win32DiskImager for Pi users

Posted: Wed Dec 23, 2015 2:27 pm
by mad-hatter
Hello,
Win32DiskImager.gif
Win32DiskImager.gif (21.6 KiB) Viewed 8416 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

Re: A modified Win32DiskImager for Pi users

Posted: Wed Dec 23, 2015 2:36 pm
by mikerr
Can this image directly to/from a zipped image ? (as the screenshot appears to show)

Re: A modified Win32DiskImager for Pi users

Posted: Wed Dec 23, 2015 3:17 pm
by mad-hatter
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

Re: A modified Win32DiskImager for Pi users

Posted: Tue Jan 05, 2016 10:40 am
by mad-hatter
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 8153 times
write image.gif
write image.gif (21.79 KiB) Viewed 8153 times
edit config.gif
edit config.gif (8.58 KiB) Viewed 8153 times

Re: A modified Win32DiskImager for Pi users

Posted: Fri Jan 08, 2016 11:55 pm
by gjennings
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

Re: A modified Win32DiskImager for Pi users

Posted: Fri Jan 08, 2016 11:56 pm
by mattmiller
* 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 :)

Re: A modified Win32DiskImager for Pi users

Posted: Sat Jan 09, 2016 2:07 am
by gjennings
I agree: I did it the long way with dd, and it worked fine, but it wasn't graceful or easy.

Re: A modified Win32DiskImager for Pi users

Posted: Sat Jan 09, 2016 3:40 pm
by mad-hatter
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

Re: A modified Win32DiskImager for Pi users

Posted: Sun Jan 10, 2016 1:27 am
by gjennings
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:

Re: A modified Win32DiskImager for Pi users

Posted: Sun Jan 10, 2016 11:26 am
by mad-hatter
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

Re: A modified Win32DiskImager for Pi users

Posted: Sun Jan 10, 2016 2:58 pm
by mad-hatter
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

Re: A modified Win32DiskImager for Pi users

Posted: Sun Jan 10, 2016 4:48 pm
by gjennings
Thanks Hatter! Will do, and will let you know.

Re: A modified Win32DiskImager for Pi users

Posted: Sun Jan 10, 2016 6:09 pm
by gjennings
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

Re: A modified Win32DiskImager for Pi users

Posted: Sat Jan 23, 2016 5:56 pm
by mad-hatter
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 7634 times
write to sd.gif
write to sd.gif (18.78 KiB) Viewed 7634 times
un-zip to HD.gif
un-zip to HD.gif (18.54 KiB) Viewed 7634 times

Re: A modified Win32DiskImager for Pi users

Posted: Sat Jan 23, 2016 7:58 pm
by rpdom
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.

Re: A modified Win32DiskImager for Pi users

Posted: Sat Jan 23, 2016 9:50 pm
by mad-hatter
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

Re: A modified Win32DiskImager for Pi users

Posted: Sat Jan 23, 2016 9:58 pm
by rpdom
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.

Re: A modified Win32DiskImager for Pi users

Posted: Sat Jan 23, 2016 10:05 pm
by GTR2Fan
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. :)

Re: A modified Win32DiskImager for Pi users

Posted: Sun Jan 24, 2016 6:25 pm
by mad-hatter
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

Re: A modified Win32DiskImager for Pi users

Posted: Tue Jan 26, 2016 12:16 pm
by mad-hatter
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

Re: A modified Win32DiskImager for Pi users

Posted: Tue Mar 15, 2016 12:13 am
by DougieLawson
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?

Re: A modified Win32DiskImager for Pi users

Posted: Tue Mar 15, 2016 9:12 am
by mad-hatter
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

Re: A modified Win32DiskImager for Pi users

Posted: Tue Mar 15, 2016 12:43 pm
by itsmedoofer
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...

Re: A modified Win32DiskImager for Pi users

Posted: Tue Mar 15, 2016 1:29 pm
by DirkS
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)

Re: A modified Win32DiskImager for Pi users

Posted: Tue Mar 15, 2016 1:56 pm
by mad-hatter
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