Jesus 'n Jim
A mainly PC (some Mac) site w/Software, Computer Repair Info, How-To's on Using Computers
Technical Support 1-360-521-2060 (my business line cell)

diskgeometry (C,Auto-it3)

 

Overview

diskgeometry - show disk geometry in terms of cylinders, heads, sectorspertrack, sectorsize, totalsectors, disksize (in bytes and in disk industry SI units, not in computer SI units).

Autoit3, djgpp, and MinGW compiled executables with sources [auto-it3 32+64bit,DOS 32-bit, windows 32+64-bit]).

This program shows the disk geometry of the specified disk numbers. the disk numbers correspond to either BIOS disk numbers (DOS version) or the disk numbers listed in control panel|administrative tools|computwer management|disk management. (windows version)

Auto-it is a basic-like GUI compiler which I use to make wraparound GUIs for my command-line utilities. Auto-it3 generates VERY tight code and requires no installers to run, however, I have written an installer for this application because people generally expect one. The program is available in DOS 32-bit and Windows 32-bit command-line), a GUI written in Auto-it3 (Windows 32-bit).

command-line versions are also in the zip file and in the installer.

Downloads

lsm file.

right click on the download button and pick save target as(ff) or save link as (ie) or click on the button(chrome, safari)

Download Now
diskgeometry-1.7-setup.exe (Version 1.7, 07/17/2011)


Download Now
diskgeom.zip (Version 1.7, 07/17/2011)


07/17/2011  11:21 PM         2,079,577 diskgeometry-1.7-setup.exe
07/17/2011  11:23 PM         4,088,026 diskgeom.zip
07/17/2011  11:30 PM       202,156,032 diskwipe.iso
07/17/2011  11:27 PM     2,036,985,856 fdoem.iso

%%%% HASHDEEP-1.0
%%%% size,md5,sha1,sha256,filename
## Invoked from: C:\prj\diskgeometry
## C : \ >  hashdeep -c md5,sha1,sha256 diskgeometry-1.7-setup.exe diskgeom.zip \prj\wipe-iso\diskwipe.iso
##
2079577,ecf9765196040a3897c2d9dd5efe5089,3786543f13d116e130818e8c4e911dfb184ae8f2,a698fe1d4754ef0edffef01620e58f119b893a85adb8f2fa797916ebcda6b29a,C:\prj\diskge
ometry\diskgeometry-1.7-setup.exe
4088026,54af11219526fa957bf65303d4887dd2,d73217464a42502f9bee5dd3e9b32ce24a6fb7cd,b163b642a692433fa4a5663f1567b462c4a203badf20df2d8703cd4a5dac0063,C:\prj\diskge
ometry\diskgeom.zip
202156032,e35cbfbfbae1f614a0e743562f3cf78d,0d277cc045dccc9cce5e6ffa821d0a21da766630,0c3631350bf6ee8b84994d36a7dbb3e154279c10dd56511279f25bfa89a53c21,C:\prj\wipe
-iso\diskwipe.iso
07/17/2011  11:27 PM     2,036,985,856 fdoem.iso

%%%% HASHDEEP-1.0
%%%% size,md5,sha1,sha256,filename
## Invoked from: C:\os\fdos
## C : \ >  hashdeep -c md5,sha1,sha256 fdoem.iso
##
2036985856,edd338a898ef8ae82a74728250f87bdd,8f2c1070ed1c6ed3af0f4f6a540e127bf7f755be,89231863d9c02f8246e9c95207b1a04007d0a74446bba031b1eb5eb7cd56f0e3,C:\os\fdos
\fdoem.iso

07/17/2011  11:30 PM       202,156,032 diskwipe.iso

%%%% HASHDEEP-1.0
%%%% size,md5,sha1,sha256,filename
## Invoked from: C:\prj\wipe-iso
## C : \ >  hashdeep -c md5,sha1,sha256 diskwipe.iso
##
202156032,e35cbfbfbae1f614a0e743562f3cf78d,0d277cc045dccc9cce5e6ffa821d0a21da766630,0c3631350bf6ee8b84994d36a7dbb3e154279c10dd56511279f25bfa89a53c21,C:\prj\wipe
-iso\diskwipe.iso

Screenshots

main
results: screen shot of results
copyright
screen shot of help

License

diskgeometry is under the GPL3 license. The biosdsk2.* library under LGPL2. The rest of the libraries are under GPL3 license. WriteSector() and ReadSector() Copyright 2002 Sreejith S. (no copyright notice was included, but I have included one) rest of diskgeometry program Copyright 2009 Jim Michaels.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.


Examples

06/01/2011  03:32 AM         4,176,362 diskgeom.zip
06/01/2011  03:44 AM       116,781,056 diskwipe.iso
06/01/2011  03:40 AM     1,970,219,008 fdoem.iso

%%%% HASHDEEP-1.0
%%%% size,md5,sha1,sha256,filename
## Invoked from: C:\prj\diskgeometry
## C : \ >  hashdeep -c md5,sha1,sha256 diskgeometry-1.6-setup.exe diskgeom.zip \prj\wipe-iso\diskwipe.iso
##
2134684,e58ae16cc5994dd9a48a888e1b52e545,51e7e2dfd3219da18fde5ad116950cbc0638fb00,1491429a932d363bcd92ca104ec8cac9f1e19f5a027362e35fffd1290906c8bc,C:\prj\diskge
ometry\diskgeometry-1.6-setup.exe
4176362,6b7bf707925b5e13266c08761b9983a0,826ea56e83f749be1dfbc76f473b10a0d20f7ed3,c68bafb19c555dc1dfb861c3c5f99a4911daa63d8f94a374014e22c541cfcb8d,C:\prj\diskge
ometry\diskgeom.zip
116781056,d30f6616a9bbda59530e1d1a7d1658b3,f8b9fc74fc824045bbdcefc00592eadaa2ef1a3f,3ffa0d8df44cf752e92a91e1e92d32381dc6272fcf49abab9685ea055d8516f0,C:\prj\wipe
-iso\diskwipe.iso
06/01/2011  03:40 AM     1,970,219,008 fdoem.iso

%%%% HASHDEEP-1.0
%%%% size,md5,sha1,sha256,filename
## Invoked from: C:\os\fdos
## C : \ >  hashdeep -c md5,sha1,sha256 fdoem.iso
##
1970219008,3468b50eb171e10673af92cc57c61b84,2384405c60d14f4ce4047155d0693d12163f2b77,dcc84d4cebb1ceb1fd6a164e135d24a98f8a1090336a8c72cac3bd6f6d55a9ae,C:\os\fdos
\fdoem.iso

06/01/2011  03:44 AM       116,781,056 diskwipe.iso

%%%% HASHDEEP-1.0
%%%% size,md5,sha1,sha256,filename
## Invoked from: C:\prj\wipe-iso
## C : \ >  hashdeep -c md5,sha1,sha256 diskwipe.iso
##
116781056,d30f6616a9bbda59530e1d1a7d1658b3,f8b9fc74fc824045bbdcefc00592eadaa2ef1a3f,3ffa0d8df44cf752e92a91e1e92d32381dc6272fcf49abab9685ea055d8516f0,C:\prj\wipe
-iso\diskwipe.iso

Documentation

Wed 06/01/2011  2:05:20.56|C:\prj\diskgeometry\diskgeometry-1.7|>32\diskgeometry -?
diskgeometry - show disk geometry of specific disk numbers
usage: diskgeometry [-[-]?|/?|-[-]h[elp]|/h[elp]] [-[-]v[er[sion]]|/v[er[sion]]]
       diskgeometry physicalDriveNum [physicalDriveNum ...] [-[-]o[ut[put]]|/o[ut[put]] filepath] [-[-]SI|/SI] [-[-]IEC|/IEC]

-? or -h or -help or --help or /help or no arguments gives this help.
-v or -version or --version or gives version information and exits.
specifying no switches & only drive# shows the disk geometry.
-SI (the default) specifies SI units (K, M, G, T, P, E) in terms of powers of 1000.
-IEC specifies IEC Computer Science? units (Microsoft style, Ki, Mi, Gi, Ti, Pi, Ei) in terms of powers of 1024.
Win 9x/ME machines will be limited to 1TiB=1,099,511,627,776 bytes.
drive 0 is first hard disk - it *may not* be C:.  it isn't on my box because the PATA drives come first before the SATA drives, so on my box 0=F: and 1=C:.
integer64 is unsigned and case insensitive.  it ignores underscores(_). it can be hexadecimal (start with 0x), decimal (plain number or start with 0d), octal (s
tart with 0, 0q, 0o), binary (start with 0b), and can be appended with SI units (:B :D :DB :H :HB :K :KB :M :MB :G :GB :T :TB :P :PB :E :EB :Z :ZB :Y :YB) or co
mputer units (:Ki :KiB :Mi :MiB :Gi :GiB :Ti :TiB :Pi :PiB :Ei :EiB :Zi :ZiB :Yi :YiB)  as a multiplier suffix. priority will be given to longer suffixes in a s
tream of printable characters.
Since this goes by physical disk number, you can find out which disk is which by looking it up in 'Control Panel|Administrator Tools|Computer Management|Disk Ma
nagement' on 2000/XP/Vista boxen or use mbrprint.
This program is under the GPL3 license. The biosdsk2.* library under LGPL2. The rest of the libraries are under GPL3 license.
WriteSector() and ReadSector() Copyright 2002 Sreejith S. (no Copyright notice was included, but I have included one)
rest of diskgeometry program Copyright 2009-2010 Jim Michaels.

Wed 06/01/2011  2:07:46.76|C:\prj\diskgeometry\diskgeometry-1.7|>