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
fdisktool, for example. - If there is no file system on the partition, create one by using the
mkfstool, 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_deviceHere,
/mnt/kos_deviceis the mount point,/dev/sdXYis the block device name,Xis the letter corresponding to the connected drive, andYis 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/sdXHere,
/mnt/kos_deviceis the mount point,/dev/sdXis the block device name, andXis 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.cfgfile, add themenuentrysection that points to the solution image.menuentry "KasperskyOS" {multiboot /my_kasperskyos.imgboot} - Unmount the drive.
umount /mnt/kos_deviceHere,
/mnt/kos_deviceis the mount point.
After performing these actions, you can start KasperskyOS from this drive.