okay! I've tested making an image, then removing all partitions from the SD card entirely, and using dd for windows to put the image back on.
And it works perfectly! And the image file compressed from 4G down to 39g.
So, the process for making a distributable image that can be easily set up in windows is:
1) under linux, run: dd if=
/dev/sdb of=dingux.img bs=1M
change the underlined portion to the actual SD card, of course.
2) compress dingux.img for transfer: tar -cvzf dingux.tgz dingux.img
3) upload image somewhere. Done!
For installing the image onto the SD card:
1) under windows, grab
DD for Windows. Unpack it, and rename dd.exe to dd-removable.exe. This makes it ONLY work on removable drives.
2) Uncompress dingux.tgz with WinRar or similar into the same directory as dd-removable.exe.
3) open a command prompt in this directory.
4) type: dd-removable.exe --list
You will get a list similar to this:
- Code: Select all
C:\a320\test\dd>dd-removable --list
rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL. See copying.txt for details
NT Block Device Objects
\\?\Device\Harddisk3\Partition0
link to \\?\Device\Harddisk3\DR226
Removable media other than floppy. Block size = 512
size is 3963617280 bytes
See that
\\?\Device\Harddisk3\Partition0 entry? That's my 4G SD card. It's the only removable device plugged in, and the size is correct.
5) to write the dingux image to the SD card, the command is this:
dd-removable if=dingux.img of=\\?\Device\Harddisk3\Partition0 bs=1M --progress
You'll see a number counting up. When it completes, you'll see something like this:
- Code: Select all
C:\a320\test\dd>dd-removable if=dingux.img of=\\?\Device\Harddisk3\Partition0 bs=1M --progress
rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL. See copying.txt for details
3,963,617,280
3780+0 records in
3780+0 records out
And that's it! Inspecting the SD card under Ubuntu shows that everything's in place, and my A320 still boots to linux correctly.
So, once we have a menu system, and Dingux is actually end-user ready, it's pretty easy to make a distributable file.