Jump to content











Photo
- - - - -

Booting Kaspersky Boot Disk with GRUB2

grub2 grub kaspersky boot

  • Please log in to reply
6 replies to this topic

#1 csnate

csnate
  • Members
  • 2 posts
  •  
    United States

Posted 07 May 2012 - 02:45 AM

Hello everyone! I am working on my own USB stick with some basic tools that I like to have on hand. While I'm at it, I will post my grub.cfg just in case it would be helpful to someone.

So far I have the following tools working.

PartedMagic
Backtrack V5.0
Arch Linux Network Installer
Spinrite V6.0
Memtest86+ V4.20

The next tool I am placing onto the drive is the Kaspersky Boot Disk. I have extracted the contents of the ISO that I downloaded from Kaspersky Labs to a folder on the USB stick called kav. I am having an issue booting it.

I am using the following commands to attempt to boot from GRUB2.


linux /kav/boot/rescue subdir=/kav rootfstype=auto init=/init initrd=rescue.igz kav_lang=en udev liveimg

initrd /kav/boot/rescue.igz

boot


So far, I haven't had any luck as I keep getting a kernel panic.

Here is my attached grub.cfg if it is of help to anyone searching :)


## Nate's Boot Disk



## Parted Magic

menuentry "Parted Magic" {

	 echo "Starting Parted Magic..."

	 loopback loop /pmagic/pmagic_2012_3_24.iso

	 linux (loop)/pmagic/bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw loglevel=0 max_loop=256 noeject iso_location=/pmagic

	 initrd (loop)/pmagic/initrd.img

}



## Backtrack 5

menuentry "Backtrack 5" {

	 echo "Starting Backtrack..."

	 linux /bt5/casper/vmlinuz boot=casper live-media-path=/bt5/casper/ splash

	 initrd /bt5/casper/initrd.gz

}



## Backtrack 5 (i915 module)

menuentry "Backtrack 5 (i915 module)" {

	 echo "Starting Backtrack..."

	 linux /bt5/casper/vmlinuz boot=casper live-media-path=/bt5/casper/ splash video=i915:modeset=1

	 initrd /bt5/casper/initrd.gz

}



## Arch Linux Network Install

menuentry "Arch Linux Network Install (64-bit)" {

	 echo "Starting Arch Linux..."

	 linux /arch/boot/x86_64/vmlinuz archisodevice=/dev/disk/by-uuid/235e502b-3607-48c0-9076-17c7aabc1758

	 initrd /arch/boot/x86_64/archiso.img

}



## KAV

menuentry "Kaspersky Rescue (Graphical)" {

	 echo "Loading Kaspersky Rescue CD..."

}



menuentry "Kaspersky Rescue (Text)" {

	 echo "Loading Kaspersky Rescue CD..."

}



## Spinrite V6.0

menuentry "Spinrite V6.0" {

	 echo "Loading Spinrite V6.0..."

	 linux16 /boot/memdisk

	 initrd16 /spinrite/spinrite.img

}



## Memtest86

menuentry "Memtest86+ V4.20" {

	 echo "Loading Memtest86+ V4.20..."

	 linux16 /memtest86/memtest.bin

}



#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14177 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 07 May 2012 - 07:15 AM

Kaspersky is "tricky", but you should be able to adapt the isolinux/grub4dos instructions here to grub2 syntax:
http://www.911cd.net...showtopic=24818

Or you could chainload grub.exe from grub2, see post #133:
http://reboot.pro/5041/page__st__125

:cheers:
Wonko

#3 csnate

csnate
  • Members
  • 2 posts
  •  
    United States

Posted 28 June 2012 - 04:30 PM

Good news. I know I posted this awhile back but I finally got Kaspersky to work!

Anyways, here is the GRUB2 entry. You must give the partition where Kaspersky resides a disk label. I named mine 'multiboot'.


## KAV

menuentry "Kaspersky Rescue Disk 10" {

	 echo "Starting Kaspersky Rescue Disk 10..."

	 linux /boot/rescue root=live:CDLABEL=multiboot rootfstype=auto vga=791 init=/init initrd=rescue.igz kav_lang=en udev liveimg splash quiet doscsi nomodeset

	 initrd /boot/rescue.igz

}


Let me know if I can be of help :good:

#4 travus

travus
  • Members
  • 1 posts
  •  
    United States

Posted 05 October 2012 - 03:08 AM

looking on how to make this work with a pxe boot.
any one ?

#5 gnikolic

gnikolic

    Frequent Member

  • Advanced user
  • 112 posts
  • Location:Serbia
  •  
    Serbia

Posted 11 March 2013 - 02:24 PM

No working ... yet...



#6 lindylex

lindylex

    Newbie

  • Members
  • 24 posts
  •  
    United States

Posted 14 April 2014 - 02:12 PM

csnate: I used your suggested menuentry for grub2 to start "Kaspersky Rescue Disk 10" but it thrown the following error.

 

mount: special device /dev/mapper/live-rw does not exist

mount: special device /dev/mapper/live-rw does not exist

mount: special device /dev/mapper/live-rw does not exist

mount: special device /dev/mapper/live-rw does not exist

mount: special device /dev/mapper/live-rw does not exist

 

dracut Warnight can't mount root filesystem

Kernel Panic

 

My USB stick label is "TRK_3-4".

I removed the "vga=791" parameter you mentioned because grub2 does not support it and I replaced it with "gfxpayload=800x600"

 

menuentry "Kaspersky Rescue Disk 10" {
    gfxpayload=800x600
     linux /boot/kaspersky/boot/rescue root=live:CDLABEL=TRK_3-4 rootfstype=auto init=/init initrd=rescue.igz kav_lang=en udev liveimg splash quiet doscsi nomodeset
     initrd /boot/kaspersky/boot/rescue.igz
}



#7 nguyentu

nguyentu

    Frequent Member

  • Advanced user
  • 102 posts
  •  
    Vietnam

Posted 08 April 2018 - 12:40 PM

Original article:

Boot Kaspersky Rescue Disk 2018 ISO from Grub2 and Grub4dos

 

Download

 

Boot directly from ISO file

  1. Copy the ISO file of Kaspersky Rescue Disk 2018 (krd.iso) to /data/krd.iso. You can put this data directory on any drive.
  2. Open the configuration file and add the following code:
    • Grub2:
      menuentry "Kaspersky Rescue Disk 2018" {
          set iso_path="/data/krd.iso"
          set lang="en"
          # en=English; ru=Russian
          # if [ x$lang != xru ]; then set lang=en; fi
          booting ${iso_path}
          search -s root -f ${iso_path}
          loopback loop ${iso_path}
          if cpuid -l; then set _kernel="k-x86_64"; else set _kernel_="k-x86"; fi
          linux    (loop)/boot/grub/${_kernel} net.ifnames=0 lang=${lang} dostartx trace isoloop=krd.iso
          initrd    (loop)/boot/grub/initrd.xz
      }
    • Grub4dos:
      title Kaspersky Rescue Disk 2018
      set iso_path=/data/krd.iso
      set lang=en
      # en=English; ru=Russian
      find --set-root %iso_path%
      map %iso_path% (0xff) || map --mem %iso_path% (0xff)
      map --hook
      set _kernel=k-x86_64
      checkrange 0,1 is64bit && set _kernel=k-x86
      kernel    (0xff)/boot/grub/%_kernel% net.ifnames=0 lang=%lang% dostartx trace isoloop=krd.iso
      initrd    (0xff)/boot/grub/initrd.xz

Extract ISO

 

You can also extract the ISO file to whatever path you want. Here I will extract the KasperskyRescueDisk2018 folder on the root of the drive. Then add the menu.

  • Grub2:
    menuentry "Kaspersky Rescue Disk 2018" {
        set extract_path="/KasperskyRescueDisk2018"
        set lang="en"
        # en=English; ru=Russian
        # if [ x$lang != xru ]; then set lang=en; fi
        if cpuid -l; then set _kernel="k-x86_64"; else set _kernel="k-x86"; fi
        search -s root -f ${extract_path}/boot/grub/${_kernel}
        linux    ${extract_path}/boot/grub/${_kernel} net.ifnames=0 lang=${lang} dostartx trace subdir=${extract_path}/data
        initrd    ${extract_path}/boot/grub/initrd.xz
    }
  • Grub4dos:
    title Kaspersky Rescue Disk 2018
    set _path=/KasperskyRescueDisk2018
    set lang=en
    # en=English; ru=Russian
    set _kernel=k-x86_64
    checkrange 0,1 is64bit && set _kernel=k-x86
    find --set-root %_path%/boot/grub/%_kernel%
    kernel    %_path%/boot/grub/%_kernel% net.ifnames=0 lang=%lang% dostartx trace subdir=%_path%/data
    initrd    %_path%/boot/grub/initrd.xz

Edited by nguyentu, 08 April 2018 - 12:41 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users