Thursday, 18 January 2018

Add Dr Web LiveCD ISO + persistence to E2B

Here is the .mnu file for Dr Web 900 LiveDisk ISO with persistence

A copy is available from the Alternate Downloads Area here.

# Make an ext3 file using RMPrepUSB in the root of the drive (i.e. File Name=drweb-rw  Volume Name=casper-rw)
# Place this .mnu file and the ISO in (_ISO\xxx\MNU), e.g. \_ISO\MainMenu\MNU or \_ISO\Linux\MNU
# This menu will work even on an NTFS USB boot drive
# IMPORTANT: you MUST run WinContig (\MAKE_THIS_DRIVE_CONTIGUOUS.cmd) before booting E2B.

iftitle [if exist $HOME$/drweb-livedisk-900-cd.iso] Dr Web 900 PERSISTENT\nBoot using .mnu file with persistence

set ISO=$HOME$/drweb-livedisk-900-cd.iso
set PF=/drweb-rw

if "%E2BDEV%"=="" set E2BDEV=hd0 && pause E2BDEV forced to hd0!
if exist CD echo WARNING: Cannot use partnew command! && pause && configfile (bd)/menu.lst
#enable parttype output
debug 1
# make empty table entry in 3rd position in ptn table
parttype (%E2BDEV%,2) | set check=
debug off
set check=%check:~-5,4%
if "%check%"=="0x00" partnew (%E2BDEV%,2) 0 0 0
if not "%check%"=="0x00" echo WARNING: PTN TABLE 3 IS ALREADY IN USE - PERSISTENCE MAY NOT WORK! && pause
debug 1
if not exist %PF% echo WARNING: %PF% persistence file not found! && pause
errorcheck off
if "%check%"=="0x00" partnew (%E2BDEV%,2) 0x0 %PF%
errorcheck on
#map ptn 4 to ISO
partnew (%E2BDEV%,3) 0x0 %ISO%
map %ISO% (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz boot=casper ignore-uuid persistent noeject noprompt quiet splash --
initrd /casper/initrd.lz

If you have E2B v1.98a or later, you can use the .isopersist file extension - then no .mnu file is required. For more details, see the E2B web page here.

P.S. Newer 2018 versions seems to need a union=aufs parameter in order to boot successfully.
kernel /casper/vmlinuz boot=casper union=aufs persistent ignore-uuid noeject noprompt quiet splash console=tty1 ---

DrWeb_Persistent.imgPTN23 file can be found here. It was made as follows:
1. Make a 800MB FAT32 partition on a USB drive
2. Download and run the DrWeb USB creator utility drweb-livedisk-900-usb.exe
3. Run it to extract the files to the USB drive
4. Boot the USB drive on a real system - this prepares it
5. Refresh the updates - reboot and check updates are persistent
6. Drag-and-drop the USB drive letter onto the MPI_FAT32 Desktop icon to make a .imgPTN23 file (syslinux 603, auto-convert). I modified the \syslinux\txt.cfg and the \boot\grub\grub.cfg files to add nomodeset vga=ask ignore_uuid. 

No comments:

Post a comment