Creating a bootable drive containing the solution image
To create a bootable drive containing the solution image:
- Connect the drive from which you plan to run the solution image on target devices.
- Find the block device corresponding to the connected drive, for example, by using the following command:
fdisk -l
- If required, create a new drive partition on which the solution image will be deployed by using the
fdisk
tool, for example. - If there is no file system on the partition, create one by using the
mkfs
tool, for example.You can use any file system that is supported by the GRUB 2 bootloader.
- Mount the drive.
mkdir /mnt/kos_device && mount /dev/sdXY /mnt/kos_device
Here,
/mnt/kos_device
is the mount point,/dev/sdXY
is the block device name,X
is the letter corresponding to the connected drive, andY
is the partition number. - Install the GRUB 2 operating system bootloader on the drive.
To install GRUB 2, run the following command:
grub-install --force --removable \
--boot-directory=/mnt/kos_device/boot /dev/sdX
Here,
/mnt/kos_device
is the mount point,/dev/sdX
is the block device name, andX
is the letter corresponding to the connected drive. - Copy the solution image to the root directory of the mounted drive.
- In the
/mnt/kos_device/boot/grub/grub.cfg
file, add themenuentry
section that points to the solution image.menuentry "KasperskyOS" {
multiboot /my_kasperskyos.img
boot
}
- Unmount the drive.
umount /mnt/kos_device
Here,
/mnt/kos_device
is the mount point.
After performing these actions, you can start KasperskyOS from this drive.
Page top