Restoring the Kerio Control Box NG series default configuration using a USB flash drive
Kerio Technologies provides a set of tools for solutions for situations in which it is not possible to connect to Kerio Control on a network and administer it through the Kerio Control Administration web interface.
These tools are designed to run from a USB flash drive.
You need a flash drive with the capacity of at least 1 GB to run the tools. For restoring the default configuration, 256 MB suffice.
We recommend to use this method to update Kerio Control Box and Kerio Control Software ApplianceA special operating system designed to run on a computer.. In this article, Kerio Control refers to Kerio Control Box or Kerio Control Software Appliance.
If you have any issues after using the tools, for example, if Kerio Control fails to work even after you perform a complete system recovery, please contact our technical support.
Restoring the default configuration
Recovering to factory settings includes removal of all configuration data including activation and the statistics database.
This USB tool is designed for a single use. An operation does not repeat if you restart with the flash drive still in the USB port. Once you perform the operation unplug the flash drive.
WARNING
There are two types of USB flash drives on the market. Kerio Control NG 500 requires a flash drive formatted with a master boot record (MBR). USB drives with floppy-type formatting cannot connect to Kerio Control NG 500, but can be reconfigured to work. See Formatting a USB flash drive with MBR.
- Insert the flash drive into a USB port on your computer (256 MB and more).
- Make sure that only one partition with the FAT16 or FAT32 (VFAT) file system is created on the flash drive. The USB disk must not be formatted by the NTFS, ext2, ext3, or ext4 file systems.
- Download and save the kerio-control-factory-reset file to the flash drive.
- Switch off Kerio Control.
- Plug the USB flash drive into a USB port of your Kerio Control box.
- Switch on the Kerio Control box for resetting the configuration.
- Reboot the Kerio Control box manually.
- For additional instructions, continue with the Installing Kerio Control article.
Running a complete system recovery
During the complete system recovery, all configuration data, including activation and the statistics database, is completely rewritten. This means that you must reactivate and reconfigure the device afterwards.
WARNING
Before doing a complete system recovery, restore the default configuration and then retest the connection to Kerio Control.
Preparing a flash drive for a complete system recovery
For a complete system recovery, you must save the installation disk image directly to the physical device.
Microsoft Windows
- Insert the flash drive into a USB port on your computer (1 GB and more).
NOTE
All data on the flash drive is completely overwritten.- Download and unpack Image Writer (it does not require installation).
- Download the kerio-control-rescue file.
- In Image Writer, find the file, select your flash drive and click Write.
- Eject the flash drive securely and remove it from your computer.
Linux
- Insert the flash drive into a USB port on your computer (1 GB and more).
NOTE
All data on the flash drive will be completely overwritten.
- Download the kerio-control-rescue file.
- Run the terminal (console) in the super-user mode (for example, using the
su
orsudo -s
command depending on your Linux distribution). - Use the command
fdisk -l
to detect the USB flash drive name (for example,/dev/sdx
). - Save the
kerio-control-rescue file
to the flash drive using the following command:
dd if=rescue.img of=/dev/sdx bs=1M
and replacerescue.img
with the real file name and/dev/sdx
with the actual device name. You must type the physical device (for example,/dev/sdx
), not a partition (for example,/dev/sdx1
). - Use the
sync
command to ensure all disk operations finish. - Eject the USB drive safely and remove it from the USB port.
Mac OS X
- Insert the flash drive into a USB port on your computer (1 GB and more).
NOTE
All data on the flash drive will be completely overwritten.
- Download the kerio-control-rescue file.
- Run the terminal: Applications > Utilities > Terminal.
- Use the
sudo diskutil list
command to detect the USB flash drive name (for example,/dev/diskX
).
NOTE
The drive name is case sensitive.
- Use the
sudo diskutil unmountDisk /dev/diskX
command to unmount the flash drive. - Save the
kerio-control-rescue file
to the USB flash drive using the following command:
sudo dd if=rescue.img of=/dev/disk1 bs=1m
and replacerescue.img
with the real file name and/dev/diskX
with the actual device name. - Eject the flash drive securely and remove it from your computer.
Kerio Control Box system recovery
- Switch off Kerio Control.
- Plug the USB flash drive into a USB port of your Kerio Control Box.
- Switch on Kerio Control. Wait for applying the kerio-control-rescue script.
- Kerio Control turns off after the recovery finishes.
- Switch on Kerio Control.
- For additional instructions, continue with the Installing Kerio Control article.
Recovering the USB flash drive for further use
The recovery file creates partitions on the USB flash drive. To reuse the USB drive for other purposes, you need to remove all disk partitions, create new partitions, and reformat the disk for your file system.
Microsoft Window
- Click Start and in the
Search field type
cmd.exe
to open the Command Prompt window. - In the command line, type
diskpart
. You may need to confirm that you have administration rights. - Type
list disk
to display the list of drives and look up the number of the physical USB drive. - Type
select disk X
(replaceX
with the number of the corresponding disk). - Type
clean
to remove all partitions. - Create a new disk partition by typing the following commands in the order listed:
create partition primary select partition 1 format fs=fat32 label="USB Flash" quick exit
Linux
Use the graphical tool GParted or the command
fdisk
.
Mac OS X
Use the system tool Disk Utility: Application > Utilities > Disk Utility.
Formatting a USB flash drive with MBR
- Click Start and in the
Search field type
cmd.exe
to open the Command Prompt window. - In the command line, type
diskpart
. You may need to confirm that you have administration rights. - Type
list disk
to display the list of drives and look up the number of the physical USB drive. - Type
select disk X
(replaceX
with the number of the corresponding disk). - Type
clean
to remove all partitions. - Create a new disk partition by typing the following commands in the order listed:
create partition primary select partition 1 format fs=fat32 label="USB Flash" quick exit
Related articles
Recovering your Kerio Control Box NG series password using a USB flash drive
Updating Kerio Control Box NG series using a USB flash drive