Download - PA053879

BSEK (Backup/copy Software Evaluation Kit)の詳細情報 : Vector ソフトを探す!

-> [Go to the download page] -> [Download Now]

The Latest Snapshot - BSEK

Subject:  The making of 2048[sct] aligned / 2^n[GB] normalized partitions

$ 1.  Create the integrated ISO file / bootable CD/DVD/BD of the Related Softwares


  Refer to the following link.

- The making of the integrated ISO file / bootable CD/DVD/BD
  http://hp.vector.co.jp/authors/VA053879/bootcd.htm

$ 2.  Make 2048[sct] aligned / 2^n[GB] normalized partitions


  Make the partitions which are aligned to 2048 sector (1MB) boundaries and normalized by 2^n[GB] unit.

$ 2.1 Download, extract and install the Related Softwares


  Download the Related Softwares, extract dir/files as needed, and install them as needed.

(Example)

Related Softwares (required):

- Ridgecrop Consultants fat32format 1.07? (GUI version) (freeware, 32/64bit)
  http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm
or
- 2Tware Fat32Format 1.13 (freeware, 32bit)
  http://download.cnet.com/2Tware-Fat32Format/3000-2094_4-75623509.html

- 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
- "bpbf.bat" - "BPB" display tool text Filtering wrapper
  http://hp.vector.co.jp/authors/VA053879/bpbf_bat.htm

- PowerQuest Partition Table Editor (PTEDIT32.EXE) (freeware, 32bit)
  ftp://ftp.symantec.com/public/english_us_canada/tools/pq/utilities/PTEDIT32.zip

- "bcde.bat" - Boot Configuration Data Edit BATch for Windows 7 (OEM_SLP) / PE3.x - BCD Builder/Generator
  http://hp.vector.co.jp/authors/VA053879/bcde_bat.htm
or
- "bcde.bat" without Japanese comments (Public Domain)
  http://hp.vector.co.jp/authors/VA053879/en-US/bcde_bat.txt

$ 2.2 Edit a script for the parted


  WARNING: Don't forget to check and change the device to be selected.

  Refer to the examples of script (see the "Links" shown below), and edit a script for the parted.

  Old partition tools and old backup tools may align partitions to cylinder boundaries.
  If such the old tools may still be used, the gaps for Cyl. boundary should be provided.

$ 2.3 Back up each partition to media as needed


  Nobody guarantees that the data will not be lost.

  Back up each partition (Burn Partition on CD or DVD) to media like CD/DVD/BD as needed with Paragon Backup & Recovery etc.
  And/or, check whether each partition has been backed up to media like CD/DVD/BD surely.

$ 2.4 Wipe the HDD as needed


  WARNING: All the data in the HDD/SSD/Memory will be lost.

  This step may be skipped for the flash devices like SSD/Memory so that those lifetimes may not be shortened.
  Wipe the HDD (Wipe Disk) as needed with MiniTool Partition Wizard etc.

$ 2.5 Apply the script to the parted (Make the partitions)


  WARNING: All the data in the HDD/SSD/Memory will be lost.
  WARNING: Don't forget to make the partition table before making partitions.

  Apply the script edited as above by redirecting to the parted. Then the partitions will have been created.
  The parted will be used on "Terminal" window etc. provided on the Linux system of GParted.

  Such the script function should be implemented in partition tool.

(Example: making partitions on "Terminal" window)
-- start of "Terminal" (user@debian) -------------------------------------------
user@debian:~$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
user@debian:~$ su
Password:
root@debian:/home/user# mkdir /mnt/sda5
root@debian:/home/user# mount /dev/sda5 /mnt/sda5
root@debian:/home/user# cd /mnt/sda5/usr/\!ARC/DSKPART/GPARTED/partmdl
root@debian:/mnt/sda5/usr/!ARC/DSKPART/GPARTED/partmdl# parted -ao
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit GiB
(parted) print devices
/dev/sda (466GiB)
/dev/sdb (932GiB)
/dev/sr0 (22.6GiB)
(parted) select /dev/sdb
Using /dev/sdb
(parted) mktable msdos
(parted) print
Model: I-O DATA HDPC-UT (scsi)
Disk /dev/sdb: 932GiB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End  Size  Type  File system  Flags

(parted) quit
Information: You may need to update /etc/fstab.

root@debian:/mnt/sda5/usr/!ARC/DSKPART/GPARTED/partmdl# parted -ao < io064c.txt
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) help " I-O DATA HDPC-UT, 64GB partitions, with gaps for Cyl. boundary
(parted) help " Cyls = 121601[cyl], Cyls*63*255*512 = 931[GB]
(parted) help " Notes: Script to make 2048[sct] aligned / 2^n[GB] normalized partitions
(parted) help " Usage: # parted -ao < io064c.txt
(parted) unit s
(parted) help " Don't forget to check and change the device to be selected.
(parted) select /dev/sdb
Using /dev/sdb
(parted) help " Don't forget to make the partition table before making partitions.
(parted) help "mktable msdos y
(parted) mkpart primary 2048s 134217727s
(parted) mkpart primary 134219776s 268435455s
(parted) mkpart primary 268437504s 402653183s
(parted) mkpart extended 402653184s -1s
(parted) mkpart logical 402655232s 536870911s
(parted) mkpart logical 536879104s 671094783s
(parted) mkpart logical 671102976s 805318655s
(parted) mkpart logical 805324800s 939540479s
(parted) mkpart logical 939548672s 1073764351s
(parted) mkpart logical 1073772544s 1207988223s
(parted) mkpart logical 1207994368s 1342210047s
(parted) mkpart logical 1342218240s 1476433919s
(parted) mkpart logical 1476440064s 1610655743s
(parted) mkpart logical 1610663936s 1744879615s
(parted) mkpart logical 1744887808s 1879103487s
(parted) help " Cyls = 121601[cyl], int(Cyls*63*255/2048)*2048-1 = 1953519615[sct]
(parted) help "mkpart logical 1879109632s 2013325311s
(parted) help "mkpart logical 1879109632s -1s
(parted) mkpart logical 1879109632s 1953519615s
(parted) set 4 lba on
(parted) align-check min 4
4 aligned
(parted) align-check min 16
16 aligned
(parted) align-check opt 4
4 aligned
(parted) align-check opt 16
16 aligned
(parted) unit MiB
(parted) print
Model: I-O DATA HDPC-UT (scsi)
Disk /dev/sdb: 953870MiB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start      End        Size       Type      File system  Flags
 1      1.00MiB    65536MiB   65535MiB   primary
 2      65537MiB   131072MiB  65535MiB   primary
 3      131073MiB  196608MiB  65535MiB   primary
 4      196608MiB  953870MiB  757262MiB  extended               lba
 5      196609MiB  262144MiB  65535MiB   logical
 6      262148MiB  327683MiB  65535MiB   logical
 7      327687MiB  393222MiB  65535MiB   logical
 8      393225MiB  458760MiB  65535MiB   logical
 9      458764MiB  524299MiB  65535MiB   logical
10      524303MiB  589838MiB  65535MiB   logical
11      589841MiB  655376MiB  65535MiB   logical
12      655380MiB  720915MiB  65535MiB   logical
13      720918MiB  786453MiB  65535MiB   logical
14      786457MiB  851992MiB  65535MiB   logical
15      851996MiB  917531MiB  65535MiB   logical
16      917534MiB  953867MiB  36333MiB   logical

(parted) unit s
(parted) print
Model: I-O DATA HDPC-UT (scsi)
Disk /dev/sdb: 1953525168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start        End          Size         Type      File system  Flags
 1      2048s        134217727s   134215680s   primary
 2      134219776s   268435455s   134215680s   primary
 3      268437504s   402653183s   134215680s   primary
 4      402653184s   1953525167s  1550871984s  extended               lba
 5      402655232s   536870911s   134215680s   logical
 6      536879104s   671094783s   134215680s   logical
 7      671102976s   805318655s   134215680s   logical
 8      805324800s   939540479s   134215680s   logical
 9      939548672s   1073764351s  134215680s   logical
10      1073772544s  1207988223s  134215680s   logical
11      1207994368s  1342210047s  134215680s   logical
12      1342218240s  1476433919s  134215680s   logical
13      1476440064s  1610655743s  134215680s   logical
14      1610663936s  1744879615s  134215680s   logical
15      1744887808s  1879103487s  134215680s   logical
16      1879109632s  1953519615s  74409984s    logical

(parted) help " Format temporarily with GParted etc. before formatting on Windows.
(parted) quit
Information: You may need to update /etc/fstab.

root@debian:/mnt/sda5/usr/!ARC/DSKPART/GPARTED/partmdl# exit
exit
user@debian:~$ exit
-- end of "Terminal" (user@debian) ---------------------------------------------

$ 2.6 Format each partition temporarily


  WARNING: All the data in each partition will be lost.

  Format each partition to FAT32 temporarily with GParted etc. so that each partition can be formatted on Windows.

(Example: GParted; after formatting temporarily)
  [img]images/gparted0.jpg[/img]

  [img]images/gparted1.jpg[/img]

$ 2.7 Format each partition properly on Windows as needed


  WARNING: All the data in each partition will be lost.

  Format each partition to NTFS/FAT32 properly on Windows as needed.

  Don't use the FAT32 Formatter tools/functions which don't support partition alignment.
  Use one of the following alternative FAT32 Formatter tools to perform optimal FAT32 format on Windows.

  For example, when each 64GB partition is formatted with one of the following alternative FAT32 Formatter tools,
its Allocation unit size should be 8192B, 16384B or 32768B to optimize its performance.

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

(Example)

FAT32 Formatter tools (which support partition alignment):

- Ridgecrop Consultants fat32format 1.07? (GUI version) (freeware, 32/64bit)
  http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm
or
- 2Tware Fat32Format 1.13 (freeware, 32bit)
  http://download.cnet.com/2Tware-Fat32Format/3000-2094_4-75623509.html

(Example: Ridgecrop Consultants fat32format; after FAT32 formatting)
  [img]images/guifmtL8.jpg[/img]

  Note: The title on the following dialog box should be ignored.
  [img]images/Error.jpg[/img]

(Example: 2Tware Fat32Format 1.13; after FAT32 formatting)
  [img]images/2TwareL8.jpg[/img]

(Example: Computer Management - Disk Management; after NTFS/FAT32 formatting)
[img]images/com_B1_0.jpg[/img]

(Example: checking a "\Windows\ntbtlog.txt" for a 32 bit Windows system on a HDD)
-- start of "\Windows\ntbtlog.txt" ---------------------------------------------
 Service Pack 1 8 16 2014 16:31:34.109
Loaded driver \SystemRoot\system32\ntkrnlpa.exe
Loaded driver \SystemRoot\system32\halmacpi.dll
Loaded driver \SystemRoot\system32\kdcom.dll
Loaded driver \SystemRoot\system32\mcupdate_GenuineIntel.dll
Loaded driver \SystemRoot\system32\PSHED.dll
Loaded driver \SystemRoot\system32\BOOTVID.dll
Loaded driver \SystemRoot\system32\CLFS.SYS
Loaded driver \SystemRoot\system32\CI.dll
Loaded driver \SystemRoot\system32\drivers\Wdf01000.sys
Loaded driver \SystemRoot\system32\drivers\WDFLDR.SYS
Loaded driver \SystemRoot\system32\drivers\ACPI.sys
Loaded driver \SystemRoot\system32\drivers\WMILIB.SYS
Loaded driver \SystemRoot\system32\drivers\msisadrv.sys
Loaded driver \SystemRoot\system32\drivers\pci.sys
Loaded driver \SystemRoot\system32\drivers\vdrvroot.sys
Loaded driver \SystemRoot\System32\drivers\partmgr.sys
Loaded driver \SystemRoot\system32\drivers\compbatt.sys
Loaded driver \SystemRoot\system32\drivers\BATTC.SYS
Loaded driver \SystemRoot\system32\drivers\volmgr.sys
Loaded driver \SystemRoot\System32\drivers\volmgrx.sys
Loaded driver \SystemRoot\System32\drivers\mountmgr.sys
Loaded driver \SystemRoot\system32\DRIVERS\iaStor.sys
Loaded driver \SystemRoot\system32\drivers\atapi.sys
Loaded driver \SystemRoot\system32\drivers\ataport.SYS
Loaded driver \SystemRoot\system32\drivers\amdxata.sys
Loaded driver \SystemRoot\system32\drivers\fltmgr.sys
Loaded driver \SystemRoot\system32\drivers\fileinfo.sys
Loaded driver \SystemRoot\system32\DRIVERS\MpFilter.sys
Loaded driver \SystemRoot\system32\DRIVERS\Lbd.sys
Loaded driver \SystemRoot\System32\Drivers\PxHelp20.sys
Loaded driver \SystemRoot\System32\Drivers\Ntfs.sys
Loaded driver \SystemRoot\System32\Drivers\msrpc.sys
Loaded driver \SystemRoot\System32\Drivers\ksecdd.sys
Loaded driver \SystemRoot\System32\Drivers\cng.sys
Loaded driver \SystemRoot\System32\Drivers\FBIOSDRV.sys
Loaded driver \SystemRoot\System32\drivers\pcw.sys
Loaded driver \SystemRoot\System32\Drivers\Fs_Rec.sys
Loaded driver \SystemRoot\system32\drivers\ndis.sys
Loaded driver \SystemRoot\system32\drivers\NETIO.SYS
Loaded driver \SystemRoot\System32\Drivers\ksecpkg.sys
Loaded driver \SystemRoot\System32\drivers\tcpip.sys
Loaded driver \SystemRoot\System32\drivers\fwpkclnt.sys
Loaded driver \SystemRoot\system32\drivers\volsnap.sys
Loaded driver \SystemRoot\System32\Drivers\spldr.sys
Loaded driver \SystemRoot\System32\drivers\rdyboost.sys
Loaded driver \SystemRoot\System32\Drivers\mup.sys
Loaded driver \SystemRoot\System32\drivers\hwpolicy.sys
Loaded driver \SystemRoot\System32\DRIVERS\fvevol.sys
Loaded driver \SystemRoot\system32\drivers\disk.sys
Loaded driver \SystemRoot\system32\drivers\CLASSPNP.SYS
:
-- end of "\Windows\ntbtlog.txt" -----------------------------------------------

  Note: Press F8 key on the "Windows Boot Manager" screen and select "Enable Boot Logging" to make a "\Windows\ntbtlog.txt".
 

$ 2.8 Check and modify the fields of MBR/EPBR and PBR-BPB/EBPB


  Check the fields of MBR/EPBR and PBR-BPB/EBPB, and modify them as needed.

Notes:
  MBR:	Master Boot Record
  EPBR:	Extended Partition Boot Record
 (EBR:	Extended Boot Record)
  PBR:	Partition Boot Record (Boot Sector Sections)
  BPB:	BIOS Parameter Block
  EBPB:	Extended BIOS Parameter Block

Related links (reference):

- Master Boot Record
  http://technet.microsoft.com/en-us/library/cc976786.aspx
- Boot Sector
  http://technet.microsoft.com/en-us/library/cc976796.aspx
- How NTFS Works: Local File Systems
  http://technet.microsoft.com/en-us/library/cc781134(v=ws.10).aspx
- How FAT Works: Local File Systems
  http://technet.microsoft.com/en-us/library/cc776720(v=ws.10).aspx

- 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

$ 2.8.1 Check the fields of MBR/EPBR and PBR-BPB/EBPB before modification


  Check the fields of MBR/EPBR and PBR-BPB/EBPB before modification with "bpbf.bat" (bpb.exe) etc.
  For example, some strange values may have been set to the Notable fields of MBR/EPBR and PBR-BPB/EBPB.

(Example)

Notable fields of MBR/EPBR and PBR-BPB/EBPB:

- MBR/EPBR HiddenSectors (EPBR HiddenSectors)
- 1ch-1fh Hidden Sectors (PBR-BPB Hidden Sectors)
- etc.

(Example: using "bpbf.bat" on "Administrator: Command Prompt" window)
-- start of "Administrator: Command Prompt" ------------------------------------
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\windows\system32>D:

D:\>cd "\usr\!ARC\DSKPART\FAT32FMT\bpb"

D:\usr\!ARC\DSKPART\FAT32FMT\bpb>bpbf N: > L8.log

D:\usr\!ARC\DSKPART\FAT32FMT\bpb>bpbf O: > L9.log

D:\usr\!ARC\DSKPART\FAT32FMT\bpb>bpbf P: > La.log

D:\usr\!ARC\DSKPART\FAT32FMT\bpb>type ??.log > !bpbfl.log 2>&1

D:\usr\!ARC\DSKPART\FAT32FMT\bpb>"!bpbfl.log"

D:\usr\!ARC\DSKPART\FAT32FMT\bpb>exit
-- end of "Administrator: Command Prompt" --------------------------------------

(Example: checking extracted fields of MBR/EPBR and PBR-BPB/EBPB before modification)
-- start of "!bpbfl.log" -------------------------------------------------------

L8.log


StartingOffset: 0x3000100000=206159478784B 50331904/4KB 196609.000MB 192.001GB
PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB
MBR/EPBR HiddenSectors: 0x800 2048 256/4KB; 0x800 % 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: 0x800 2048 256/4KB; 0x800 % 8 = 0
24h-27h Sectors Per FAT: 0xffc0 65472 16368/4KB; (0xffc0 * 2) % 8 = 0
47h-51h Volume Label: "NO NAME    "

L9.log


StartingOffset: 0x4000400000=274882101248B 67109888/4KB 262148.000MB 256.004GB
PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB
MBR/EPBR HiddenSectors: 0xb35 2869 358.625/4KB; 0xb35 % 8 = 5
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: 0xb35 2869 358.625/4KB; 0xb35 % 8 = 5
24h-27h Sectors Per FAT: 0xffc0 65472 16368/4KB; (0xffc0 * 2) % 8 = 0
47h-51h Volume Label: "NO NAME    "

La.log


StartingOffset: 0x5000700000=343604723712B 83887872/4KB 327687.000MB 320.007GB
PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB
MBR/EPBR HiddenSectors: 0xe52 3666 458.25/4KB; 0xe52 % 8 = 2
PartitionType: 0x07 7 (IFS partition.)
0dh     Sectors Per Cluster: 0x8 8 4096B 4KB 1/4KB
1ch-1fh Hidden Sectors: 0xe52 3666 458.25/4KB; 0xe52 % 8 = 2
-- end of "!bpbfl.log" ---------------------------------------------------------

$ 2.8.2 Back up the typical NTFS/FAT32 logical partition respectively


  Back up the typical NTFS logical partition with Paragon Backup & Recovery etc. while it is empty.
  Back up the typical FAT32 logical partition with Paragon Backup & Recovery etc. while it is empty.

  The above empty backups will be used to modify the fields of MBR/EPBR and PBR-BPB/EBPB.
  And then the above empty backups will be used to initialize the partitions instead of formatting them.

$ 2.8.3 Restore the (empty) backup to the NTFS/FAT32 logical partition respectively


  WARNING: All the data in each partition will be lost.

  Restore the NTFS (empty) backup to all the NTFS logical partitions with Paragon Backup & Recovery etc.
  Restore the FAT32 (empty) backup to all the FAT32 logical partitions with Paragon Backup & Recovery etc.
  And change the volume label for each NTFS/FAT32 logical partition as needed with Paragon Backup & Recovery etc.

  Then the Notable fields of MBR/EPBR and PBR-BPB/EBPB may have been modified as a side effect of restoring.
  But the Partition Type (System ID) for each FAT32 partition may have been changed from 0x0c to 0x0b forcibly.

$ 2.8.4 Change the Partition Type (System ID) for each FAT32 partition


  Change the Partition Type for each FAT32 partition from 0x0b to 0x0c with PowerQuest Partition Table Editor.
  Use "Goto Parent" and "Goto EPBR" buttons to change each screen of MBR/EPBR.

  And then reboot the machine.

Notes:
  Partition Type 0x0b: FAT32 partition which doesn't use extended int13 services (CHS addressing mode)
  Partition Type 0x0c: FAT32 partition which uses extended int13 services (LBA addressing mode)

(Example: PowerQuest Partition Table Editor; after changing Partition Type)
  [img]images/pteditL8.jpg[/img]

  [img]images/pteditL9.jpg[/img]

$ 2.8.5 Check the fields of MBR/EPBR and PBR-BPB/EBPB after modification


  Check the fields of MBR/EPBR and PBR-BPB/EBPB after modification with "bpbf.bat" (bpb.exe) etc.

  The "MBR/EPBR HiddenSectors" (EPBR HiddenSectors) should have been adjusted to 8*n[sct] (or 2048[sct] for MBR).
  The "1ch-1fh Hidden Sectors" (PBR-BPB Hidden Sectors) should have been adjusted to the converted StartingOffset[sct].
  The "PartitionType" (System ID) for each FAT32 partition should have been 0x0c.

  But e.g. the EPBR HiddenSectors of the 1st logical partition may have been changed from 8*n to 0x1 forcibly.

(Example: checking extracted fields of MBR/EPBR and PBR-BPB/EBPB after modification)
-- start of "!bpbfl.log" -------------------------------------------------------

L8.log


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: 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: "L8W070E5"

L9.log


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: 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: "L9W070E5"

La.log


StartingOffset: 0x5000700000=343604723712B 83887872/4KB 327687.000MB 320.007GB
PartitionLength: 0xffff00000=68718428160B 16776960/4KB 65535.000MB 63.999GB
MBR/EPBR HiddenSectors: 0x800 2048 256/4KB; 0x800 % 8 = 0
PartitionType: 0x07 7 (IFS partition.)
0dh     Sectors Per Cluster: 0x8 8 4096B 4KB 1/4KB
1ch-1fh Hidden Sectors: 0x28003800 671102976 83887872/4KB; 0x28003800 % 8 = 0
-- end of "!bpbfl.log" ---------------------------------------------------------

$ 2.8.6 Check the partitions after modification


  Check the partitions after modification with the parted etc.
  The start, end and size for each partition should have been "aligned" values.

  But e.g. the start, end and size of the extended partition may have been changed to "not aligned" values forcibly.

(Example: checking partitions on "Terminal" window after modification)
-- start of "Terminal" (user@debian) -------------------------------------------
user@debian:~$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
user@debian:~$ su
Password:
root@debian:/home/user# parted -ao
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) select /dev/sdb
Using /dev/sdb
(parted) unit MiB
(parted) print
Model: I-O DATA HDPC-UT (scsi)
Disk /dev/sdb: 953870MiB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start      End        Size       Type      File system  Flags
 1      1.00MiB    65536MiB   65535MiB   primary   ntfs
 2      65537MiB   131072MiB  65535MiB   primary   ntfs
 3      131073MiB  196608MiB  65535MiB   primary   ntfs
 4      196609MiB  953867MiB  757258MiB  extended               lba
 5      196609MiB  262144MiB  65535MiB   logical   fat32        lba
 6      262148MiB  327683MiB  65535MiB   logical   fat32        lba
 7      327687MiB  393222MiB  65535MiB   logical   ntfs
 8      393225MiB  458760MiB  65535MiB   logical   ntfs
 9      458764MiB  524299MiB  65535MiB   logical   ntfs
10      524303MiB  589838MiB  65535MiB   logical   fat32        lba
11      589841MiB  655376MiB  65535MiB   logical   fat32        lba
12      655380MiB  720915MiB  65535MiB   logical   ntfs
13      720918MiB  786453MiB  65535MiB   logical   ntfs
14      786457MiB  851992MiB  65535MiB   logical   ntfs
15      851996MiB  917531MiB  65535MiB   logical   ntfs
16      917534MiB  953867MiB  36333MiB   logical   ntfs

(parted) unit s
(parted) print
Model: I-O DATA HDPC-UT (scsi)
Disk /dev/sdb: 1953525168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start        End          Size         Type      File system  Flags
 1      2048s        134217727s   134215680s   primary   ntfs
 2      134219776s   268435455s   134215680s   primary   ntfs
 3      268437504s   402653183s   134215680s   primary   ntfs
 4      402655231s   1953519615s  1550864385s  extended               lba
 5      402655232s   536870911s   134215680s   logical   fat32        lba
 6      536879104s   671094783s   134215680s   logical   fat32        lba
 7      671102976s   805318655s   134215680s   logical   ntfs
 8      805324800s   939540479s   134215680s   logical   ntfs
 9      939548672s   1073764351s  134215680s   logical   ntfs
10      1073772544s  1207988223s  134215680s   logical   fat32        lba
11      1207994368s  1342210047s  134215680s   logical   fat32        lba
12      1342218240s  1476433919s  134215680s   logical   ntfs
13      1476440064s  1610655743s  134215680s   logical   ntfs
14      1610663936s  1744879615s  134215680s   logical   ntfs
15      1744887808s  1879103487s  134215680s   logical   ntfs
16      1879109632s  1953519615s  74409984s    logical   ntfs

(parted) align-check min 4
4 aligned
(parted) align-check opt 4
4 not aligned
(parted) quit
root@debian:/home/user# exit
exit
user@debian:~$ exit
-- end of "Terminal" (user@debian) ---------------------------------------------

$ 2.9 Configure master/partition boot manager as needed


  Configure a master boot manager and each partition boot manager as needed.

$ 2.9.1 Install a master boot manager for MBR as needed


  Install a master boot manager for MBR as needed with the Multiple Boot Manager "MBM" etc.

$ 2.9.2 Rebuild the Boot Configuration Data "BCD" as needed


  Rebuild the Boot Configuration Data "BCD" for each partition boot manager as needed with "bcde.bat" etc.

(Example)

BCD Builder/Generator:

- "bcde.bat" - Boot Configuration Data Edit BATch for Windows 7 (OEM_SLP) / PE3.x - BCD Builder/Generator
  http://hp.vector.co.jp/authors/VA053879/bcde_bat.htm
or
- "bcde.bat" without Japanese comments (Public Domain)
  http://hp.vector.co.jp/authors/VA053879/en-US/bcde_bat.txt

Notes:

  The Recovery Partition should be unhidden: 27h->07h with MiniTool Partition Wizard or PTEDIT32.EXE etc.
  The Recovery Partition should be moved to a runt partition, e.g. the last partition of the disk #0.
  Then the 1st partition B0 will become free.

  The Boot Partition should be integrated to the Recovery Partition.
i.e. "\bootmgr" and "\Boot\" should be copied to the Recovery Partition.
  The Boot Partition should be integrated to the other System Partitions.
i.e. "\bootmgr" and "\Boot\" should be copied to the other System Partitions.
  And then the dedicated Boot Partition should be deleted.

  The drive letter "Z" should be assigned to the internal CD/DVD/BD drive.

$ 3.  Apply it to an internal HDD/SSD as needed


  WARNING: All the data in the HDD/SSD will be lost.

#1.  Create the integrated ISO file / bootable CD/DVD/BD of the Related Softwares

#2.  Back up the 32 bit Recovery/System Partition to media respectively

#2.1 A 32 bit Windows system (OEM_SLP) has been pre-installed

#2.2 Unhide the 32 bit Recovery Partition: 27h->07h

#2.3 Assign each drive letter to the 32 bit Recovery Partition and the 32 bit Boot Partition

#2.4 Copy the dir/files in the 32 bit Boot Partition to the 32 bit Recovery Partition and the 32 bit System Partition

#2.5 Download, extract and install the Related Softwares

#2.6 Back up the 32 bit Recovery Partition and the 32 bit System Partition to media respectively

#3.  Back up the 64 bit Recovery/System Partition to media respectively

#3.1 Install a 64 bit Windows system (OEM_SLP)

#3.2 Unhide the 64 bit Recovery Partition: 27h->07h

#3.3 Assign each drive letter to the 64 bit Recovery Partition and the 64 bit Boot Partition

#3.4 Copy the dir/files in the 64 bit Boot Partition to the 64 bit Recovery Partition and the 64 bit System Partition

#3.5 Download, extract and install the Related Softwares

#3.6 Back up the 64 bit Recovery Partition and the 64 bit System Partition to media respectively

#4.  Make 2048[sct] aligned / 2^n[GB] normalized partitions

  Copy (back up) the script for the parted to media like CD before wiping the HDD.

  Restore the backup to the 32/64 bit System Partition before formatting on Windows.
  And then restore the backup to the 32 (and/or 64) bit Recovery Partition.

Contents

$ 1.  Create the integrated ISO file / bootable CD/DVD/BD of the Related Softwares

$ 2.  Make 2048[sct] aligned / 2^n[GB] normalized partitions

$ 2.1 Download, extract and install the Related Softwares

$ 2.2 Edit a script for the parted

$ 2.3 Back up each partition to media as needed

$ 2.4 Wipe the HDD as needed

$ 2.5 Apply the script to the parted (Make the partitions)

$ 2.6 Format each partition temporarily

$ 2.7 Format each partition properly on Windows as needed

$ 2.8 Check and modify the fields of MBR/EPBR and PBR-BPB/EBPB

$ 2.8.1 Check the fields of MBR/EPBR and PBR-BPB/EBPB before modification

$ 2.8.2 Back up the typical NTFS/FAT32 logical partition respectively

$ 2.8.3 Restore the (empty) backup to the NTFS/FAT32 logical partition respectively

$ 2.8.4 Change the Partition Type (System ID) for each FAT32 partition

$ 2.8.5 Check the fields of MBR/EPBR and PBR-BPB/EBPB after modification

$ 2.8.6 Check the partitions after modification

$ 2.9 Configure master/partition boot manager as needed

$ 2.9.1 Install a master boot manager for MBR as needed

$ 2.9.2 Rebuild the Boot Configuration Data "BCD" as needed

$ 3.  Apply it to an internal HDD/SSD as needed

/* Copyright: Public Domain (free contents) for the contents in the just above element. */
/* Everyone can copy, revise and distribute/publish the contents in the just above element. */
/* Everyone can copy, paste, save and use the contents in the just above element. */

Links - PA053879

Top Page - PA053879

BSEK (Backup/copy Software Evaluation Kit)

Windows システムをファイルコピー型バックアップする検討内容

"xcpt.bat" - eXtended CoPy Test BATch for Windows7 HP 64bit(x64)

"xcp.bat" - eXtended CoPy BATch for Windows7 HP 64bit(x64)

"xat.bat" - eXtended ATtrib BATch for Windows7 HP 64bit(x64)

"bcde.bat" - Boot Configuration Data Edit BATch for Windows 7 (OEM_SLP) / PE3.x - BCD Builder/Generator

"t2hp.bat" - Text TO xHtml Parts BATch for perl

"dddi.bat" - Device class Drivers DisInstaller / Inactive-Installer BATch for Windows 7 (OEM_SLP) / PE3.x

"bpbf.bat" - "BPB" display tool text Filtering wrapper

The making of the integrated ISO file / bootable CD/DVD/BD

The making of 2048[sct] aligned / 2^n[GB] normalized partitions

Ideal 2TB HDD, 256GB partitions, Optimal alignment

Ideal 2TB HDD, 256GB partitions, with gaps for Cyl. boundary

Ideal 2TB HDD, 128GB partitions, Optimal alignment

Ideal 2TB HDD, 128GB partitions, with gaps for Cyl. boundary

Ideal 2TB HDD, 64GB partitions, Optimal alignment

Ideal 2TB HDD, 64GB partitions, with gaps for Cyl. boundary

I-O DATA HDPC-UT, 64GB partitions, with gaps for Cyl. boundary

Hitachi HTS545050B9A300, 64GB partitions, with gaps for Cyl. boundary

FUJITSU MHT2030AT, 8GB partitions, with gaps for Cyl. boundary

Ideal USB Memory, single partition, Optimal alignment

The making of USB bootable system for Windows 7 (OEM_SLP) / PE3.x

counter