Wilders Security Forums  

Go Back   Wilders Security Forums > Official Paragon Support Forum > Other Paragon Disk Utilities
User Name
Password
Register FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread
  #1  
Old January 19th, 2014, 10:47 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Problems for "Backup & Recovery" tool

(SBJ) Problems for "Backup & Recovery" tool

-- par.1

I confirmed the behavior of the following "Backup & Recovery" tool
with the evaluation tools ("bpbf.bat" etc.) shown below.
The "Backup & Recovery" tool shall be revised to fix the following
Discovered Problems (1) and (2).

(To be continued)

Last edited by souhalt : January 24th, 2014 at 04:58 PM.
  #2  
Old January 20th, 2014, 04:39 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re: Problems for "Backup & Recovery" tool

(Continued)

### Discovered Problems ###

(1) "Format Partition..." for FAT32 File system

Until the following problems have been fixed, it is necessary
to use the alternative FAT32 Formatter tools shown below.

- "PartitionType" is not 0x0c (FAT32 partition that uses extended int13 services),
and is forced 0x0b (FAT32 partition that does not use extended int13 services).
It should be possible to set 0x0c for using LBA addressing mode.

- PBR-BPB "0eh-0fh Reserved Sectors" is not fixed 0x20,
and is variable, e.g. 0x22 (for 512 bytes per physical/logical sector).
That does not support Partition Alignment of 8 logical sectors unit on the HDD/SSD
which uses AFT (Advanced Format Technology; 4096 bytes per physical sector).
It should be fixed 0x20 to support AFT HDD/SSD.

- PBR-BPB "1ch-1fh Hidden Sectors" is not the offset from the beginning of the disk,
and is forced 0x3f as for Logical Partitions.
It should be the offset from the beginning of the disk as with Primary Partitions.
See also the "Important Reference Links" shown below.

Code:
Table-1. "Format Partition..." for FAT32 File system Item Pi (P0 etc.) L0 Ln (L1 etc.) =======+===============+===============+=============== MHS (unch.) (n/a) (n/a) EHS (n/a) (unch.) (unch.) PTY 0x0b(!=0x0c) 0x0b(!=0x0c) 0x0b(!=0x0c) PRS !=0x20 !=0x20 !=0x20 PHS (OK!) 0x3f 0x3f

(To be continued)

Last edited by souhalt : January 23rd, 2014 at 05:01 PM.
  #3  
Old January 20th, 2014, 04:44 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^2: Problems for "Backup & Recovery" tool

(Continued)

(2) "Restore Partition..." after "Burn Partition on CD or DVD..."

- "EPBR HiddenSectors" of Logical Partition #0 is forced 0x1,
and is not compatible with Logical Partition #n (n=1,2, ...).
It should be compatible with the other Logical Partitions.

- "PartitionType" is set forced 0x0b (FAT32 partition that does not use extended int13 services),
and is changed from 0x0c (FAT32 partition that uses extended int13 services).
It should be unchanged from 0x0c for using LBA addressing mode.

Code:
Table-2. "Restore Partition..." after "Burn Partition on CD or DVD..." Item Pi (P0 etc.) L0 Ln (L1 etc.) =======+===============+===============+=============== MHS (OK!) (n/a) (n/a) EHS (n/a) 0x1 0x800*n PTY 0x0b<-0x0c 0x0b<-0x0c 0x0b<-0x0c PRS (unch.) (unch.) (unch.) PHS (OK!) (OK!) (OK!) Notes/Legend: Pi: Primary Partition #i {i|i=0,1, ...} L0: Logical Partition #0 (the 1st Logical Partition) Ln: Logical Partition #n {n|n=1,2, ...} MHS: MBR HiddenSectors (not PBR-BPB 1ch-1fh Hidden Sectors) EHS: EPBR HiddenSectors (not PBR-BPB 1ch-1fh Hidden Sectors) PTY: PartitionType PRS: PBR-BPB 0eh-0fh Reserved Sectors PHS: PBR-BPB 1ch-1fh Hidden Sectors (not MBR/EPBR HiddenSectors) MBR: Master Boot Record EPBR: Extended Partition Boot Record PBR: Partition Boot Record BPB: BIOS Parameter Block EBPB: Extended BIOS Parameter Block

The following paragraphs are the background informations.

(To be continued)

Last edited by souhalt : January 20th, 2014 at 04:49 PM.
  #4  
Old January 20th, 2014, 04:49 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^3: Problems for "Backup & Recovery" tool

(Continued)

-- par.2

The following Partitioning Structure is assumed for the HDD/SSD
to be evaluated.
Each partition is to be formatted as FAT32 partition.

Code:
Table-3. Partitioning Structure ---------------------------------------- MBR Master Boot Record PBR#P0 Primary Partition #0 (P0) ---------------------------------------- PBR#P1 Primary Partition #1 (P1) ---------------------------------------- PBR#P2 Primary Partition #2 (P2) ---------------------------------------- EPBR#L0 start of Extended Partition PBR#L0 Logical Partition #0 (L0) ---------------------------------------- EPBR#L1 continued Extended Partition PBR#L1 Logical Partition #1 (L1) ---------------------------------------- EPBR#L2 continued Extended Partition PBR#L2 Logical Partition #2 (L2) ---------------------------------------- ... Notes/Legend: MBR: Master Boot Record EPBR: Extended Partition Boot Record PBR: Partition Boot Record Extended Partition: container of Logical Partitions

(To be continued)
  #5  
Old January 20th, 2014, 04:52 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^4: Problems for "Backup & Recovery" tool

(Continued)

-- par.3

I am evaluating the following "Backup & Recovery" tool on a PC.

Paragon Backup & Recovery, version 10.1.19.16240 (22.11.12) Free

PC: Fujitsu FMV-BIBLO NF/G70 (OS: Windows7 HP SP1 32/64bit)
ttp://pr.fujitsu.com/jp/news/2010/01/18/18a.html
FMV-BIBLO NF/G70

(To be continued)
  #6  
Old January 20th, 2014, 04:55 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^5: Problems for "Backup & Recovery" tool

(Continued)

-- par.4

The following evaluation tools are useful.
The "vector.co.jp" is the most traditional, the most famous
and the largest distribution site of freewares/sharewares in Japan.

bpb: displays information about a drive and the BPB on the volume
ttp://ftp.vector.co.jp/pack/winnt/util/disk/status/bpb.zip
-> bpb.zip (34,230 bytes)
-> bpb.exe (61,440 bytes)

Download Windows XP SP2 Support Tools for Advanced Users from Official Microsoft Download Center
ttp://www.microsoft.com/en-us/download/confirmation.aspx?id=18546
-> WindowsXP-KB838079-SupportTools-ENU.exe (4,934,480 bytes)
-> support.cab (4,811,582 bytes) extracted under %TEMP%\
-> dskprobe.exe (94,720 bytes), dskprobe.hlp and dskprobe.cnt

PowerQuest Partition Table Editor (PTEDIT32.EXE)
ftp://ftp.symantec.com/public/englis...s/PTEDIT32.zip
-> PTEDIT32.zip (178,083 bytes)
-> PTEDIT32.EXE (379,392 bytes)

### Important Reference Links ###

Goodells.Net :: Understanding MultiBooting
http://www.goodells.net/multiboot/ptable.shtml

Using Disk Director to Change the Hidden Sectors field of an NTFS Logical Partition
http://www.themudcrab.com/acronis_hiddensectors.php

(To be continued)

Last edited by souhalt : January 23rd, 2014 at 05:10 PM.
  #7  
Old January 20th, 2014, 04:57 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^6: Problems for "Backup & Recovery" tool

(Continued)

-- par.5

I wrote a batch file "bpbf.bat" - "BPB" display tool text Filtering wrapper -
to operate the output of the above "bpb.exe".
The above batch file also requires some perl.
(requires only "perl.exe" and "perl5??.dll")

(To be continued)

Last edited by souhalt : January 23rd, 2014 at 05:12 PM.
  #8  
Old January 20th, 2014, 04:59 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^7: Problems for "Backup & Recovery" tool

(Continued)

-- par.6

The following alternative FAT32 Formatter tools are useful.
These tools set PBR-BPB "0eh-0fh Reserved Sectors" as fixed 0x20.
That supports Partition Alignment of 8 logical sectors unit on the HDD/SSD
which uses AFT (Advanced Format Technology; 4096 bytes per physical sector).

2Tware Fat32Format - Free download and software reviews - CNET Download.com
http://download.cnet.com/2Tware-Fat3...-75623509.html
-> 2tware-fat32format-setup.exe (2,541,049 bytes) Version 1.13

Ridgecrop Consultants Ltd
http://www.ridgecrop.demon.co.uk/ind...?guiformat.htm
-> guiformat.exe (77,824 bytes) portable

(To be continued)

Last edited by souhalt : January 22nd, 2014 at 04:16 PM.
  #9  
Old January 20th, 2014, 05:07 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^8: Problems for "Backup & Recovery" tool

(Continued)

Copy the following code from the first line to the last line.
Paste it to notepad etc.
And, save it as "bpbf.bat".

Code:
@rem = ('--*-Perl-*-- @echo off if exist "%~dp0\perl.exe" "%~dp0\perl.exe" "%~dpn0.bat" %* if not exist "%~dp0\perl.exe" "perl.exe" "%~dpn0.bat" %* goto exit ') if 0; #!/usr/local/bin/perl # # File Name: "bpbf.bat" - "BPB" display tool text Filtering wrapper # # Copyright: Public Domain Software (NOT TO BE SHAREWARE OR FREEWARE) # # Version (??: secondary series; can be revised by somebodies) # *.*?? by *** May be revised for something # # Version (ps: primary series; reserved for S. ) # 1.0ps by S. Created for perl4 or later version. # # Related Softwares (required): # # - perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-thread (freeware, 32bit) etc. # http://www.activestate.com/activeperl/downloads # http://downloads.activestate.com/ActivePerl/releases/5.16.3.1603/ActivePerl-5.16.3.1603-MSWin32-x86-296746.msi # (used: "perl.exe" and "perl516.dll") # # - bpb: displays information about a drive and the BPB on the volume (freeware, 32bit) # http://www.vector.co.jp/download/file/winnt/util/fh328130.html # http://ftp.vector.co.jp/pack/winnt/util/disk/status/bpb.zip # (used: "bpb.exe") sub which { local(@_) = grep(-f "$_\\$_[0]" && ($_ = "$_\\$_[0]"), split(/\\*;/, $ENV{PATH})); return $_[0]; } $_ = 'bpb.exe'; $bpb = $0; $bpb =~ s/([^\\]*)$/$_/; $bpb = &which($_) if !-f "$bpb"; die "Can't find \"$_\": $!\a\n" if !-f "$bpb"; #print STDERR "used: \"$0\"\n"; #print STDERR "used: \"$^X\"\n"; #print STDERR "used: \"$bpb\"\n"; $mode = shift(@ARGV) if $ARGV[0] eq '-t'; # option -t: transparent mode $mode = shift(@ARGV) if $ARGV[0] eq '-f'; # option -f: filtering mode (default) open(BPB, "\"$bpb\" @ARGV|") || die "Can't open \"$bpb\": $!\a\n"; if ($mode eq '-t') { while (<BPB>) { print; } } else { while (<BPB>) { # print if /^Volume:/; #;; print if /^StartingOffset:/; if (1 & /^(StartingOffset:\s*)(\S+)\s+(\d+)/) { $N = $3; $U4KB = $N / 4096; # 4KB $U1MB = $N / 2**20; # 1MB $U1GB = $N / 2**30; # 1GB printf("$1$2=${N}B $U4KB/4KB %.3fMB %.3fGB\n", $U1MB, $U1GB); } #;; print if /^PartitionLength:/; if (1 & /^(PartitionLength:\s*)(\S+)\s+(\d+)/) { $N = $3; $U4KB = $N / 4096; # 4KB $U1MB = $N / 2**20; # 1MB $U1GB = $N / 2**30; # 1GB printf("$1$2=${N}B $U4KB/4KB %.3fMB %.3fGB\n", $U1MB, $U1GB); } #;; print if /^HiddenSectors:/; if (1 & /^(HiddenSectors:\s*)(\S+)\s+(\d+)/) { $N = $3; $U4KB = $N / 8; # 8 Sectors = 4KB printf("MBR/EPBR $1$2 $N $U4KB/4KB; $2 %% 8 = %u\n", $N % 8); } # print if /^PartitionNumber:/; print if /^PartitionType:/; # print if /^BootIndicator:/; # print if /^RecognizedPartition:/; # print if /^RewritePartition:/; # print if /^00h-02h Jump Instruction:/; # print if /^03h-0ah OEM ID:/; # print if /^BIOS Parameter Block/; # print if /^0bh-0ch Bytes Per Sector:/; #;; print if /^0dh Sectors Per Cluster:/; if (1 & /^(0dh Sectors Per Cluster:\s*)(\S+)\s+(\d+)/) { $N = $3; $U1B = $N * 512; # 1/512 Sectors = 1B $U1KB = $N / 2; # 2 Sectors = 1KB $U4KB = $N / 8; # 8 Sectors = 4KB printf("$1$2 $N %uB ${U1KB}KB $U4KB/4KB\n", $U1B); } #;; print if /^0eh-0fh Reserved Sectors:/; if (1 & /^(0eh-0fh Reserved Sectors:\s*)(\S+)\s+(\d+)/) { $N = $3; $U4KB = $N / 8; # 8 Sectors = 4KB printf("$1$2 $N $U4KB/4KB; $2 %% 8 = %u\n", $N % 8); } #;; print if /^10h Number of FATs:/; if (1 & /^(10h Number of FATs:\s*)(\S+)\s+(\d+)/) { $NOF = $3; print; } # print if /^11h-12h Root Entries:/; # print if /^13h-14h Small Sectors:/; # print if /^15h Media Descriptor:/; # print if /^16h-17h Sectors Per FAT:/; # print if /^18h-19h Sectors Per Track:/; # print if /^1ah-1bh Number Of Heads:/; #;; print if /^1ch-1fh Hidden Sectors:/; if (1 & /^(1ch-1fh Hidden Sectors:\s*)(\S+)\s+(\d+)/) { $N = $3; $U4KB = $N / 8; # 8 Sectors = 4KB printf("$1$2 $N $U4KB/4KB; $2 %% 8 = %u\n", $N % 8); } #;; print if /^20h-23h Large Sectors:/; if (0 & /^(20h-23h Large Sectors:\s*)(\S+)\s+(\d+)/) { $N = $3; $U4KB = $N / 8; # 8 Sectors = 4KB $U1MB = $N / 2048; # 2048 Sectors = 1MB $U1GB = $N / 2**21; # 2**21 Sectors = 1GB printf("$1$2 $N $U4KB/4KB %.3fMB %.3fGB\n", $U1MB, $U1GB); } #;; print if /^24h-27h Sectors Per FAT:/; if (1 & /^(24h-27h Sectors Per FAT:\s*)(\S+)/) { $N = hex($2); $U4KB = $N * $NOF / 8; # 8 Sectors = 4KB printf("$1$2 $N $U4KB/4KB; ($2 * $NOF) %% 8 = %u\n", ($N * $NOF) % 8); } # print if /^28h-29h Extended Flags:/; # print if /^2ah-2bh File System Version:/; # print if /^2ch-2fh Root Cluster Number:/; # print if /^30h-31h File System Information Sector Number:/; # print if /^32h-33h Backup Boot Sector :/; # print if /^34h-3fh Reserved:/; # print if /^Extended BIOS Parameter Block/; # print if /^40h Physical Drive Number:/; # print if /^41h Reserved:/; # print if /^42h Extended Boot Signature:/; # print if /^43h-46h Volume Serial Number:/; print if /^47h-51h Volume Label:/; # print if /^52h-59h System ID:/; } } close(); @rem = (' :exit ') if 0;

The "primary series" of "bpbf.bat" shall be distributed and revised
on the following Site/Link of the following author code on the "vector.co.jp".
The "vector.co.jp" is the most traditional, the most famous
and the largest distribution site of freewares/sharewares in Japan.

Site (Top Page for an author of freewares/sharewares on the "vector.co.jp"):
Download and Links - PA053879
http://hp.vector.co.jp/authors/VA053879/

Link for the "primary series" of "bpbf.bat":
"bpbf.bat" - "BPB" display tool text Filtering wrapper
http://hp.vector.co.jp/authors/VA053879/bpbf_bat.htm

(End of post)

Last edited by souhalt : January 23rd, 2014 at 05:18 PM.
  #10  
Old January 26th, 2014, 08:35 AM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^9: Problems for "Backup & Recovery" tool

Legend of Color Code:
Code:
Plain Text Attention No Good No Good Compared Good Good Compared Unaffected Plain Text

The following examples are the case of L0 (Logical Partition #0).
Each example is assumed as an output of "bpbf.bat".

Example: Ideal records of L0 for FAT32 File system
Code:
StartingOffset: 0x3000100000=206159478784B 50331904/4KB 196609.000MB 192.001GB PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB MBR/EPBR HiddenSectors: 0x8 8 1/4KB; 0x8 % 8 = 0 PartitionType: 0x0c 12 (FAT32 partition that uses extended int13 services.) 0dh Sectors Per Cluster: 0x10 16 8192B 8KB 2/4KB 0eh-0fh Reserved Sectors: 0x20 32 4/4KB; 0x20 % 8 = 0 10h Number of FATs: 0x2 2 1ch-1fh Hidden Sectors: 0x18000800 402655232 50331904/4KB; 0x18000800 % 8 = 0 24h-27h Sectors Per FAT: 0xffc0 65472 16368/4KB; (0xffc0 * 2) % 8 = 0 47h-51h Volume Label: "L0WIN07"

Example: Formatted records of L0 by "Format Partition..." for FAT32 File system
Code:
StartingOffset: 0x3000100000=206159478784B 50331904/4KB 196609.000MB 192.001GB PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB MBR/EPBR HiddenSectors: 0x1 1 0.125/4KB; 0x1 % 8 = 1 PartitionType: 0x0b 11 (FAT32 partition.) 0dh Sectors Per Cluster: 0x10 16 8192B 8KB 2/4KB 0eh-0fh Reserved Sectors: 0x22 34 4.25/4KB; 0x22 % 8 = 2 10h Number of FATs: 0x2 2 1ch-1fh Hidden Sectors: 0x3f 63 7.875/4KB; 0x3f % 8 = 7 24h-27h Sectors Per FAT: 0xffc0 65472 16368/4KB; (0xffc0 * 2) % 8 = 0 47h-51h Volume Label: "L0WIN07"


Example: Restored records of L0 by "Restore Partition..." after "Burn Partition on CD or DVD..."
Code:
StartingOffset: 0x3000100000=206159478784B 50331904/4KB 196609.000MB 192.001GB PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB MBR/EPBR HiddenSectors: 0x1 1 0.125/4KB; 0x1 % 8 = 1 PartitionType: 0x0b 11 (FAT32 partition.) 0dh Sectors Per Cluster: 0x10 16 8192B 8KB 2/4KB 0eh-0fh Reserved Sectors: 0x20 32 4/4KB; 0x20 % 8 = 0 10h Number of FATs: 0x2 2 1ch-1fh Hidden Sectors: 0x18000800 402655232 50331904/4KB; 0x18000800 % 8 = 0 24h-27h Sectors Per FAT: 0xffc0 65472 16368/4KB; (0xffc0 * 2) % 8 = 0 47h-51h Volume Label: "L0WIN07"

(To be continued)

Last edited by souhalt : January 29th, 2014 at 05:00 PM.
  #11  
Old January 26th, 2014, 08:40 AM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^10: Problems for "Backup & Recovery" tool

(Continued)

The following examples are the case of L1 (Logical Partition #1).
Each example is assumed as an output of "bpbf.bat".

Example: Ideal records of L1 for FAT32 File system
Code:
StartingOffset: 0x4000400000=274882101248B 67109888/4KB 262148.000MB 256.004GB PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB MBR/EPBR HiddenSectors: 0x8 8 1/4KB; 0x8 % 8 = 0 PartitionType: 0x0c 12 (FAT32 partition that uses extended int13 services.) 0dh Sectors Per Cluster: 0x10 16 8192B 8KB 2/4KB 0eh-0fh Reserved Sectors: 0x20 32 4/4KB; 0x20 % 8 = 0 10h Number of FATs: 0x2 2 1ch-1fh Hidden Sectors: 0x20002000 536879104 67109888/4KB; 0x20002000 % 8 = 0 24h-27h Sectors Per FAT: 0xffc0 65472 16368/4KB; (0xffc0 * 2) % 8 = 0 47h-51h Volume Label: "L1WIN07"

Example: Formatted records of L1 by "Format Partition..." for FAT32 File system
Code:
StartingOffset: 0x4000400000=274882101248B 67109888/4KB 262148.000MB 256.004GB PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB MBR/EPBR HiddenSectors: 0x1000 4096 512/4KB; 0x1000 % 8 = 0 PartitionType: 0x0b 11 (FAT32 partition.) 0dh Sectors Per Cluster: 0x10 16 8192B 8KB 2/4KB 0eh-0fh Reserved Sectors: 0x22 34 4.25/4KB; 0x22 % 8 = 2 10h Number of FATs: 0x2 2 1ch-1fh Hidden Sectors: 0x3f 63 7.875/4KB; 0x3f % 8 = 7 24h-27h Sectors Per FAT: 0xffc0 65472 16368/4KB; (0xffc0 * 2) % 8 = 0 47h-51h Volume Label: "L1WIN07"

Example: Restored records of L1 by "Restore Partition..." after "Burn Partition on CD or DVD..."
Code:
StartingOffset: 0x4000400000=274882101248B 67109888/4KB 262148.000MB 256.004GB PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB MBR/EPBR HiddenSectors: 0x1000 4096 512/4KB; 0x1000 % 8 = 0 PartitionType: 0x0b 11 (FAT32 partition.) 0dh Sectors Per Cluster: 0x10 16 8192B 8KB 2/4KB 0eh-0fh Reserved Sectors: 0x20 32 4/4KB; 0x20 % 8 = 0 10h Number of FATs: 0x2 2 1ch-1fh Hidden Sectors: 0x20002000 536879104 67109888/4KB; 0x20002000 % 8 = 0 24h-27h Sectors Per FAT: 0xffc0 65472 16368/4KB; (0xffc0 * 2) % 8 = 0 47h-51h Volume Label: "L1WIN07"

(To be continued)

Last edited by souhalt : January 29th, 2014 at 11:11 PM.
  #12  
Old January 29th, 2014, 11:05 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^11: Problems for "Backup & Recovery" tool

(Continued)

PBR-BPB "1ch-1fh Hidden Sectors" should be the offset from the beginning
of the disk, as for Logical Partitions, as with Primary Partitions.
The offset from the beginning of the disk is MBR/EPBR "StartingOffset" [Sc].
MBR/EPBR "StartingOffset" [Sc] is equal to MBR/EPBR "Boot Record at sector N"
at the title of the "Boot Record" window displayed by "PTEDIT32.EXE".

The following correspondence table is related to the expressions
of "PTEDIT32.EXE" and "bpbf.bat" ("bpb.exe").
And, EPBR "Boot Record at sector N" may be calculated as follows.

Code:
Table-4. "PTEDIT32.EXE" vs. "bpbf.bat" ("bpb.exe") "PTEDIT32.EXE" "bpbf.bat" ("bpb.exe") =======================================+======================================== MBR/EPBR Boot Record at sector N[Sc]*1 MBR/EPBR StartingOffset[B] MBR/EPBR Sectors[Sc] MBR/EPBR PartitionLength[B] MBR/EPBR Sectors Before[Sc] MBR/EPBR HiddenSectors[Sc] MBR/EPBR Type MBR/EPBR PartitionType ---------------------------------------+---------------------------------------- PBR-BPB 4. Sectors per Cluster[Sc] PBR-BPB 0dh Sectors Per Cluster[Sc] PBR-BPB 5. Reserved Sectors[Sc] PBR-BPB 0eh-0fh Reserved Sectors[Sc] PBR-BPB 6. Number of FATs PBR-BPB 10h Number of FATs PBR-BPB 13. Hidden Sectors[Sc] PBR-BPB 1ch-1fh Hidden Sectors[Sc] PBR-EBPB 15. Big Sectors Per FAT[Sc] PBR-EBPB 24h-27h Sectors Per FAT[Sc] PBR-EBPB 26. Volume Name PBR-EBPB 47h-51h Volume Label Notes: *1 MBR/EPBR "Boot Record at sector N" is displayed at the title of the "Boot Record" window. *2 EPBR "Boot Record at sector N" may be calculated as follows. if (LogicalPartitionNo == 0) { BootRecordAtSectorN[LogicalPartitionNo] = SectorsBefore[0][ExtendedPartitionEntryNo] + SectorsBefore[LogicalPartitionNo + 1][1]; } else { BootRecordAtSectorN[LogicalPartitionNo] = SectorsBefore[0][ExtendedPartitionEntryNo] + SectorsBefore[LogicalPartitionNo][2] + SectorsBefore[LogicalPartitionNo + 1][1]; }

(To be continued)

Last edited by souhalt : January 30th, 2014 at 09:40 AM.
  #13  
Old January 29th, 2014, 11:10 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^12: Problems for "Backup & Recovery" tool

(Continued)

The following code is a perl script testing an algorithm to calculate
EPBR "Boot Record at sector N".

Code:
#!/usr/local/bin/perl # # Related Softwares (reference): # # - PowerQuest Partition Table Editor (PTEDIT32.EXE) # ftp://ftp.symantec.com/public/english_us_canada/tools/pq/utilities/PTEDIT32.zip # # Test Samples: EPBR "Boot Record at sector N" from outputs of "bpbf.bat" # @RefBRSN = (50331904*8, 67109888*8, 83887872*8, 100665600*8, 117443584*8); @rem = (' L0: StartingOffset: 0x3000100000=206159478784B 50331904/4KB 196609.000MB 192.001GB MBR/EPBR HiddenSectors: 0x1 1 0.125/4KB; 0x1 % 8 = 1 L1: StartingOffset: 0x4000400000=274882101248B 67109888/4KB 262148.000MB 256.004GB MBR/EPBR HiddenSectors: 0x1000 4096 512/4KB; 0x1000 % 8 = 0 L2: StartingOffset: 0x5000700000=343604723712B 83887872/4KB 327687.000MB 320.007GB MBR/EPBR HiddenSectors: 0x800 2048 256/4KB; 0x800 % 8 = 0 L3: StartingOffset: 0x6000900000=412326297600B 100665600/4KB 393225.000MB 384.009GB MBR/EPBR HiddenSectors: 0x800 2048 256/4KB; 0x800 % 8 = 0 L4: StartingOffset: 0x7000c00000=481048920064B 117443584/4KB 458764.000MB 448.012GB MBR/EPBR HiddenSectors: 0x1000 4096 512/4KB; 0x1000 % 8 = 0 ') if 0; # # Test Samples: MBR/EPBR "Sectors Before" etc. displayed by "PTEDIT32.EXE" # $EPEN = 4; # the Extended Partition Entry No. for 402655231 shown below @SectorsBefore = ( [undef, 2048, 134219776, 268437504, 402655231], [undef, 1, 134219777], [undef, 4096, 268445697], [undef, 2048, 402667521], [undef, 2048, 536889345], [undef, 4096, 0] ); # # An algorithm to calculate EPBR "Boot Record at sector N" etc. # print "Test\tLPN\tBRSN\t\tBRSN/Physical\n"; print "=======+=======+===============+================\n"; $LPN = 0; # Logical Partition No. while ($LPN < $#SectorsBefore) { if ($LPN == 0) { $BootRecordAtSectorN[$LPN] = $SectorsBefore[0][$EPEN] + $SectorsBefore[$LPN + 1][1]; } else { $BootRecordAtSectorN[$LPN] = $SectorsBefore[0][$EPEN] + $SectorsBefore[$LPN][2] + $SectorsBefore[$LPN + 1][1]; } if ($BootRecordAtSectorN[$LPN] == $RefBRSN[$LPN]) { print "Good\t"; } else { print "No Good\t"; } print 'L', $LPN, "\t"; print $BootRecordAtSectorN[$LPN], "\t"; print $BootRecordAtSectorN[$LPN] / 8, "/4KB\n"; $LPN++; }

The output of the above script is shown below.
It was confirmed that each calculated BRSN (EPBR "Boot Record at sector N")
is equal to MBR/EPBR "StartingOffset" [Sc].

Code:
Test LPN BRSN BRSN/Physical =======+=======+===============+================ Good L0 402655232 50331904/4KB Good L1 536879104 67109888/4KB Good L2 671102976 83887872/4KB Good L3 805324800 100665600/4KB Good L4 939548672 117443584/4KB

(To be continued)

Last edited by souhalt : January 30th, 2014 at 05:06 PM.
  #14  
Old January 30th, 2014, 04:58 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^13: Problems for "Backup & Recovery" tool

(Continued)

See also the related "Image Gallery" thread shown below.

Problems for "Backup & Recovery" tool - Wilders Security Forums
http://www.wilderssecurity.com/showthread.php?t=359374

Related MBR (Master Boot Record) image is shown below.
The Entry No. 4 (Type: 0x0F) is for the Extended Partition.



(To be continued)
  #15  
Old January 30th, 2014, 05:00 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^14: Problems for "Backup & Recovery" tool

(Continued)

Related EPBR (Extended Partition Boot Record) images are shown below.
Entry No. 1 is for a Logical Partition.
Entry No. 2 is for a child EPBR.
Entry No. 3 and 4 are invalid on EPBRs.











(To be continued)

Last edited by souhalt : January 30th, 2014 at 11:05 PM.
  #16  
Old January 30th, 2014, 05:05 PM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^15: Problems for "Backup & Recovery" tool

(Continued)

Related PBR (Partition Boot Record) images are shown below.
PBR-BPB "13. Hidden Sectors" should be the same value as MBR/EPBR "Boot Record at sector N"
at the title of the "Boot Record" window displayed by "PTEDIT32.EXE".





(End of post)
  #17  
Old Yesterday, 06:00 AM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^16: Problems for "Backup & Recovery" tool

The following additional evaluation tool is useful.

See also the above "Important Reference Links".

Acronis DiskEditor Demo version 6.0 (build 360)
Acronis Disk Editor * Sharewareisland.com * Freeware Shareware Software Downloads, ...
http://www.sharewareisland.com/appli...FileID=1830574
-> diskeditor6.0_d_en.exe (4,433,656 bytes)

Note: Check "Run as administrator" or "Run this program as an administrator" in Windows7 etc.

(To be continued)
  #18  
Old Yesterday, 06:10 AM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^17: Problems for "Backup & Recovery" tool

(Continued)

See also Table-4. "PTEDIT32.EXE" vs. "bpbf.bat" ("bpb.exe") .

PBR-BPB "1ch-1fh Hidden Sectors" should be the offset from the beginning
of the disk, as for Logical Partitions, as with Primary Partitions.
The offset from the beginning of the disk is MBR/EPBR "StartingOffset" [Sc].
MBR/EPBR "StartingOffset" [Sc] is equal to MBR/EPBR "Absolute sector"
at the top of the window displayed by "Acronis DiskEditor Demo".

The following correspondence table is related to the expressions
of "Acronis DiskEditor Demo" and "bpbf.bat" ("bpb.exe").
EPBR "Absolute sector" of PBR#Li may be calculated as follows.
Each absolute sector of EPBR#Li is calculated as follows.

Code:
Table-5. "Acronis DiskEditor Demo" vs. "bpbf.bat" ("bpb.exe") "Acronis DiskEditor Demo" "bpbf.bat" ("bpb.exe") ===============================+======================================== MBR/EPBR Absolute sector[Sc]*1 MBR/EPBR StartingOffset[B] MBR/EPBR Number of sectors[Sc] MBR/EPBR PartitionLength[B] MBR/EPBR Relative sectors[Sc] MBR/EPBR HiddenSectors[Sc] MBR/EPBR Partition type MBR/EPBR PartitionType -------------------------------+---------------------------------------- PBR-BPB Sectors per cluster[Sc] PBR-BPB 0dh Sectors Per Cluster[Sc] PBR-BPB Reserved sectors[Sc] PBR-BPB 0eh-0fh Reserved Sectors[Sc] PBR-BPB FAT copies PBR-BPB 10h Number of FATs PBR-BPB Hidden sectors[Sc] PBR-BPB 1ch-1fh Hidden Sectors[Sc] PBR-EBPB FAT size[Sc] PBR-EBPB 24h-27h Sectors Per FAT[Sc] PBR-EBPB Volume label PBR-EBPB 47h-51h Volume Label Notes: *1 MBR/EPBR "Absolute sector" is displayed at the top of the window. *2 EPBR "Absolute sector" of PBR#Li may be calculated as follows. if (LogicalPartitionNo == 0) { AbsoluteSector[LogicalPartitionNo] = RelativeSectors[0][ExtendedPartitionEntryNo] + RelativeSectors[LogicalPartitionNo + 1][1]; } else { AbsoluteSector[LogicalPartitionNo] = RelativeSectors[0][ExtendedPartitionEntryNo] + RelativeSectors[LogicalPartitionNo][2] + RelativeSectors[LogicalPartitionNo + 1][1]; } *3 Each absolute sector of EPBR#Li is calculated as follows. if (LogicalPartitionNo == 0) { AbsoluteSector[LogicalPartitionNo] = RelativeSectors[0][ExtendedPartitionEntryNo]; } else { AbsoluteSector[LogicalPartitionNo] = RelativeSectors[0][ExtendedPartitionEntryNo] + RelativeSectors[LogicalPartitionNo][2]; }

(To be continued)

Last edited by souhalt : Yesterday at 10:00 PM.
  #19  
Old Yesterday, 06:15 AM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^18: Problems for "Backup & Recovery" tool

(Continued)

See also the related "Image Gallery" thread shown below.

Problems for "Backup & Recovery" tool - Wilders Security Forums
http://www.wilderssecurity.com/showt...74#post2341288

Related MBR (Master Boot Record) images are shown below.

(MBR)

(MBR)


The Entry No. 4 (Partition type: 0Fh) is for the Extended Partition.
The absolute sector of EPBR#L0 (a child EPBR) is 402655231 (180007FFh) as follows.
Code:
AbsoluteSector[0] = RelativeSectors[0][4] = 402655231

(To be continued)
  #20  
Old Yesterday, 06:20 AM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^19: Problems for "Backup & Recovery" tool

(Continued)

Related EPBR (Extended Partition Boot Record) images are shown below.
Entry No. 1 is for a Logical Partition.
Entry No. 2 is for a child EPBR.
Entry No. 3 and 4 are invalid on EPBRs.

See also Discovered Problems (1) and (2).

(EPBR#L0)

(EPBR#L0)


EPBR "Absolute sector" of PBR#L0 is 402655232 (18000800h) as follows.
Code:
AbsoluteSector[0] = RelativeSectors[0][4] + RelativeSectors[0 + 1][1] = 402655231 + 1 = 402655232
The absolute sector of EPBR#L1 (a child EPBR) is 536875008 (20001000h) as follows.
Code:
AbsoluteSector[1] = RelativeSectors[0][4] + RelativeSectors[1][2] = 402655231 + 134219777 = 536875008
(EPBR#L1)

(EPBR#L1)


EPBR "Absolute sector" of PBR#L1 is 536879104 (20002000h) as follows.
Code:
AbsoluteSector[1] = RelativeSectors[0][4] + RelativeSectors[1][2] + RelativeSectors[1 + 1][1] = 402655231 + 134219777 + 4096 = 536879104
The absolute sector of EPBR#L2 (a child EPBR) is 671100928 (28003000h) as follows.
Code:
AbsoluteSector[2] = RelativeSectors[0][4] + RelativeSectors[2][2] = 402655231 + 268445697 = 671100928
(EPBR#L2)

(EPBR#L2)


EPBR "Absolute sector" of PBR#L2 is 671102976 (28003800h) as follows.
Code:
AbsoluteSector[2] = RelativeSectors[0][4] + RelativeSectors[2][2] + RelativeSectors[2 + 1][1] = 402655231 + 268445697 + 2048 = 671102976
The absolute sector of EPBR#L3 (a child EPBR) is 805322752 (30004000h) as follows.
Code:
AbsoluteSector[3] = RelativeSectors[0][4] + RelativeSectors[3][2] = 402655231 + 402667521 = 805322752
(EPBR#L3)

(EPBR#L3)


EPBR "Absolute sector" of PBR#L3 is 805324800 (30004800h) as follows.
Code:
AbsoluteSector[3] = RelativeSectors[0][4] + RelativeSectors[3][2] + RelativeSectors[3 + 1][1] = 402655231 + 402667521 + 2048 = 805324800
The absolute sector of EPBR#L4 (a child EPBR) is 939544576 (38005000h) as follows.
Code:
AbsoluteSector[4] = RelativeSectors[0][4] + RelativeSectors[4][2] = 402655231 + 536889345 = 939544576
(EPBR#L4)

(EPBR#L4)


EPBR "Absolute sector" of PBR#L4 is 939548672 (38006000h) as follows.
Code:
AbsoluteSector[4] = RelativeSectors[0][4] + RelativeSectors[4][2] + RelativeSectors[4 + 1][1] = 402655231 + 536889345 + 4096 = 939548672

(To be continued)
  #21  
Old Yesterday, 06:25 AM
souhalt souhalt is offline
Infrequent Poster
 
Join Date: Jan 2014
Location: Japan
Posts: 34
Unhappy Re^20: Problems for "Backup & Recovery" tool

(Continued)

Related PBR (Partition Boot Record) images are shown below.
PBR-BPB "Hidden sectors" should be the same value as MBR/EPBR "Absolute sector"
at the top of the window displayed by "Acronis DiskEditor Demo".

See also Discovered Problems (1).

(PBR#L0)

(PBR#L0)


(PBR#L1)

(PBR#L1)


(End of post)

Last edited by souhalt : Yesterday at 08:10 AM.
 

Wilders Security Forums > Official Paragon Support Forum > Other Paragon Disk Utilities « Previous Thread | Next Thread »


Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:48 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2014, Wilders Security Forums