Jump to content











Photo
* * * * - 1 votes

ImgPTEdit v0.1.0.2 [Update]


  • Please log in to reply
21 replies to this topic

#1 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 25 July 2010 - 09:01 AM

Hello community :dubbio:

today I release ImgPTEdit. It's a small partition table editor for raw HD image files.

The main freatures are:

- edit partition table
- edit disk signature
- edit partition boot sector
- truncate/extend image files

Hope you like it B)

Posted Image

Download ImgPTEdit v0.1.0.2

Changes:

v0.1.0.2
- Added automatic geometry detection
- Added capacity in bytes to partition list
- Fixed bug in partition boot sector editor (sector size wasn't written correctly)

v0.1.0.1
- See 2nd post


Have fun
TheK
:cheers:

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14825 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 25 July 2010 - 09:40 AM

Nice. :cheers:

(small :)) problems at first sight:
  • the posted screenshot is probably under Vista/7, even on it the lower part of "y" and "g" in the box titles like "Disk signature" or "Partition table entry details" is "cut off", on my XP the whole line of text has lower 1/4 "cut off"
  • the open image dialog is "deceiving", it only seemingly allows "*.img" but lists "*.ima" allright, maybe you should add a "*.*" and have a "real" "*.img"
  • In "Partition boot sector details" there is a typo Cluser->Cluster
  • The "Load from Physical Drive" NEEDS a confirmation, as is it seems like it UNCONDITIONALLY writes to the image the MBR from hard disk! :unsure: (or the ".... was succesfully written" message should be re-worded.

:dubbio:
Wonko

#3 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 25 July 2010 - 10:01 AM

Thanks for the input Wonko :)

I'll fix that asap.

[*]The "Load from Physical Drive" NEEDS a confirmation, as is it seems like it UNCONDITIONALLY writes to the image the MBR from hard disk! :dubbio: (or the ".... was succesfully written" message should be re-worded.


This function is ment to read the MBR from a hard disk and write it to the image file. Why does that need any confirmation? :unsure:

#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14825 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 25 July 2010 - 10:09 AM

This function is ment to read the MBR from a hard disk and write it to the image file. Why does that need any confirmation? :dubbio:


The button says "Load".
When you press it a windows pops up saying it was "Written".

Does this actually loads (or loads AND writes) the MBR or JUST the MBR CODE (leaving partition table DATA intact?) :)

In any case "Load" means NOT "If you press this button the MBR (CODE) of the loaded image will be overwritten (no way back!)".

Or the MBR was actually just LOADed and another button needs to be pressed to "apply changes"?

:unsure:
Wonko

#5 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 25 July 2010 - 11:13 AM

Ok, point taken :dubbio:

It's not 100% clear what this function does in details. I'll change that too.

#6 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 25 July 2010 - 01:59 PM

Version 0.1.0.1 is available (see first post).

#7 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14825 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 25 July 2010 - 02:13 PM

Good. :unsure:

  • The Geometry of the image is NOT detected properly. :)

Since you have some space on the right, could you add size in bytes? :dubbio:


:cheers:
Wonko

Attached Thumbnails

  • imgptedit.JPG


#8 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 25 July 2010 - 02:24 PM

  • The Geometry of the image is NOT detected properly. :dubbio:

errm, well, there is NO automatic geometry detection :)

Since you have some space on the right, could you add size in bytes? :unsure:

you mean an additional column in the listview?

#9 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14825 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 25 July 2010 - 02:41 PM

errm, well, there is NO automatic geometry detection :P

Yes, I thought as much, you were cheating :unsure:, and I got you! :)

Maybe it should be made somehow clear that this (unlike the other values) is NOT something "read" from anywhere, but rather a needed setting to do LBA<->CHS conversions. :unsure:
What about calling it "Chosen geometry" and replace the text
"Heads per Cylinder / Sectors per Track"
with
"Heads/Sectors (Default 255/63)"
Anyway the "Sectors per track" should really be "Sectors per Head". :cheers:

you mean an additional column in the listview?

Yep. :cheers:
That would be handy since Mib, Kib, etc. are usually confused with Mb, Kb, etc.

:dubbio:
Wonko

#10 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 26 July 2010 - 03:11 AM

Yes, I thought as much, you were cheating :cheers:, and I got you! :P

Maybe it should be made somehow clear that this (unlike the other values) is NOT something "read" from anywhere, but rather a needed setting to do LBA<->CHS conversions. :cheers:

I thought that was clear because (unlike the other values) these values are set BEFORE you open any image file :cheers:

Autodetection should be possible too. I'll give it a try.

Yep. :cheers:
That would be handy since Mib, Kib, etc. are usually confused with Mb, Kb, etc.

Done :unsure:

#11 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 01 August 2010 - 08:30 AM

Updated to version 0.1.0.2 (see first post).

#12 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14825 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 01 August 2010 - 10:07 AM

Updated to version 0.1.0.2 (see first post).


:P

:D

Feature request :unsure::
When you highlight an entry in the partition table view, could you add to the right click menu:
  • Dump to Volume Image
  • Delete PT Entry

a:
  • Copy values to Clipboard
? :dubbio:

Having the possibility to copy the values and paste them would be a plus.
I would suggest [TAB] delimited format, so that it can be pasted almost anywhere.

:D
Wonko

#13 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 01 August 2010 - 11:14 AM

Having the possibility to copy the values and paste them would be a plus.
I would suggest [TAB] delimited format, so that it can be pasted almost anywhere.


Where do you want to paste those values? Into another PT entry?
Do you just want the values or description + values? :dubbio:

#14 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10545 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 01 August 2010 - 11:30 AM

Very good tool. I like it.

Will be mentioned on tomorrow's boot land newsletter.

:dubbio:

#15 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 01 August 2010 - 11:49 AM

Will be mentioned on tomorrow's boot land newsletter.


Thanks Nuno :D

At the moment it doesn't look like there are many people interested in this kind of tool (less then 20 downloads so far :dubbio: )

#16 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14825 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 01 August 2010 - 12:12 PM

Where do you want to paste those values? Into another PT entry?
Do you just want the values or description + values? :D


I was thinking about the abilty to copy and paste them in a document, such as a Notepad file or be able to paste them in a reply on the Forum, this kind of stuff.

Or save the values in a .txt file...

Something like this:
Boot	Type	Bcyl	Bhead	Bsec	Ecyl	Ehead	Esec	Blba	Sectors	Elba	Size	Sizebytes

80	07	0	1	1	202	15	63	63	204561	204623	99,88Mb	104735232

Also, maybe it would be a good idea (if possible) :dubbio: to check if CHS and LBA values are balanced (like having the Start LBA and LBA Size textbox get green background if OK and yellow if not), and do the same for the bootsectors fields Sectors per track, Heads and Hidden sectors), adding a "Check" button or "automatically".

In other words, right now the tool is a nice viewer/editor/calculator, maybe it is possible to add the features to make it also a "validating" tool.
Such a feature would make it more suitable for the less experienced users, and probably add to the popularity of the thingy.

20 downloads in a few days is not that bad, considering the "verticality" of the app. :unsure:, compare with the "success" (please read as "complete lack of it" :P) the TinyHexer scripts got:
http://www.boot-land...?showtopic=8734
in nearly one year.

:D
Wonko

#17 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 01 August 2010 - 12:39 PM

I was thinking about the abilty to copy and paste them in a document, such as a Notepad file or be able to paste them in a reply on the Forum, this kind of stuff.


hmm... :D
How about a complete report with all the important infos about the image file (partition table details, total size, unpartitioned space, boot sector details, etc.)?

Also, maybe it would be a good idea (if possible) :D to check if CHS and LBA values are balanced (like having the Start LBA and LBA Size textbox get green background if OK and yellow if not), and do the same for the bootsectors fields Sectors per track, Heads and Hidden sectors), adding a "Check" button or "automatically".


Good idea :dubbio: That should be no problem.

#18 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10545 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 01 August 2010 - 12:41 PM

Well.. tiny hexer still rules as an hex editor in my opinion. Even when working outside of windows I run it under wine to work with binary files and understand what is going on under the hood.

No other hex editor comes close to it.

As for your scripts, guess it depends on the visibility. If you keep the topic active, it is listed on the front page and more people get to see and try it out. Unfortunately, there is no way to create a proper directory of interesting topics that people can visit as years pass by.

This type of directory is something that I keep in mind for a long time now. I'm almost finishing my studies, should hopefully have time available afterwards as one of my intentions is to take a full year of vacations..

:dubbio:

#19 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14825 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 01 August 2010 - 12:51 PM

hmm... :dubbio:
How about a complete report with all the important infos about the image file (partition table details, total size, unpartitioned space, boot sector details, etc.)?


:P

@Nuno
Naaah, it's the "intended audience" that is very narrow. :unsure:


:D
Wonko

#20 ksanderash

ksanderash

    Frequent Member

  • Advanced user
  • 162 posts
  • Interests:electronics, PCs, cinema, reading books, psychology, philosophy
  •  
    Moldova

Posted 14 August 2010 - 07:25 PM

Hm, is it working? Tried both Windows 7 and XP 32-bit.

Posted Image

#21 TheK

TheK

    Frequent Member

  • Advanced user
  • 141 posts
  • Location:Germany (BW)
  •  
    Germany

Posted 29 August 2010 - 07:44 AM

Hm, is it working? Tried both Windows 7 and XP 32-bit.

Posted Image


That means the file MSCOMCTL.OCX is missing on your system.
Download and execute redistcomctl.exe.
This will install the file for you.

An Update for this file is available for download here:
http://www.microsoft...;displaylang=en
Note that this is an update version and it will only be installed if the file is already installed on your system.

#22 ksanderash

ksanderash

    Frequent Member

  • Advanced user
  • 162 posts
  • Interests:electronics, PCs, cinema, reading books, psychology, philosophy
  •  
    Moldova

Posted 29 August 2010 - 12:22 PM

That means the file MSCOMCTL.OCX is missing on your system.

No wonder -- it doesn't exist even on my Windows XP SP2/SP3 Setup CDs ;)

Thanks! Now it starts :cheers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users