Synology SA3400 Recovery Media Creation Guide - Page 23

Create a new boot record for the Windows PE image, copied GUID in the commands below

Page 23 highlights

Method 2: Manually Create Recovery Media 6. Copy the bootable WinPE image to the same Boot folder. copy C:\winpe\media\sources\boot.wim y:\Boot 7. Copy the TrueType font to the Boot folder (optional). md y:\Boot\Fonts copy C:\winpe\media\Boot\Fonts\*.* y:\Boot\Fonts 8. Create a BCD file as an administrator by using the command line interface (CLI) and entering the commands below. // Use bcdedit.exe to create space for BCD: bcdedit /createstore c:\BCD // Configure the RAMDISK: bcdedit /store c:\BCD /create {ramdiskoptions} /d "Ramdisk options" bcdedit /store c:\BCD /set {ramdiskoptions} ramdisksdidevice boot bcdedit /store c:\BCD /set {ramdiskoptions} ramdisksdipath \Boot\boot. sdi bcdedit /store c:\BCD /create /d "winpe boot image" /application osloader // The last command will return a GUID, for example: // The entry {a4f89c62-2142-11e6-80b6-00155da04110} was successfully created. // Copy the returned GUID to use it in the next command. Substitute 'GUID1' with the copied GUID in the commands below: // Create a new boot record for the Windows PE image: bcdedit /store c:\BCD /set {GUID1} device ramdisk=[boot]\Boot\boot. wim,{ramdiskoptions} bcdedit /store c:\BCD /set {GUID1} path \windows\system32\winload.exe bcdedit /store c:\BCD /set {GUID1} osdevice ramdisk=[boot]\Boot\boot. wim,{ramdiskoptions} bcdedit /store c:\BCD /set {GUID1} systemroot \windows bcdedit /store c:\BCD /set {GUID1} detecthal Yes bcdedit /store c:\BCD /set {GUID1} winpe Yes // Configure the BOOTMGR, substituting 'GUID 1' with the copied GUID: bcdedit /store c:\BCD /create {bootmgr} /d "boot manager" bcdedit /store c:\BCD /set {bootmgr} timeout 30 bcdedit /store c:\BCD -displayorder {GUID1} -addlast // Copy this BCD file to the shared folder "Boot" copy c:\BCD y:\Boot\BCD 9. Copy bootmgr.exe and pxeboot.n12 to y:. copy y:\Boot\bootmgr.exe y:\bootmgr.exe copy y:\Boot\pxeboot.n12 y:\pxeboot.n12 21

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

21
Method 2: Manually Create Recovery Media
6. Copy the bootable WinPE image to the same Boot folder.
copy C:\winpe\media\sources\boot.wim y:\Boot
7. Copy the TrueType font to the Boot folder (optional).
md y:\Boot\Fonts
copy C:\winpe\media\Boot\Fonts\*.* y:\Boot\Fonts
8. Create a BCD file as an administrator by using the command line interface (CLI) and
entering the commands below.
// Use bcdedit.exe to create space for BCD:
bcdedit /createstore c:\BCD
// Configure the RAMDISK:
bcdedit /store c:\BCD /create {ramdiskoptions} /d "Ramdisk options"
bcdedit /store c:\BCD /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store c:\BCD /set {ramdiskoptions} ramdisksdipath \Boot\boot.
sdi
bcdedit /store c:\BCD /create /d "winpe boot image" /application
osloader
// The last command will return a GUID, for example:
// The entry {a4f89c62-2142-11e6-80b6-00155da04110} was successfully
created.
// Copy the returned GUID to use it in the next command. Substitute 'GUID1' with the
copied GUID in the commands below:
// Create a new boot record for the Windows PE image:
bcdedit /store c:\BCD /set {GUID1} device ramdisk=[boot]\Boot\boot.
wim,{ramdiskoptions}
bcdedit /store c:\BCD /set {GUID1} path \windows\system32\winload.exe
bcdedit /store c:\BCD /set {GUID1} osdevice ramdisk=[boot]\Boot\boot.
wim,{ramdiskoptions}
bcdedit /store c:\BCD /set {GUID1} systemroot \windows
bcdedit /store c:\BCD /set {GUID1} detecthal Yes
bcdedit /store c:\BCD /set {GUID1} winpe Yes
// Configure the BOOTMGR, substituting 'GUID 1' with the copied GUID:
bcdedit /store c:\BCD /create {bootmgr} /d "boot manager"
bcdedit /store c:\BCD /set {bootmgr} timeout 30
bcdedit /store c:\BCD -displayorder {GUID1} -addlast
// Copy this BCD file to the shared folder "Boot"
copy c:\BCD y:\Boot\BCD
9. Copy bootmgr.exe and pxeboot.n12 to y:.
copy y:\Boot\bootmgr.exe y:\bootmgr.exe
copy y:\Boot\pxeboot.n12 y:\pxeboot.n12