Quantcast
Channel: Macrium KB » Knowledgebase
Viewing all 166 articles
Browse latest View live

v5: Command line arguments

$
0
0
It is possible run reflect.exe from the command line or VB script. A number of command line arguments allow the user flexibility to perform a number of actions. There are three main usage areas as follows:
  • Running a backup
  • Mounting an image
  • Unmounting an image

Each topic is discussed in detail below.

Running a backup

Use the syntax as follows:

reflect.exe [-v | -e [-w] [-full | -inc | -diff] [xml filename] ]

Switches

-e
Execute the XML file. If no full / diff / inc qualifier is used, a full backup is performed by default.
-w If Reflect is busy then wait until available otherwise exit immediately
-v
Validate the XML file and exit
-full
Run a full backup
-diff
Run a differential backup
-inc Run an incremental backup

Examples

To validate an XML file:
    reflect.exe -v "c:\backup.xml"
To run a full backup using an XML file:
    reflect.exe -e "c:\backup.xml"

or

reflect.exe -e -full "c:\backup.xml"
To execute an XML file with wait if busy
    reflect.exe -e -w "c:\backup.xml"
To execute an XML file and create an incremental image
    reflect.exe -e -inc "c:\backup.xml"

Mounting an image

Use the syntax as follows:
    reflect.exe [Path To Image File] -b [-auto -drives [Drives[s]]  -pass [PASSWORD]]

Switches

-b Browse image
-auto Automatically assign drive letters.
\tIf not specified then you will be prompted
-drives
A comma separated list of drive letters to use. If not specified
\tthen the next available letters are used
-pass The password for protected image files
The image file name is the fully qualified path. If "LAST_FILE_CREATED" is specified then the last image created in the current Windows session is mounted.

Examples

To mount an image and prompt for a drive letter to use:
reflect.exe "D:\901DBF91346B9A81-00-00.mrimg" -b
To mount all partitions in an image using the next available drive letter(s):
    reflect.exe "D:\901DBF91346B9A81-00-00.mrimg" -b -auto
To mount all partitions for the last image created:
reflect.exe "LAST_FILE_CREATED" -b -auto
To mount all partitions in an image using drive letters j,k,l:
reflect.exe "D:\901DBF91346B9A81-00-00.mrimg" -b -auto -drives j,k,l
To mount all partitions in a password protected image using drive letters j,k,l:
    reflect.exe "D:\901DBF91346B9A81-00-00.mrimg" -b -auto -drives j,k,l -pass "PWD"

Unmounting an image

Use the syntax as follows:
reflect.exe [Drive Letter] -u

Switches

-u Unmount image
If a drive letter isn't specified then all mounted images are unmmounted

Examples

To unmount an image from drive letter 'j':
reflect.exe J -u
To umnount all mounted drives:
reflect.exe -u

Driver load issues in WinPE

$
0
0
This article covers some of the issues with drivers failing to load when booting WinPE.



Use drivers of the same architecture

Drivers, like any other form of software, have an architecture, either 32 bit (x86) or 64 bit (x64). When trying to load drivers in WinPE, it is essential to have drivers which match the architecture of your WinPE environment. For example, using 32 bit drivers on a 64 bit WinPE could cause load failures.




Drivers not located on accessible disk

Normally, when booting from a RAID controller, be it array or single drive configuration, drivers will need to be loaded in order to access that device. However, as the device will not be visible to WinPE you cannot put drivers on any disk (fixed or optical) which is connected to that controller.

Solution 1 : Make drivers available on accessible media such as a usb device

In order to get round this chicken and egg problem, you will need to place drivers for the device onto a disk which is visible in WinPE, a good choice would be a USB2 pen drive for this.



The exceptions to this are nVidia RAID and Intel Matrix RAID, as WinPE has built in driver support for these devices.



The drivers folder can be copied to another disk using the following method whilst in Windows:



If you have a local non-RAID disk 'e:' then from a command prompt type:



xcopy /e c:\boot\macrium\drivers\* e:\boot\macrium\drivers



if 'e:' is a removable (flash) drive, then use the following command:



xcopy /e c:\boot\macrium\drivers\* e:\drivers



Note: The '/e' switch means recursive copy and is not to be confused with the drive letter 'e:'.



If 'e:' is present during the boot menu load then the drivers will be loaded.

Solution 2 : Add drivers to PE Image

If you have previously created a 'Custom Windows PE' rescue CD (WAIK) then jump to step 4, otherwise follow all the steps below:

1. Take the 'Custom Windows PE' rescue CD option in the rescue CD wizard.

2. If you haven't previously installed the Windows Automated Installation Kit (WAIK), then this will need to be downloaded and installed. This is a big (1.7GB) download, so please be patient.The WAIK download dialog will be shown. Just click 'Continue' and be patient while the integration completes.

3. Once the integration is finished cancel the rescue media wizard.

4. Download and run 'inject.exe' from here:

http://updates.macrium.com/reflect/utilities/inject.exe

This will automatically inject the drivers into the windows image file (WIM) and will take a few minutes.

5. Once completed, take the rescue media build wizard again, select the 'Custom Windows PE' and click through to the final page.

6. Click the 'Rebuild' button to re-integrate the WAIK. This will not need to download and install the WAIK again, so will be much quicker.

7. Once completed, if you now burn the rescue CD the drivers will be integrated and you should have no problems booting with the CD and recognizing your local RAID volumes.

If you still have problems then email the file 'c:\waiklog.txt' and an explanation of your issue to support (at) macrium.com so we can investigate further.


Driver location load order

Macrium Reflect will load drivers based on the existence of the file macrium.oem, the following locations will be checked in sequence and if the file macrium.oem is found then driver loading will commence from that point. Subsequent locations will not be checked for drivers.



  1. Removeable media (such as USB pen drives). The file (macrium.oem) must reside in the Drivers folder on the root of the media.
  2. CD=ROM/DVD-ROM drives. The file (macrium.oem) must reside on the Drivers folder on the root of the media.
  3. Local fixed hard disks. The file must reside on the Boot\Macrium\Drivers folder on the root of the local hard disk.
Please note that in Windows, the drivers folder that's loaded when WinPE boots can be located in c:\Boot\Nacrium\Drivers. Once USB/CD-ROM/DVD-ROM rescue is created this folder will be \Drivers on the root of the respective rescue media.




Missing support files

On 64 bit WinPE systems, most drivers will require a supporting security catalog and in some instances, DLL files. If running a 64 bit Windows Vista system or later, Macrium Reflect will take care of this for you when building the rescue media. However, if on an XP or 2003 Server operating system you will need to make sure you provide a driver package that contains a security catalog and any supporting DLL files when using the Update Driver feature in the Create Rescue Media wizard.


 

Search Terms

Cannot see RAID array in WinPE

Drivers failed to load in WinPE

WinPE drivers

Driver load failed


The benefits of differential and incremental backup

$
0
0
In the Free Edition of Macrium Reflect, you are only able to make full images of your disks and partitions. In creating a full image, the entire contents of the imaged file system are stored in the image file. Although this is a reliable way of backing up your PC, repeating the process is slow and subsequent images can fill your target media very quickly. However, in the paid versions of Macrium Reflect, it is possible to create differential and incremental images which are both quicker to execute than full images and create much smaller image files.

Differential Images
In order to create a differential image, a full image must first be created. The differential then stores only the changes that have been made to the imaged file system since the last full image. It is possible to take subsequent differentials, but only one differential and the full are required in order to fully restore the system. However, the longer the time between the full and the differential, the larger the differential image file will be and the longer it will take to create.

Advantages
  • Differential images created after the initial full Image are very quick because only file system changes since the full backup are saved.
  • The amount of disk space used by differential images is significantly less than that of full images
  • Only two image files are required to restore the system

Disadvantages
  • As the time since the last full image was taken increases, the size of the differential will grow as will the time it takes to create the differential image. In order to reduce this time, it is necessary to perform a full image occasionally to reduce the size of the subsequent differential images.
Incremental Images
Incremental images are similar to differential images in that they require a full backup to be made first. However, the main difference is that they only store file system changes since the last image, either full or incremental. The resultant backup set will therefore consist of a full image and a number of incremental images which must all be present in order to restore the system correctly.

Advantages
  • Incremental images have the same advantages as differential images, but since they only store the changes that were made since the last full or incremental. They are always small and very quick to make, especially if done frequently.
Disadvantages
  • The only disadvantage to using incremental images is that all files must be present in the image set. If any intermediate incremental images are missing, it will not be possible to restore the system to the latest backup.


Managing Differential and Incremental images in Macrium Reflect

It may appear to be quite an onerous task to maintain the backup sets. With this in mind, Macrium Reflect takes care of all the hard work for you. It is possible to schedule incremental or differential backups automatically. When restoring an image, you select which image you wish to restore and Macrium Reflect automatically select the required files in the image set as part of the restore process. The same is true for exploring an image. If you choose to explore an incremental image in an explorer window, Macrium Reflect will reconstruct all the files that have been backed up to that time.

Macrium Reflect also includes functionality that allows you to automatically delete image sets that have expired. For example, if you take a full image every month and then incremental images every day, you can configure Reflect to keep two full image sets (the equivalent of two months of backups) and delete any older files. As a result of this, your backup media will not end up becoming full of obsolete image files.

Restoring to dissimilar hardware - What is Macrium Redeploy?

$
0
0
There are many good reasons to image a computer hard drive. It will provide protection against
  • Accidental deletion of files
  • Corruption of files, file system or windows system due to software bug
  • Hard disk corruption or failure
  • Theft of computer
In the case of lost files or a failed, corrupted hard drive, an image restore will get you up and running again.

Unfortunately, if you need to buy a new computer, the situation is rather more complex. Windows is optimised to boot as quickly as possible and this is achieved by only loading drivers for your system. This means, however, that if you try to boot an installation of windows on new hardware, you are likely to encounter the dreaded blue screen of death (or BSOD).

You can also encounter this issue, if you are moving your system to a virtual machine, from a virtual machine or changing your storage configuration, such as switching to a RAID setup.

As this is a situation commonly encountered by our customers, we have developed a tool call ReDeploy. It is designed make the complex process of getting windows running on new hardware as easy and intuitive as possible.


You can read about it in more detail here

v5: How to use VBScript to create a monthly backup cycle

$
0
0

In this article, we look at using VBScript to handle a monthly backup cycle. I’ll show you how to generate a template VBScript source file and modify a couple of lines to enable selective execution of the XML definition files created in the previous tutorials.

So far we’ve created image definitions and scheduled these to run in a weekly backup cycle. We’ve also used the disk space management option to ensure that our backup disk doesn’t overflow. But, what if you want to schedule your images using a monthly calendar cycle? Say you want to run a full image on the first Monday of every month and an incremental image for all other weekdays. How do you do that?

Macrium Reflect uses the standard Windows Scheduler to schedule all backups and images. This has the advantage of being a very well tried and tested scheduler, plus it reduces valuable program overhead by using an existing, running service. However, while the Windows Scheduler is great for repeating weekly pattern of days, it can’t handle monthly exclusions very well. In our above example we can schedule the full image to run on the first Monday of each month without a problem, but the incremental images would have to be scheduled for every weekday. This means that on the first Monday of each month you’d run both the full and incremental images. This isn’t a very elegant solution; so what do we do?

The answer is VBScript. With VBScript we have total flexibility to do anything we want. We can also reduce the number of tasks to schedule to just one.

If you’re unfamiliar with VBScript source, it can look rather daunting. The syntax seems unnecessarily complex and verbose. However, one thing to remember is that in most cases you can just copy existing code examples and modify them slightly to make them work for you. Macrium Reflect generates a great working template for you to modify, and I’ll show you a couple of simple code lines to add to achieve the scheduling scenario I’ve outlined above.


OK, let’s begin…

1. Start Reflect, click the ‘Backup Definition Files’ tab, select the ‘image of C’ example file and then click the ‘Generate VBScript’ button.

2. The VBScript generation dialog is shown. Modify the VBScript file name to ‘Monthly Schedule’, and then click OK.

This will generate a VBScript template file using the default options. The defaults will simply run the image and create a log file in the directory where the XML definition is stored. A VBScript source file can be scheduled in exactly the same way as an XML file, but first we’re going to modify it to run both the full and incremental images on the correct days.

3.Click the ‘VBScript files’ tab. You should see your new VBScript source file in the list of source files. If you select it with your left mouse you can see the automatically generated code in the lower half of the window.

Monthly
This view has the advantage of syntax highlighting. This means that keywords, conditions and certain variables are displayed different colors, making viewing the source (and potential errors) much easier.

4. Right click on the VBScript file and select ‘Edit’.



This will open the source file in the default editor, Notepad.exe. Make sure that Word Wrap is turned off. This makes editing the source code much easier.



Locate the following line of code:

ExitCode = Backup ("""C:\Program Files\Macrium\Reflect\reflect.exe"" -e -w <BACKUP_TYPE> ""C:\Users\Nick\Reflect\image of c.xml""")

And replace it with:

If Weekday(Date) = 2 AND Month(DateAdd("d", -7, Date)) <> Month(Date) Then
' Run the full image
ExitCode = Backup ("""C:\Program Files\Macrium\Reflect\reflect.exe"" -e -w -full ""C:\Users\Nick\Reflect\image of c.xml""")
Else
' Run the Incremental image
ExitCode = Backup ("""C:\Program Files\Macrium\Reflect\reflect.exe"" -e -w -inc ""C:\Users\Nick\Reflect\image of c.xml""")
End If

Note: Your XML file paths will be different to the paths above. We've replace the parameter '<BACKUP_TYPE>' with the type of backup we want to run. This could be either '-full, '-inc' or '-diff'


A quick summary of the functions used above:

  • The Date keyword is the current system date.
  • The Weekday function returns the day of the week as a number. 1 = Sunday, 2 = Monday etc.
  • DateAdd simply subtracts 7 days from the current date. The “d” means that we are subtracting (or adding) days. The other possibilities are, “yyyy” - Year, “q” – Quarter, “m” – Month, “y” - Day of year, “w” – Weekday, “ww” - Week of year, “h” – Hour, “n” – Minute, “s” – Second.
  • The Month function returns the month (1-12) of the DateAdd result and compares this with the current month using the ‘<>’ not equal to operator.

So, if the current day is Monday and the Monday of last week is a different month, then this must be the first Monday of the current month. As you can see, the code then simply executes the XML definition file for the full image otherwise an incremental XML is executed.

When you’ve made the changes, save the file and close Notepad.


5. All that remains is to schedule the VBScript file to run every weekday.

Right click on the VBScript file in the list and select ‘Schedule’. You’ve been through this wizard before, so I won’t go over it again. You could of course, select only weekdays or every day, but the important thing to understand is that whatever you choose, it’s the VBScript code that decides whether to run the full or incremental image not the scheduler.

Note: When you schedule this script it doesn't matter whether you select 'Full', 'Incremental' or 'Differential' in the schedule dialog, it's the script that determines which type to run.


You’ve done it! VBScript code that modifies the running order of your images. VBScript gives you complete flexibility for any situation you can think of.



Variations...

1. How to run the Full backup on the 1st day of every month and increments on every other.

Change the execution condition in step 4 above to the following:

If Day(Date) = 1 Then

' Run the full image
ExitCode = Backup ("""C:\Program Files\Macrium\Reflect\reflect.exe"" -e -w -full ""C:\Users\Nick\Reflect\image of c.xml""")
Else
' Run the Incremental image
ExitCode = Backup ("""C:\Program Files\Macrium\Reflect\reflect.exe"" -e -w -inc ""C:\Users\Nick\Reflect\image of c.xml""")
End If

2. How about running the full backup at a different time to the incremental backups.

For example: The full backup at 01:00 and the remaining increments at 09:00. For this you'll need to create two scheduled tasks.

1. First create create the full backup scheduled task by right clicking on the XML backup definition file and scheduling to run a 'Full' on the 1st of each month at 01:00

2. Then modify the VBScript as below and schedule it at 09:00 every day.

If Day(Date) <> 1 Then
' Run the Incremental image
ExitCode = Backup ("""C:\Program Files\Macrium\Reflect\reflect.exe"" -e -w -inc ""C:\Users\Nick\Reflect\image of c.xml""")
End If

In the above example on the first day of each month nothing will happen when this VBScript is executed but the scheduled full backup will occur at 01:00. On other days of the month incremental backups will occur at the scheduled time, 09:00,



This is just a very small example of the power of VBScript. If you want to delve further into VBScript, have a look at the options in the generator. It generates separate functions for each option and provides some handy comments to help you understand the code.

An excellent reference of VBScript functions can be found at http://www.w3schools.com/VBscript/vbscript_ref_functions.asp . Here you’ll find, not just the date functions introduced in this article, but every function available to you.



Resovling network issues in Windows PE

$
0
0
In the windows PE rescue environment, you may find that you can't connect to your network attached disk or another computer containing your backup. If this is the case, please use the following troubleshooting steps to resolve this issue.

1) Ensure your computer is connected via a network cable. Wireless (Wifi) network connections are not supported in windows PE.
Note the name of the server (NAS device or computer) and share name you normally connect with. Later, you may need your server ip address.
In a command window type the following (replacing <servername> with your server name).
ping <servername>
The ip address will be reported in [] and the reply responses.

2) Boot into the rescue environment.

3) Select the Restore -> View unsupported devices option. Are there any unsupported Network interface controllers listed? If so you can locate a driver for a temporary solution, or for a permanent fix, add a driver and rebuild your rescue CD. See the following article for further information.
http://kb.macrium.com/KnowledgebaseArticle50094.aspx

4) If you are confident that you have drivers for all relevant network devices have matching drivers loaded, select the Others tasks -> Network Config option.


i) Is there at least one network adaptor listed. If not, you need to reconsider step 3.
ii) Do you have an ip address (other than 0.0.0.0)? If not, check your network cable, and then hit renew. Alternatively, if you don't have a DHCP server on your network then enter a valid ip address for your network. Hint all domestic routers and corporate networks have a DHCP server configured by default.

5) If you do have a valid ip address for your network, and you can still not browse to your network attached storage, confirm that you can map a drive.

To do this, start PE explorer (third icon from left on the taskbar).


To do this you will need both the server name (or ip address) and the share name.

If this completes successfully, you will be able to access your network drive using the drive letter specified in the above dialog.

If you are still having problems, please contact support@macrium.com attaching the file, media_drivers.log.
It can be found in the folder C:\Documents And Settings\All Users\ApplicationData\Macrium\Reflect


Locating missing disks/drives

$
0
0
This article will help you understand and resolve the situation where you can't see your disk in Windows Explorer.
This can occur particularly if a clone or restore operation is interrupted or fails.

Note: If you can't see a disk in the rescue environment, this is more likely due to missing drivers. Please read more here...

Firstly a few terms.
Disk: This is a physical device attached to your computer, typically via a SATA or USB cable.
Partition: A disk is subdivided into one or more partitions. At the start of a disk resides a partition table that stores the location of these partitions. There are two standards, MBR and GPT.
Filesystem: To enable Windows to manage the space defined by a partition, a filesystem is created. This process is called formatting. The two most common standards are FAT32 and NTFS.
Drive / Volume: To utilise this space, Windows will typically assign a letter, at which point it will become visible in the windows explorer.
Note: There may be multiple Volumes on one disk. Or volumes can be split across multiple disks when RAID or dynamic volumes are employed. Drive letters can also be assigned to network attached volumes, but this is outside the scope of this article.

To manage disks and drives/volumes. there are two tools, shipped with all editions of Windows, diskpart (command line) and Disk Management Console (Gui). They are both equally capable. For the purposes of this article, we shall use the Disk Management Console.

To invoke, from the start menu select run, or in the "search programs and file" field, type diskmgmt.msc

The window is split into 2 parts, the upper concerns volumes and the lower disks.

To locate your missing device.
Scroll down the list of disks in the lower pane. Usually, the disk size is a good way to identify your missing disk.
Once you have located it, check that
1) It is Online. It may be Offline for various reasons such as a fault or a signature clash.

2) Does it have a partition table? If not, it will be labelled "Not initialised". To create a partition table, right click on the left column, and select initialise disk.


3) Does it contain any partitions? If not, the disk view will show the whole space as unallocated. You can create one by right clicking on the disk view and selecting "New Simple Volume".


4) Do the partitions contain valid filesystems. If not, they will be marked RAW. To resolve, right click and chose format.

5) Do the partitions have assigned drive letters? If not, they still wont be visible in windows explorer. To resolve, right click and Select "Change Drive Letter and paths". Once you have assigned a drive letter, it will become visible in windows explorer.
Note: There are one (or 2 in the case of EFI booting systems) small partitions (~100MB) on a windows 7 and later system disk. Do not assign drive letter to these partitions.



You will now be able to see this volume in windows explorer as drive G:


v5: Macrium Reflect Minimum System Requirements

$
0
0
In order to run Macrium Reflect, you must have a system that has the following minimum system requirements:
  • At least 512MB RAM
  • Windows XP Service Pack 2 or Windows Server 2003 Service Pack 2 or newer
  • A keyboard and mouse
If you wish to use the rescue media, you will need either a DVD writeable drive or USB pen drive.

Understanding Disk IDs

$
0
0
To enable an operating system to uniquely identify disks, a signature is generated as part of the initialisation process. In the case of an MBR partitioned disk, this is a 4 byte value, typically presented as an 8 character hex string. This is extended to a 16 byte value for gpt disks, presented as a GUID.

You can see the disk signature by opening a command window, and typing
diskpart
followed by
list disk
sel disk <n>
replacing <n> with the number of the disk you wish to query and then type
detail disk
MBR disk example
DISKPART> detail disk...Disk ID: 4936F9A1...
GPT disk example
DISKPART> detail disk...Disk ID: {C0F4976C-CFA6-45C1-BBCE-3B40016336E5}
...

MBR partitioned disks

For MBR partitioned disks, the disk signature is relevant for (Vista and later) booting and also to ensure drive letters assignments persist between reboots. As it is used to uniquely identify disks, Windows will not allow multiple disks with the same disk signature to be online at the same time. If you attempt to bring a second disk online, windows will re-calculate the disk signature on the second disk. This will potentially make it not bootable and also change any drive assignments.

For these reasons, as part of a clone or restore process, Macrium Reflect will recalculate the signature according to the table below. If the signature is recalculated, the boot configuration data (BCD) store is located and updated and the drive mappings in HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\ are also updated if necessary.

GPT partitioned disks

Unlike MBR partitions, GPT partition entries have an associated uniqueid. This allows GPT partitions to be uniquely identified without thedisk signature making the disk signature redundant for the purposesdiscussed above. Therefore, Reflect never sets the disk signature to that of the source.

Summary

Operation
Target disk Signature
Any restore or clone to a GPT disk
Not changed, or if target not initialised a new one is generated.
All target partitions overwritten
From source disk
Source disk present after restore (e.g. in the case of a clone)
Regenerated
Some original target partitions remain after restore Not changed
Target partitioning scheme different from source (e.g. source MBR, target GPT) Not changed, or if target not initialised a new one is generated.
Target uninitialised, MBR source disk, target < 2TB From source disk/image

Backup aborted! - Write operation failed - Insufficient system resources ...

$
0
0


If your backups fail with the following message :
Backup aborted! - Write operation failed - Insufficient system resources exist to complete the requested service

then it may be caused by your windows configuration. If so, the following steps may fix your issue.

Click Start, click Run, type regedit in the Open box, and then click OK.

Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager\Memory Management

On the Edit menu, point to New, and then click DWORD Value.

Type PoolUsageMaximum as the entry name, and then press ENTER.

Right-click PoolUsageMaximum, and then click Modify.

Click Decimal.

In the Value data box, type 60, and then click OK.

Click Start, click Run, type regedit in the Open box, and then click OK

Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager\MemoryManagement

On the Edit menu, point to New, and then click DWORD Value.

Type PagedPoolSize as the entry name, and then press ENTER.

Right-click PagedPoolSize, and then click Modify.

Click Hexadecimal.

In the Value data box, type a value of FFFFFFFF, and then click OK."

Reboot

Changes to the windows PE rescue environment

$
0
0
The rescue environment is a critical feature of any system backup software, enabling recovery in the case of non-booting systems. The Macrium Reflect rescue environment is based on either Linux or Windows PE. This article discusses changes in the way that the Windows PE rescue environment is created. The Linux rescue CD is unchanged, being shipped pre-built as part of the installation.

Before November 2012, a pre built distribution of Windows PE configured to work as a Macrium rescue CD was included in the installer. For users who wanted more flexibility, an alternative method was made available. This uses the Microsoft WAIK distribution to build the environment on the users PC. The build process is entirely automated including a 1 time download from Microsoft.

For licences issued from November 2012, we are unable to offer the pre-built environment, due to a global change in licensing policy from Microsoft. We have developed the custom method, now renamed the auto-built environment to be as easy to configure as the old pre-built one. Building the PE environment on your pc allows us to automatically customise it and potentially add new features. The large, one time, download from Microsoft is mitigated by a much smaller installer and a more efficient update process.

Read more about rescue CD's here.

Creating a WinPE 4 rescue environment

$
0
0

Introduction

PE4 is included
is ba
sed on the windows 8 kernel. The current Macrium rescue environment is based on PE3.1 (win 7 kernel).


PE4's core advantages over PE3.1 are full support for windows 8 drivers and default support for more modern hardware such as usb3.We are in the process of updating our software to use PE4 when built on windows 8 systems.

This article is intended for people who need a PE4 rescue CD and don't wish to wait until we've released the automated PE4 build; such as people with usb3 based systems that don't ship with usb3 drivers.

PE4 is only available on windows 7 and 8 based systems.


Preparing a PE4 based rescue environment

1) Download and run the Windows ADK installer from here.
Then invoke from the command line. Note, this will invoke a 3GB download.

adksetup /features OptionId.WindowsPreinstallationEnvironment /q

2) Run the Rescue Media wizard, choosing Auto-build Windows PE. This may invoke another large download if you haven't previously from Microsoft, this time PE3.1. Advancing through the wizard, when you get to the "Prepare Windows PE Image" page, select the Custom base wim, and change the file path to
C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\adm64\en-us\winpe.wim
or for (32 bit systems)
C:\Program Files\Windows Kits\8.0\Assessment and Deployment Kit\x86\en-us\winpe.wim


3) Continue through the remainder of the wizard as normal.
Note, if offered the option, don't enable EFI booting.

How to exclude disks when Macrium Reflect starts up

$
0
0

This article explains the steps required to exclude disks when Macrium Reflect starts up.


When Macrium Reflect loads, the first task it performs is to analyze local file systems and disks to enable imaging and to display the local disks in the main application Window...


Reading all local disks may be time consuming and may also load unnecessary information, such as the disk information of your backup disk which will never be the source of an image process.

To exclude disk(s) at startup take the following steps:


1. Click 'Start'
(then click 'Run' in XP), type 'regedit.exe' and press enter:
2. In the registry editor window, navigate to 'HKEY_LOCAL_MACHINE' > 'SOFTWARE' > 'Macrium' > 'Reflect'. Then right click and select 'New' > 'Key'


3. Enter the name 'Disks' for the new key.


3. Right click on the new 'Disks' key and select 'New' > 'DWORD (32 bit) Value'.


4. Enter the number of the disk that you want to exclude. In the above example it is disk number '4' that's excluded. You can add multiple disks by adding additional values to the 'Disks' key.

Note: The disk number is the number that's displayed in the Windows Disk Management console. This is 1 less than the number that's shown in the Macrium Reflect main window. So, if you want to exclude disk number '1' that's shown in Reflect then enter '0' as the disk number in the registry.

The next time Macrium Reflect starts it will ignore the disks specified at startup.




How to remove a drive letter from the MS System Reserved partition

$
0
0
This article explains the steps required to remove a drive letter from the Microsoft System Reserved (MSR) partition.

The MSR partition is required to boot Windows 7 and later operating systems. Ordinarily, this partition does not have a drive letter assigned to it. If a drive letter is assigned then this can cause problems with Microsoft Volume Shadow copy Service (VSS).

If you receive the following error (or similar) when the MSR partition is included in a disk image then removing the drive letter association should resolve the issue:
Backup aborted! - Failed To Create Volume Snapshot Result Code: 0x8004231f


1. Start the Windows Disk Management console. Click 'Start', type 'diskmgmt.msc' (without quotes) and press ENTER.
2. In the Windows that opens, right click on the 'System Reserved' partition in the lower pane and select 'Change Drive Letter and Paths..'


3. In the dialog that opens, click the 'Remove' button.


4. Close the Disk Management Console and restart Macrium Reflect.

After removing the drive letter create a fresh image of your system including the MSR partition.

Search terms
VSS Error 0x8004231f
How do I change windows drive letters

When do I need to use the ADK and how do I enable it?

$
0
0
This article explains the role of the Microsoft Assessment and Deployment Kit (ADK) in creating rescue media, when you should use it and how you can enable it.

Applies to:

Macrium Reflect version 5.1 running on Windows 8, Windows Server 2012 or later.


About the ADK

What is the Microsoft ADK?

The Microsoft Assessment and Deployment Kit is part of the Microsoft System tools. It is designed to give system administrators the ability to deploy Windows on a large scale with a number of custom tools for preparing their systems. For example, it might be used by the IT department of a large company to roll out pre-configured Windows Installs.

You may already be familiar with the Windows Automated Installation Kit, or Windows AIK. This is the previous offering for Microsoft that fulfilled a similar role.

Why does Reflect use the ADK or AIK?

Both the ADK and AIK contain a component called the Windows Preinstallation Environment, or Windows PE. This is a version of Windows contained in a Windows Image, or WIM file, which is cut down from the full install of Windows but contains sufficient utilities for building recovery, install and system preparation environments.

Reflect uses the basic PE environmnent from the ADK/AIK as a base and customises this environment with the Reflect tools. This gives Reflect a rescue environment with access to a range of common hardware drivers as well as native support for Windows File Systems and Windows boot management utilities.

What is the difference between the ADK and AIK?

The ADK is a newer version of the kit designed for Windows 8. Each Windows PE version is based on a version of Windows. In the case of PE 4 (available in the ADK) the environment is based on Windows 8. In the case of PE 3, the environment is based on Windows 7. As such, PE4 supports a number of enhancements to the Windows boot environment which arrived in Windows 8.

When should I use the ADK or AIK?

If you have Windows 8, you should use the ADK if:

1. You only have Windows 8 drivers for your hardware. As PE3 is based on Windows 7, it requires Windows 7 compatible drivers. If you do not have access to these, but do have access to Windows 8, you can use the ADK and Reflect will copy your Windows 8 drivers from your system (or search for Windows 8 drivers as needed).

2. You require support for UEFI Secure Boot when using Fix Boot Options. Windows 8 is the first version of Windows to support Secure Boot and the relevant support utilities are needed by Reflect to correctly fix a system using UEFI Secure Boot.

You should use the AIK if you only have Windows 7 drivers for your hardware. As PE4 is based on Windows 8, it requires Windows 8 compatible drivers.

Can I use PE4 (ADK) to back up/recover a Windows 7 or earlier system?

Yes you can.

Can I remove the ADK after I have created rescue media?

Yes you can. To do this, open up Add/Remove Programs from the control panel. You can then select the entry Assessment and Deployment Kit and remove the kit from there.

Note: if you remove the kit, but need to rebuild your rescue media at a later stage you will need to re-install the kit which may involve a new download if you have deleted the installer.


Enabling the ADK

How you enable the ADK for your install of Reflect depends on your setup.

Prerequisites

You need to be running Macrium Reflect on either Windows 8, or Windows Server 2012, or a later Windows Operating System to use the ADK. If you are not running Windows 8 or Server 2012, you will have no issues running PE3 (the AIK).

If you have never created WAIK/WADK rescue media before

Reflect will default to the ADK.

If you have previously created rescue media, or wish to change the type of media you are creating

To change to the ADK, or switch your rescue media type:

1. In the main window of Reflect, click the rescue media wizard icon.

2. On the first page of the rescue media wizard, select the Windows PE option and then select the auto-built PE option.

3. In the drop-down, select the WAIK or WADK.

4. When you click next, the ADK will be automatically downloaded and installed for you.


Enabling the ADK (alternative method)

You can also change this setting through the Reflect defaults. To do this:

1. In the main window of Reflect, press theedit defaults toolbar option or choose Other Tasks then Edit Defaults from the menu.

2. In the Reflect Defaults screen, select the Advanced Tab.

3. In the options list on the left hand side of this dialog, select Rescue media.

4. You will then be presented with a choice of Windows Kit for Rescue Media which allows you to select the kit you wish to use.

5. Once you have selected a kit, press Ok to close the dialog.

6. The next time you start the Rescue Media Wizard your Auto-builtPE option will indicate the new kit type.


Running the ADK Setup

As with the WAIK, if you have not previously installed the WADK Reflect will download the ADK setup utility and run it for you. You will be presented with the following dialog:

We recommend leaving the default options selected. You then simply need to follow the wizard. On the features page, Reflect will select the minimal required features for you. You need to ensure Deployment Tools and Windows PE are selected for Reflect to function correctly, as shown in the screenshot below:

The WADK Setup wizard will then complete your installation and you can continue creating your rescue media.


How to remove a drive letter from the - MS System Reserved partition

$
0
0
This article explains the steps required to remove a drive letter from the Microsoft System Reserved (MSR) partition.

Note: You can also use the same steps to remove a drive letter association from any partition.

The MSR partition is required to boot Windows 7 and later operating systems. Ordinarily, this partition does not have a drive letter assigned to it. If a drive letter is assigned then this can cause problems with Microsoft Volume Shadow copy Service (VSS).

If you receive the following error (or similar) when the MSR partition is included in a disk image then removing the drive letter association should resolve the issue:
Backup aborted! - Failed To Create Volume Snapshot Result Code: 0x8004231f

1. Start the Windows Disk Management Console. Click 'Start', type 'diskmgmt.msc' (without quotes) and press ENTER.
2. In the Windows that opens, right click on the 'System Reserved' partition in the lower pane and select 'Change Drive Letter and Paths..'


3. In the dialog that opens, click the 'Remove' button.



4. Close the Disk Management Console and restart Macrium Reflect.
After removing the drive letter create a fresh image of your system including the MSR partition.

Search terms
VSS Error 0x8004231f
How do I change windows drive letters

Backup aborted! - None of the specified backup locations could be written to

$
0
0

Error

Backup aborted! - None of the specified backup locations could be written to


Description

This error occurs if it is not possible to write the image file to the destination location provided, or any of the alternative locations that may have been specified.

Possible causes

  • The destination directory no longer exists or was deleted.
  • The destination drive is no longer present or plugged in. This may be the case if the destination drive is an external USB drive.
  • If the destination drive is a USB drive it may have entered 'Sleep' mode and be unavailable.
  • If the destination is a network location, the network share may not be available or have been deleted or renamed.
  • If the backup is scheduled and the target is a network location, you may have to provide login credentials to access the network share. To resolve this issue, you need to add the Network login credentials in the Macrium Reflect defaults. Please see here for more information.
  • The NTFS file permissions of the destination directory may have changed.


Incremental or differential specified but no backup set to append to.

$
0
0

This article explains the situations when Reflect will create a full backup instead of an incremental or differential backup.

There are a number of cases when you have a backup task, either scheduled or manually triggered, that is configured to produce a differential or incremental backup as part of a backup set and Reflect instead reverts to a full backup. This article explains why this may occur.

If the full (or parent incremental) is inaccessible for any reason

Example: There are a number of scenarios in which this can occur. We shall take one example. Suppose you have two backup locations:

Primary location: \\myserver\backups\pc1\

Alternative location: d:\mydata\backups\pc1\

Suppose that you are taking incrementals at the primary location but at the time of backup the network location is not reachable. In this case, as requested, Reflect will use the alternative backup location. As it cannot read the backup set at the primary location it will then create a full backup at the alternative location.

Note: the online help for Macrium Reflect contains a section on alternative backup locations.

Reason: Reflect needs to be able to read the existing backup set to work out what has changed.


If the backup set being appended cannot be opened due to corruption.

Example: This issue is triggered when the source backup set is corrupted for some reason. As an example, suppose that you are backing up to an external USB 3 disk called G: and suppose that the existing backup set is created at G:\backups\pc1\. Now, suppose this backup set has somehow become corrupted. Reflect cannot recognise this as a valid backup file and so creates a new backup set.

Reason: If files are corrupted such that they are not recognisable as backup sets, it is likely their indexes (used for performing incremental or differentials) are unusable too.


If the full (or parent incremental) contains a non matching set of partitions compared with the requested incremental.

Example 1: Suppose your system contains drives C:, D: and E:. Initially, your backup definition contains C:,D:. You take a full followed by a series of differentials. You then edit the backup definition file to include E:. Reflect will then trigger a full backup.

Example 1: Suppose your system containsdrives C:, D: Initially, your backup definition contains C:,D:.You take a full followed by a series of differentials. You then resize D:. Reflect will then trigger a fullbackup.

Reason: Reflect considers that if a backup definition differs from what is contained in the backup set, then it is potentially an entirely different backup source. It would be difficult to reliably distinguish between the sensible examples given above and removing all of the source drives and using others. The resulting incremental would make little sense. The potential for an invalid backup set to be created is high, so Reflect prevents this.


If the disk ID is different to that in the full (or parent incremental).

Example:Suppose you have a backup set for a system on a network share. You then perform a clone of this system to a new disk, remove the old disk and boot the new system. You then ask Reflect to back up the system using the existing backup set. Reflect will create a full.

Reason: Macrium Reflect uses the Disk Identifier in MBR, or the Disk GUID on GPT systems, to uniquely identify the disk and verify that the backup set and backup source are of the same disk layout. These values remain stable so are a reliable identifier.


If the source folders, or filters, are changed in a File and Folder backup

Example: Suppose you are backing up *.doc in C:\ImportantData\. You then modify the backup definition to back up *.doc;*.xls in C:\ImportantData. Reflect will then create a new full backup.

Reason: Changing the directory or filter essentially changes the source definition. In many circumstances it would not make sense to take an incremental from this source, so Reflect defaults to a new full.


Search Terms
Why does Reflect create a Full backup when Incremental/Differential specified
Can't create a Differential/Incremental image


How to Restore an MBR image to UEFI/GPT

$
0
0

UEFI (the Unified Extensible Firmware Interface) is an interface between a computer's firmware and operating system. It is designed as a replacement for BIOS (Basic Input/Output System).

UEFI supports hard disks with either MBR (master boot record) or the newer GPT (GUID Partition Table) system. GPT is a newer standard, that supports disks larger than 2TiB and allows for more than four primary partitions per disk.

As UEFI and GPT become more widespread, older images of MBR disks will often need to be restored to replacement UEFI / GPT systems.

This article assumes that, apart from the type of disk, there are no other hardware differences between the system being imaged and the system being restored to. For dissimilar hardware, Redeploy may be needed.



To prepare a GPT disk to boot in UEFI

  1. Boot into Windows PE.
  2. Open a Windows command window, and run "diskpart".
  3. List the disks:
    list disk
  4. Select the disk number that you want to restore to. For example:
    select disk 0
  5. Clean the selected disk:
    clean
  6. By default, "clean" creates an empty MBR disk. Convert it to GPT:
    convert gpt
  7. Create the EFI partition:
    create partition efi size=200
  8. Format the EFI partition:
    format fs=fat32
  9. Create the MSR partition:
    create partition msr size=128
  10. Exit Diskpart:
    exit




To restore an image to the GPT disk, ready to boot in UEFI

  1. In Macrium Reflect, restore the imaged partitions into the free space. Do not copy over the old MSR partition.
  2. Open a windows command window.
  3. Use BCDBoot to create the boot environment files:
    bcdboot E:\windows
    where "E:\" is the letter of the restored Windows partition you wish to boot into.

You may have to edit the UEFI configuration to tell it to boot into the new GPT hard disk.




v5 - Preparing a USB pen drive for WinPE

$
0
0
This article outlines the steps needed to get a USB pen drive ready for create WinPE rescue media

Why do I need to prepare my USB pen drive for WinPE ?

Some USB pen drives are shipped without a master boot record (MBR) and with just a single partition.  In order for the USB pen drive to be used as a boot device, it will require an MBR.  Formatting the USB pen drive using the standard Windows format option will not prepare the disk correctly by creating a master boot record.  You will need to prepare the USB pen drive using other tools, e.g. Windows diskpart.


What steps do I need to perform to prepare the USB pen drive ?

There are many tools available that can perform this process but we will focus on the free Windows tool diskpart in this article.
    1. Run a command prompt session as an elevated user.  Do this by clicking Start > Run > type in cmd and then hold and press the following key combination left shift + left control + enter. 

    2. Type in diskpart and press enter. 

    3. Type in list disk and press enter.

    4. Identify the disk number of your USB pen drive. Caution should be taken with this step as incorrectly identifying a drive may attract unwanted consequences further in this solution.

    5. Type in select disk <n>, where <n> is the number of the disk previously identified as being the USB pen drive.  In the screenshot above, it can easily be seen that disk number 6 is the one we are after. Confirm that the current disk selection is correct by typing in detail disk, this will show information relating to the currently selected disk.

    Please be certain you have the disk selection correct before proceeding to the next step.

    6. Type in clean.  This will erase all data on the USB pen drive. 

    7. Type in create par primary.  This will create a primary partition on the USB pen drive using the maximum size available. 

    8. Type in active to make the primary partition active. 

    9. Type in format FS=ntfs LABEL="Macrium WinPE" QUICK.  This will format the newly created partition on the USB pen drive. 

    10. Type in exit once the format command has completed to exit diskpart. 

    11. Type in exit again to close the command prompt session.
    Viewing all 166 articles
    Browse latest View live