Jump to content











Photo
- - - - -

Tiny Hexer - MBR_Backup

tinyhexer partition table bootsector gpt backup mbr backup

  • Please log in to reply
14 replies to this topic

#1 wimb

wimb

    Platinum Member

  • Developer
  • 2991 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 19 April 2019 - 07:25 AM

Posted Image

File Name: Tiny Hexer - MBR_Backup
File Submitter: wimb
File Submitted: 19 Apr 2019
File Updated: 26 Mar 2020
File Category: Tools

password for Tiny_Hexer_MBR-E.zip is bootwimb

Program MBR_Backup_x64.exe with GUI
MBR_Work.exe - Admin Launcher for Tiny Hexer, BOOTICE, Partition Info and MBR Backup

Program - MBR_Backup.cmd available in folder MBR_Backup
Use R-mouse Menu to Run MBR_Backup.cmd as Administrator is required

Make Backup of all Bootsectors of all Local Harddisks Fixed + Removable
Learn More Using the Links in MBR_bookmarks.html in Folder Help_Info

Backup Contains BootSector Files for:

Guid Partition Table - GPT - First 34 Sectors of GPT Harddisk
Master Boot Record - MBR - Sector 0 of Harddisk containing Partition Table

Extended Partition Boot Record - EPBR - Beginning of Extended Partition
Extended Boot Records - EBR - Beginning of Logical Partitions within Extended

Partition BootSectors - 16 Sectors for NTFS or FAT32 and 1 Sector for FAT32 or FAT
And Partition Info File = MBR_Date_ComputerName.txt

MBR_Backup-2020-02-16_204615.jpg == MBR_Backup-2020-02-16_204535.jpg == MBR_Backup-2020-02-16_204447.jpg
==================================================================

The Portable Version of TinyHexer is mpth_small.exe and is available in folder tinyhexer
In any case always run TinyHexer as Administrator, otherwise you get no access to the Disk drives

Use TinyHexer to Study and Compare BootSectors in Detail
Use TinyHexer for Restore of Bootsectors - Hopefully Never Needed

Tiny Hexer - file mpth_18.exe is Installer and that version has Structure Viewer.
Uploaded from https://www.softpedi...iny-hexer.shtml

The folder scripts\Structure Viewer contains the scripts made by jaclaz
Copy the folder scripts to your C:\Program Files (x86)\Tiny Hexer folder.

More Info on using Tiny Hexer Scripts and Structure Viewer was given in http://reboot.pro/to...-hexer-scripts/
For WimOverlay.dat Structure Viewer see http://reboot.pro/to...n-vhd/?p=210758

TinyHexer-WimOverlay-2.dat-2019-04-19_105428.png == TinyHexer-WimOverlay-GPT-2019-04-19_213331.png

Click here to download this file

#2 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 2905 posts
  • Location:Nantes - France
  •  
    France

Posted 19 April 2019 - 12:04 PM

Nice one, thanks for that.

Any way to make it a portable/zip version?

 

Regards,

Erwan



#3 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 19 April 2019 - 12:25 PM

Nice one, thanks for that.
Any way to make it a portable/zip version?
 
Regards,
Erwan

Ow, comeon, we have been using Tiny Hexer since the dawn of time (and it has been discontinued by its Author), there are (were) a few versions, I believe they are all intrinsically "portable", but (among a few others) the main feature (why it is such a useful program) is because it can be scripted and has a scriptable (not too simple, but since I can more or less half-@§§edly manage it, not too difficult either) Structure Viewer capability (that is missing in the reduced "minimal" version which was largely used in BartPE's)

See for more references and the - by now "historical" - Structure Viewers I put together at the time:
http://reboot.pro/to...-hexer-scripts/

:duff:
Wonko

#4 wimb

wimb

    Platinum Member

  • Developer
  • 2991 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 19 April 2019 - 01:20 PM

Nice one, thanks for that.

Any way to make it a portable/zip version?

 

 

The Portable Version of TinyHexer is mpth_small.exe and is available in folder tinyhexer in UEFI_MULTI-addon (collection of Portable Apps) and in VHD_WIMBOOT

 

However, that version does not have the Structure Viewer.

 

In any case always run TinyHexer as administrator, otherwise you get no access to the Disk drives

 

TinyHexer-WimOverlay-2.dat-2019-04-19_105428.png == TinyHexer-WimOverlay-GPT-2019-04-19_213331.png


#5 gbrao

gbrao

    Frequent Member

  • Advanced user
  • 410 posts
  •  
    India

Posted 20 April 2019 - 06:23 AM

Nice one, thanks for that.

Any way to make it a portable/zip version?

 

Regards,

Erwan

 

I used yaP

 

TinyHexerPortable.ini

; configuration file for yaP v0.7.x (http://rolandtoth.hu/yaP/)
; application name: 
; version: 
; website: 

[GENERAL]
application = Tiny Hexer\mpth.exe
; commandline = 
; workdir = 

[BEFORE]
dir = %APPDATA%\mirkes.de :: ADRO
; file = %Appdata%\Dir\File.ini
; regkey = HKCU\Software\RegKey

[AFTER]
; -dir = %Appdata%\Dir :: ifempty
; -file = %Appdata%\File*
-regkey = HKCU\Software\mirkes.de


[attachment=16617:Capture_2019-04-20_115401.jpg]

EDIT ; Sorry, it also creates a reg entry

HKEY_CURRENT_USER\Software\mirkes.de

 

Will modify the ini file, test and post

 

EDIT2 : modified the "code" in this post.

Attached Thumbnails

  • Capture_2019-04-20_115401.jpg


#6 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 2905 posts
  • Location:Nantes - France
  •  
    France

Posted 20 April 2019 - 03:57 PM

Thanks @gbrao, @wimb !

 

I am quite a big fan of HxD (or winhex but this one is not free) but I have read more than one over here about tinyhexer and I shall  see for myself about this structure viewer.



#7 wimb

wimb

    Platinum Member

  • Developer
  • 2991 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 06 February 2020 - 01:22 PM

*** Update *** - Added MBR_Backup

 

Download: Tiny_Hexer_MBR

 

 Program - MBR_Backup.cmd - 06 Feb 2020
 Use R-mouse Menu to Run MBR_Backup.cmd as Administrator is required
 
 Make Backup of all Bootsectors of all Local Harddisks Fixed + Removable
 Learn More Using the Links in MBR_bookmarks.html in Folder Help_Info
 
 Use TinyHexer (mpth_small.exe) to Study and Compare BootSectors in Detail
 Use TinyHexer for Restore of Bootsectors - Hopefully Never Needed
 In any case always run TinyHexer as Administrator, otherwise you get no access to the Disk drives
 
 ***** Backup Contains BootSector Files for:
 
 Guid Partition Table - GPT - First 34 Sectors of GPT Harddisk
 Master Boot Record - MBR - Sector 0 of Harddisk containing Partition Table
 
 Extended Partition Boot Record - EPBR - Beginning of Extended Partition
 Extended Boot Records - EBR - Beginning of Logical Partitions within Extended
 
 Partition BootSectors - 16 Sectors for NTFS or FAT32 and 1 Sector for FAT32 or FAT
 And Partition Info File = MBR_Date_ComputerName.txt
 
:cheers:


#8 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 07 February 2020 - 09:53 AM

Nice idea :), BUT I have of course to nitpick :rolleyes: :

1) on FAT12/16 the bootsector is one sector, OK  :thumbsup:

2) on NTFS the bootsector (which is the $Boot file) is 16 sectors (contiguous) , OK  :thumbsup:

3) on FAT 32 the bootsector is (usually) THREE sectors  :eek:  (sometimes non-contiguous, and their position is different depending on the OS that formatted the volume), i.e.:

DOS sectors 0, 1, 2

NT sectors 0, 1, 12
ReactOS 0,1,14

And, there are also (or should be) three backup sectors of those within the "reserved" sectors.

 

So (for the hopefully never needed use as actual "backup" - meant as something useful to restore the volume) a slightly more complex approach would be needed, i.e. checking the amount of "reserved sectors" (or if you prefer from sector 0 up to the first FAT table) and save them.

 

As a side note, since you are playing with this kind of stuff, you might be interested in (and hopefully adapt, better and/or extend it) this batch:(consider it *like* a tiny hexer script for boot sectors BUT without tiny hexer ;))

 

https://msfn.org/boa...comment=1001712

 

:duff:

Wonko



#9 wimb

wimb

    Platinum Member

  • Developer
  • 2991 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 07 February 2020 - 03:55 PM

So (for the hopefully never needed use as actual "backup" - meant as something useful to restore the volume) a slightly more complex approach would be needed, i.e. checking the amount of "reserved sectors" (or if you prefer from sector 0 up to the first FAT table) and save them.

 

 

In case of FAT32 and NT it  would probably be sufficient to backup the first 16 sectors of the FAT32 partition, so that we also have a backup of the code in sector 12.

I think the content of sector 2 is rather variable and may be not so useful to restore ...

FAT32 Sector 0 is of course the most interesting part useful for restore in order to solve problems.

For the moment the present approach can be considered as already sufficient to solve (unexpected) problems ....

 

The NT FAT32 sector 0 and 1 have a backup as sector 6 and 7, but sector 12 does not have any backup.



#10 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 07 February 2020 - 04:43 PM

The "fixed 16 sectors" approach (when making a copy/backup) would be "good enough" for FAT32, as - at least under XP - a 33 MB FAT32 volume has 32 reserved sectors, so if you are going to save (and then restore) the first 16 there is no risk to overlap with FAT tables. :thumbsup:

 

It is assumed that people making their own FAT32 formatting know about the risk of making less than 16 reserved sectors and will be able to manage their eventual issues.

 

:duff:

Wonko



#11 antonino61

antonino61

    Silver Member

  • Advanced user
  • 757 posts
  •  
    Italy

Posted 08 February 2020 - 12:05 AM

@wonko

"eventual" meaning "possible", I suppose.



#12 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 08 February 2020 - 08:58 AM

@wonko

"eventual" meaning "possible", I suppose.

"eventual" strangely enough meaning "eventual":

 

https://www.dictiona...browse/eventual

 

 

adjective
1
happening at some indefinite future time or after a series of occurrences; ultimate: His mistakes led to his eventual dismissal.
2
depending upon uncertain events; contingent.

 

:duff:

Wonko



#13 antonino61

antonino61

    Silver Member

  • Advanced user
  • 757 posts
  •  
    Italy

Posted 08 February 2020 - 10:43 AM

it includes the idea of so much unpleasant waiting, believe me.



#14 wimb

wimb

    Platinum Member

  • Developer
  • 2991 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 10 February 2020 - 10:01 AM

*** Update - MBR_Backup

 

- Added - FAT32 Backup Size = 16 Sectors

 

Download: Tiny_Hexer_MBR



#15 wimb

wimb

    Platinum Member

  • Developer
  • 2991 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 17 February 2020 - 05:48 AM

*** Update - MBR_Backup

 

Added - MBR_Backup_x64.exe Program with GUI

- Added - MBR_Work.exe - Admin Launcher for Tiny Hexer, BOOTICE, Partition Info and MBR Backup
 
More Info is here

 

Download: Tiny_Hexer_MBR    :cheers:  

 

MBR_Backup-2020-02-16_204615.jpg == MBR_Backup-2020-02-16_204535.jpg == MBR_Backup-2020-02-16_204447.jpg






Also tagged with one or more of these keywords: tinyhexer, partition table, bootsector, gpt backup, mbr backup

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users