Jump to content











Photo
- - - - -

Boot BitDefender Rescue ISO from USB mystery


  • Please log in to reply
91 replies to this topic

#1 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 03 April 2014 - 11:41 AM

BitDefender seems to have changed and is now Knoppix/Gentoo based (I think)

 

The following menu works but only if the drive is formatted as FAT32 (not NTFS)

title BitDefender Rescue CD (FAT32)\n Boot from BitDefender ISO
set /p ask=Do you want manually set the VGA Mode (Y/N) ?
if /i "%ask%"=="Y" set ask=vga=ask || set ask=
echo
partnew (hd0,3) 0x0 $HOME$/bitdefender-rescue-cd.isomap $HOME$/bitdefender-rescue-cd.iso (0xff)
map --hook
root (0xff)
set SQUASH=/rescue/livecd.squashfs
set common=root=/dev/ram0  real_root=/dev/loop0 loop=%SQUASH% cdroot_marker=%SQUASH% initrd udev cdroot scandelay=2
set silent=quiet splash
set silent=
set lang=en
debug on
errorcheck on
kernel /boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/initfs.i386-pc

Note that this destroys the 4th partition on your USB drive - so be careful if testing it!

 

The thing is, this menu does not work on an NTFS drive and I cannot understand why not!

Once the initrd is loaded, it should find the CDFS on partition 4 of the USB drive and load the squashfs - but it doesn't if the boot partition is NTFS.

 

I don't see what difference it makes if the partition 1 of the USB drive is FAT32 or NTFS ???

 

P.S. This ISO does not boot straight from Easy2Boot (i.e. using partnew to make a CDFS partition and then booting directly from the ISO - this works for most other ISOs, but not this one).

 

 

Anyone any ideas?

 

 

 

 

 

 



#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 03 April 2014 - 01:48 PM

sda4 is the 4th partition on my USB drive. It is mounted of the E2B drive is FAT32 but not if the drive is NTFS...

see here for screenshots.



#3 ilko

ilko

    Silver Member

  • Advanced user
  • 500 posts
  •  
    Bulgaria

Posted 03 April 2014 - 02:28 PM

It works fine here, on 2GB NTFS formatted drive using partnew and chainloader (0xff). Testing in VirtualBox.

 

If you need to pass extra parameters, you may try isoboot= kernel parameter. Haven't tried what syntax is expected.

 

Do you need to load it exactly the way you posted?



#4 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 03 April 2014 - 02:36 PM

Do you have the latest version?

http://download.bitd....com/rescue_cd/  bitdefender-rescue-cd.iso  

MD5  c5976ba316e763b0e57749886875632e  bitdefender-rescue-cd.iso



#5 ilko

ilko

    Silver Member

  • Advanced user
  • 500 posts
  •  
    Bulgaria

Posted 03 April 2014 - 02:38 PM

Yep, same file.



#6 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 03 April 2014 - 03:07 PM

Weird! I moved the ISO to an 8GB NTFS USB flash disk and that works using E2B ( just partnew + chainloader) no problem.

But the same thing on a 32GB NTFS USB drive fails (in both a VM and an Asus EeePC).

hmmm...



#7 ilko

ilko

    Silver Member

  • Advanced user
  • 500 posts
  •  
    Bulgaria

Posted 03 April 2014 - 03:15 PM

32 GB SanDisk Extreme works fine too here, in VirtualBox, NTFS.



#8 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 03 April 2014 - 03:20 PM

OK, found the problem. The version of grldr on the non-working was a very new March 2014 version (which otherwise seemed to work OK). When I updated it to an earlier one - it all works!

Must be a bug in that version. Sorry for the panic!

Thanks for the help.

Steve

 

P.S. I was trying to get persistence working which started the whole thing off on a wild goose chase!



#9 ilko

ilko

    Silver Member

  • Advanced user
  • 500 posts
  •  
    Bulgaria

Posted 03 April 2014 - 04:30 PM

Did you manage to get persistence working?

 

It seems to ignore the persistence partition, haven't tried on real hardware though.



#10 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 03 April 2014 - 05:43 PM

No. Can't seem to get it working. Not sure if it supports it now??



#11 lindylex

lindylex

    Newbie

  • Members
  • 24 posts
  •  
    United States

Posted 16 April 2014 - 06:48 AM

When I use this I receive the following error.

 

Error 1: Filename must be either an absolute pathname or blocklist

 

This is my Grub4Dos entry.

 

title BitDefender Rescue CD (FAT32)\n Boot from BitDefender ISO
set /p ask=Do you want manually set the VGA Mode (Y/N) ?
if /i "%ask%"=="Y" set ask=vga=ask || set ask=
echo
partnew (hd0,3) 0x0 $HOME$/boot/iso/bitdefender-rescue-cd.iso map $HOME$/boot/iso/bitdefender-rescue-cd.iso (0xff)
map --hook
root (0xff)
set SQUASH=/rescue/livecd.squashfs
set common=root=/dev/ram0  real_root=/dev/loop0 loop=%SQUASH% cdroot_marker=%SQUASH% initrd udev cdroot scandelay=2
set silent=quiet splash
set silent=
set lang=en
debug on
errorcheck on
kernel /boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/initfs.i386-pc

 

Thanks


Edited by lindylex, 16 April 2014 - 06:58 AM.


#12 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 16 April 2014 - 06:54 AM

Run WinContig on the files. e.g. RMPrepUSb + Ctrl+F2



#13 lindylex

lindylex

    Newbie

  • Members
  • 24 posts
  •  
    United States

Posted 16 April 2014 - 06:24 PM

I do not understand "WinContig is an easy-to-use stand-alone defragmentation tool that doesn't create any installation directories or Registry entries on your computer. " you want me to derangement the usb drive? 



#14 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 16 April 2014 - 06:27 PM

Yes, you need to make the bitdefender-rescue-cd.iso file contiguous, otherwise the partnew command will not work.

 

Also, that menu is for Easy2Boot - it won't work on an ordinary grub4dos USB drive. The $HOME$ is special - replace it with the full path of the ISO file.



#15 lindylex

lindylex

    Newbie

  • Members
  • 24 posts
  •  
    United States

Posted 18 April 2014 - 04:49 AM

steve6375, I just realize that rmprepusb.com is your site.  That is a lot of work and really good information.  Thanks for your time and effort.

I got the a 4 partion with Bitdefender on it and I ran WinContig on the usb stick. 

 

I tried to start it using this entry that failed.

 

title BitDefender Rescue III
root (hd0,3)
map --hook
root (0xff)
set SQUASH=/rescue/livecd.squashfs
set common=root=/dev/ram0  real_root=/dev/loop0 loop=%SQUASH% cdroot_marker=%SQUASH% initrd udev cdroot scandelay=2
set silent=quiet splash
set silent=
set lang=en
debug on
errorcheck on
kernel /boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/initfs.i386-pc



#16 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 18 April 2014 - 08:32 AM

This menu doesn't make sense!

Please describe your setup.

Have you extracted the files from an ISO (which one) onto the 4th partition already?

Or are you trying to run directly from an ISO file? If so where is the ISO file?

Are you using a USB drive or an internal hard disk? What is on each partition

Are you using a 2014 version of grub4dos 0.4.5c ?

etc.

What error message do you get exactly?



#17 lindylex

lindylex

    Newbie

  • Members
  • 24 posts
  •  
    United States

Posted 18 April 2014 - 01:48 PM

"Have you extracted the files from an ISO (which one) onto the 4th partition already?" your code extracted the files from Bitdefender iso and created a four partition labeling it "Bitdefender Rescue CD".

 

"Or are you trying to run directly from an ISO file? If so where is the ISO file?" I was an that failed. 

On the first partition of the usb stick is where the Bitdefender iso is located.

/boot/iso/bitdefender-rescue-cd.iso

 

"Are you using a USB drive or an internal hard disk? I am using a USB.  The structure looks like this.

 

(hd0,0)

autorun.inf 
changes.txt 
HBCDMenu.cmd
HBCD.txt 
liveusb
menu.lst

    Kaspersky Rescue Disk 10.0
    import_windows_aps
    HBCD
    boot
    mnt

 

 

(hd0,3)

 

    boot  
    EFI  
    rescue  
    syslinux

 

I am using this version:

grub4dos-0.4.6a-2014-01-17.7z 

Below give me the following error:  Error 22: no such partition

 

title BitDefender Rescue III
root (hd0,3)
map --hook
root (0xff)
set SQUASH=/rescue/livecd.squashfs
set common=root=/dev/ram0  real_root=/dev/loop0 loop=%SQUASH% cdroot_marker=%SQUASH% initrd udev cdroot scandelay=2
set silent=quiet splash
set silent=
set lang=en
debug on
errorcheck on
kernel /boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/initfs.i386-pc

 

Below gives me the following error:  Filesystem type is fat partiton type 0x0c

map --hook

 

Error 61: Refuse to hook int13 because of empty drive map table

 

title BitDefender Rescue III
root (hd0,0)
map --hook
root (0xff)
set SQUASH=/rescue/livecd.squashfs
set common=root=/dev/ram0  real_root=/dev/loop0 loop=%SQUASH% cdroot_marker=%SQUASH% initrd udev cdroot scandelay=2
set silent=quiet splash
set silent=
set lang=en
debug on
errorcheck on
kernel /boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/initfs.i386-pc


Edited by lindylex, 18 April 2014 - 02:05 PM.


#18 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 18 April 2014 - 01:49 PM

You need good new version.

I suggest you download RMPrepUSB and then select USB drive and click on 'Install grub4dos' - this will install recent version of grldr file.



#19 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 18 April 2014 - 02:21 PM

Also remove the root (0xff) and map --hook lines - this is for when you boot from an ISO file mapped as (0xff) device - you have extracted the files from the ISO already.

Try this...

title BitDefender Rescue IV
root (hd0,3)
ls /
if not exist /rescue/livecd.squashfs echo No squashfs on (hd0,3) && pause && boot
set SQUASH=/rescue/livecd.squashfs
set common=root=/dev/ram0  real_root=/dev/loop0 loop=%SQUASH% cdroot_marker=%SQUASH% initrd udev cdroot scandelay=2
set silent=quiet splash
set silent=
set lang=en
debug on
errorcheck on
kernel /boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/initfs.i386-pc


#20 lindylex

lindylex

    Newbie

  • Members
  • 24 posts
  •  
    United States

Posted 18 April 2014 - 03:55 PM

I modified the Grub4dos entry:

 

title BitDefender Rescue V
root (hd0,0)
ls /boot/bitdefender/
if not exist /rescue/livecd.squashfs echo No squashfs on (hd0,0) && pause && boot
set SQUASH=/boot/bitdefender/rescue/livecd.squashfs
set common=root=/dev/ram0  real_root=/dev/loop0 loop=%SQUASH% cdroot_marker=%SQUASH% initrd udev cdroot scandelay=2
set silent=quiet splash
set silent=
set lang=en
debug on
errorcheck on
kernel /boot/bitdefender/boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/bitdefender/boot/initfs.i386-pc

 

I received the following error.

 

Error 8: Kernel must be loaded before booting



#21 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 18 April 2014 - 03:58 PM

Is bitdefender is on hd0,3 or hd0,0 ???

are the files
/boot/bitdefender/boot/kernel.i386-pc
and
/boot/bitdefender/boot/initfs.i386-pc

present?

 

Was that the only error - did you upgrade to new grub4dos?



#22 lindylex

lindylex

    Newbie

  • Members
  • 24 posts
  •  
    United States

Posted 18 April 2014 - 06:33 PM

steve6375, sorry for the confusion.  I moved the contents of the bitdefender .iso to (hd0,0).  I am no longer refferencing (hd0,3)

That is the current location of the files. 

/boot/bitdefender/boot/kernel.i386-pc
and
/boot/bitdefender/boot/initfs.i386-pc

 

"Was that the only error" yes. 

 

"did you upgrade to new grub4dos?"  yes to grub4dos-0.4.6a-2014-01-17.7z.


Edited by lindylex, 18 April 2014 - 06:39 PM.


#23 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 18 April 2014 - 06:53 PM

Avoid 0.4.6a - it is Beta and has bugs. Use 0.4.5c as I suggested.

 

Try going into the grub4dos console and typing the commands in

e.g.

 

edit the command and put the word commandline just before the kernel line

 

run the menu entry and it will exit to the commandline, then type

kernel /boot/bitdefender/boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/bitdefender/boot/initfs.i386-pc

If you like, just try 

kernel /boot/bitdefender/boot/kernel.i386-pc

first of all  (use TAB key to complete the path to save typing) - is it accepted?

 

S



#24 steve6375

steve6375

    Platinum Member

  • Developer
  • 7027 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 18 April 2014 - 06:57 PM

PS menu paths look wrong try

 

title BitDefender Rescue V
root (hd0,0)
ls /boot/bitdefender/
if not exist /boot/bitdefender/rescue/livecd.squashfs echo No squashfs on (hd0,0) && pause && configfile /menu.lst
set SQUASH=/boot/bitdefender/rescue/livecd.squashfs
set common=root=/dev/ram0  real_root=/dev/loop0 loop=%SQUASH% cdroot_marker=%SQUASH% initrd udev cdroot scandelay=2
set silent=quiet splash
set silent=
set lang=en
debug on
errorcheck on
kernel /boot/bitdefender/boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/bitdefender/boot/initfs.i386-pc



#25 lindylex

lindylex

    Newbie

  • Members
  • 24 posts
  •  
    United States

Posted 20 April 2014 - 06:09 PM

steve6375, you are a god.  The Grub4dos menu list works.  I tried to port it to Grub2 unsuccessfully. 

 
title BitDefender Rescue
root (hd0,0)
ls /boot/bitdefender/
if not exist /boot/bitdefender/rescue/livecd.squashfs echo No squashfs on (hd0,0) && pause && configfile /menu.lst
set SQUASH=/boot/bitdefender/rescue/livecd.squashfs
set common=root=/dev/ram0  real_root=/dev/loop0 loop=%SQUASH% cdroot_marker=%SQUASH% initrd udev cdroot scandelay=2
set silent=quiet splash
set silent=
set lang=en
debug on
errorcheck on
kernel /boot/bitdefender/boot/kernel.i386-pc %common% %silent% lang=%lang%
initrd /boot/bitdefender/boot/initfs.i386-pc

 

Is it possible to get this to working using Grub2 like this?

 

menuentry "Bitdefender Rescue CD 2014-01-23" {
    set SQUASH="/boot/bitdefender/rescue/livecd.squashfs"
    set loop=$SQUASH
    set common=loop=$SQUASH cdroot_marker=$SQUASH initrd udev cdroot scandelay=2
    set silent=quiet splash
    set lang=en
    linux /boot/bitdefender/boot/kernel.i386-pc $common $silent lang=$lang
    initrd /boot/bitdefender/boot/initfs.i386-pc
}






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users