Jump to content











Photo
* * * * * 2 votes

post here anything that crosses your mind about grub4dos


  • Please log in to reply
250 replies to this topic

#126 steve6375

steve6375

    Platinum Member

  • Developer
  • 6629 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 19 January 2012 - 05:26 PM

This is odd, it is now working again! I can't figure out why! Here is my exact working menu:







title Parted Magic 2011_12_30

find --set-root /ISO/APP/pmagic_2011_12_30.iso

map /ISO/APP/pmagic_2011_12_30.iso (hd32) || map --mem  /ISO/APP/pmagic_2011_12_30.iso (hd32)

map --hook

root (hd32)

kernel /pmagic/bzImage  iso_filename=/ISO/APP/pmagic_2011_12_30.iso  noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=normal loglevel=9 max_loop=256 vmalloc=256MiB

initrd /pmagic/initrd.img




  • Toan293 likes this

#127 aBs0lut3z33r0

aBs0lut3z33r0
  • Members
  • 9 posts
  •  
    United States

Posted 19 January 2012 - 09:26 PM

title Parted Magic 2011_12_30 n ISO-181MB-Dec 30,2011 . n Packages : PC CMOS Cleaner 2,PC Disk Eraser 5,PC LoginNow 2,PC Regedit 2.0 n
n Clonezilla
#updated programs: firefox-9.0.1, gparted-0.11.0, linux-3.1.6, nilfs-utils-2.0.21, super_grub2_1.99b1, and syslinux-4.05.
#added progeams: cifs-utils-5.2 and keyutils_1.5.2.
#1.Create a /pmagic/modules folder on the USB pen 2.Copy the pccmoscleaner.txz file to /pmagic/pmodules
#For the below menu to work, the iso file MUST not be renamed. Furthermore, the iso file MUST be located at either the root (/), /pmagic or /images folder.
find --set-root /pmagic/pmagic_2011_12_30.iso
map /pmagic/pmagic_2011_12_30.iso (0xff) || map --mem /pmagic/pmagic_2011_12_30.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)


check rmprep tutorial as well
  • Toan293 likes this

#128 Anakunda

Anakunda

    Member

  • Members
  • 43 posts
  • Location:Czech Republic
  •  
    Czech_ Republic

Posted 04 February 2012 - 05:01 PM

HI I need some help how to write entry for CentOS Linux

I wrote this generic entry which doesnot boot

title CentOS amd64 LiveCD ISO

map /CentOS-6.2-x86_64-LiveCD.iso (0xff)

map --hook

root (0xff)

kernel /isolinux/vmlinuz0 iso-scan/filename=/CentOS-6.2-x86_64-LiveCD.iso quiet splash

ls /isolinux/initrd0.img && initrd /isolinux/initrd0.img

ls /isolinux/initrd0.img || initrd /isolinux/initrd0.img

The ISO structure contains these files:

/EFI/boot/bootx64.conf
/EFI/boot/bootx64.efi
/EFI/boot/grub.conf
/EFI/boot/initrd0.img
/EFI/boot/isolinux.bin
/EFI/boot/isolinux.cfg
/EFI/boot/memtest
/EFI/boot/splash.jpg
/EFI/boot/splash.xpm.gz
/EFI/boot/vesamenu.c32
/EFI/boot/vmlinuz0

/isolinux/boot.cat
/isolinux/initrd0.img
/isolinux/isolinux.bin
/isolinux/isolinux.cfg
/isolinux/memtest
/isolinux/splash.jpg
/isolinux/vesamenu.c32
/isolinux/vmlinuz0

/LiveOS/livecd-iso-to-disk
/LiveOS/osmin.img
/LiveOS/squashfs.img

Thanks in adv.

#129 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 04 February 2012 - 05:20 PM

HI I need some help how to write entry for CentOS Linux

For NO apparent reason :frusty:

This thread is reserved for people reporting their success using newish releases of grub4dos that allow for direct booting to a .iso imaging through mappig the ISO image to (hd32).

Ideally, any user who had some success with this way of booting can post here reporting what he succeeded with and how he did it, links to other boards, tutorials guides related to the matter are also welcome.

PLEASE NO request for help here, post them in the grub4dos forum.

PLEASE NO "Nice, thank you!" kind of posts.

PLEASE NO "Ha, this is not useful!" type of comments.

This thread should become simply a list of working setups, no more, no less. :)

Thanks for cooperation.

jaclaz


:cheers:
Wonko

#130 entropyS

entropyS
  • Validating
  • 3 posts
  •  
    Spain

Posted 05 February 2012 - 11:24 AM

Redo Backup & Recovery 1.0.2 - LIVE (based in Ubuntu Maverick)

For GRUB4DOS:

title Redo Backup & Recovery 1.0.2 - LIVE

find --set-root --ignore-floppies /boot/iso/redobackup-livecd-1.0.2.iso

map /boot/iso/redobackup-livecd-1.0.2.iso (0xff) || map --mem /boot/iso/redobackup-livecd-1.0.2.iso (0xff)

map --hook

root (0xff)

kernel /casper/vmlinuz cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper iso-scan/filename=/boot/iso/redobackup-livecd-1.0.2.iso vga=791 locale=es_ES bootkbd=es console-setup/layoutcode=es quiet splash

initrd /casper/initrd.gz



For GRUB2 (Linux):


#-----------------------------------------------------------------
menuentry "Redo Backup & Recovery 1.0.2 - LIVE" {
#--------------------------------------------------------------------------

set isofile="/boot/iso/redobackup-livecd-1.0.2.iso"

loopback loop $isofile

linux (loop)/casper/vmlinuz cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper iso-scan/filename=$isofile vga=791 locale=es_ES bootkbd=es console-setup/layoutcode=es quiet splash --

initrd (loop)/casper/initrd.gz
}


Salu2.

Edited by entropyS, 05 February 2012 - 11:24 AM.


#131 sebus

sebus

    Frequent Member

  • Advanced user
  • 305 posts

Posted 07 February 2012 - 02:10 PM

Sadly the forum does not allow deletion of a message.

 

Wonko, honestly try to go out more, maybe it will take away some bitterness that you have in yourself!

sebus



#132 Toan293

Toan293

    Newbie

  • Members
  • 15 posts
  •  
    Vietnam

Posted 11 February 2012 - 08:08 AM

I have no iso file 10/Disk Director of Acronis True Image 10 you can download yourself please link to it?




how to boot from the win xp files so you
Thank you very much!

#133 cdob

cdob

    Gold Member

  • Expert
  • 1344 posts

Posted 18 March 2012 - 10:53 PM

Kaspersky Rescue Disk 10
Based on kDn: Post #53 http://reboot.pro/50...dpost__p__97266

New: at fragmented ISO file: basically RAM load kernel and initrd only.

1. Create empty file liveusb in root USB drive
2. Download kav_rescue_10.iso and rename to rescue.iso http://support.kaspe...cuedisk?level=2
3. Create folder "rescue" and copy "rescue.iso" into it.

Help files and EULA are available at <CD>rescuehelp

 
title Kaspersky Rescue Disk 10 \ndd on fragemted file
#http://support.kaspersky.com/viruses/rescuedisk?level=2
#tag file /liveusb required
set KRD10ISO=/rescue/rescue.iso
set kernel=(222)/boot/rescue root=live:CDLABEL=KRD10 rootfstype=auto vga=791 init=/init kav_lang=en udev liveimg splash quiet doscsi nomodeset
set initrd=(222)/boot/rescue.igz
cat --length=0 %KRD10ISO% > nul || find --set-root --devices=hf %KRD10ISO%
#continuous ISO file
map %KRD10ISO% (222) && map --hook > nul && kernel %kernel% && initrd %initrd% && boot
#fragmented ISO file
#RAM load CD including kernel and initrd - simplified LBA /rescue/LiveOS/squashfs.img
set CDsec=12000
set /a HDsec=4 * %CDsec% > nul
echo CD sectors %CDsec% HD sectors %HDsec%
map --mem (md)0x6400+%HDsec% (222)
map --hook > nul
dd if=()%KRD10ISO% of=(222) bs=2048 count=%CDsec%
kernel %kernel%
initrd %initrd%
boot
Adjust CDsec at new Rescue Disk versions.

Edited: CDsec=7000
Edited2: CDsec=12000, 2013/12

Edited by cdob, 04 December 2013 - 06:29 PM.

  • Motasem likes this

#134 entropyS

entropyS
  • Validating
  • 3 posts
  •  
    Spain

Posted 28 April 2012 - 09:49 AM

Hi:

How Do You Calculate CDsec=5887?

Salu2.

#135 cdob

cdob

    Gold Member

  • Expert
  • 1344 posts

Posted 29 April 2012 - 09:10 AM

How Do You Calculate CDsec=5887?

LBA from CD start including kernel and initrd.

Unfortunately Kaspersky updates ISO images (rescuebasesdatawindowsunlocker from april 2012), but keep web version number 10.0.31.4.
The version number relates to kernel, not to ISO image,

A simplified approach: RAM load some more sectors: CDsec=7000
Approach should work in future, as long Kaspersky use a similar layout.

#136 ccl

ccl

    Member

  • Members
  • 47 posts
  •  
    Malaysia

Posted 29 May 2012 - 02:48 PM

Cbod, Nice work. working perfectly. Can it auto load into graphic mode? it seem letting us choose.....

#137 cdob

cdob

    Gold Member

  • Expert
  • 1344 posts

Posted 29 May 2012 - 09:55 PM

Cbod, Nice work. working perfectly. Can it auto load into graphic mode? it seem letting us choose.....


It's graphic mode by default already:
vga=791 is kapersky setting from default \boot\grub\cfg\kav_menu.cfg

No idea, if this fails at specific hardware.

#138 surviver

surviver

    Member

  • Members
  • 33 posts

Posted 29 May 2012 - 10:13 PM

Same errors like simply kernel/chainload it here. ( no medium on /dev/sdr0 -> Can't mount rootFS)
Any ideas why?

Note: 3 different physicals an VMware

Hmm... no problems on my own computer.
Seems like I have to look how this proves on workdays...

Edited by surviver, 29 May 2012 - 10:57 PM.


#139 surviver

surviver

    Member

  • Members
  • 33 posts

Posted 30 May 2012 - 10:44 AM

Ok, I tried kav_rescue on a bunch of systems now.
To bad but... it's practically not usable. On nearly every system I've tried I get the above described error.
And on those it works, simply map'n kernel/chainload it works as well or even better, because theres no cat error on shutdown.
But.. on this machines the scan process crashes after some percent. (Even if I use it burned on a CD)

Anyways I would like to know what exactly is doing the trick, on that ones kav_rescue is booting proper.
It seems like something BIOS related, because systems with same config and other mobo work neither.
To strange... :dubbio:

#140 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 30 May 2012 - 11:14 AM

I would like to heartily thank (in order of appearance):
  • sebus
  • toan293
  • entropyS
  • cdob :w00t: :(
  • ccl
  • surviver (twice consecutively)
for having contributed to hijack the present thread from it's intended scope:

This thread is reserved for people reporting their success using newish releases of grub4dos that allow for direct booting to a .iso imaging through mappig the ISO image to (hd32).

Ideally, any user who had some success with this way of booting can post here reporting what he succeeded with and how he did it, links to other boards, tutorials guides related to the matter are also welcome.

PLEASE NO request for help here, post them in the grub4dos forum.

PLEASE NO "Nice, thank you!" kind of posts.

PLEASE NO "Ha, this is not useful!" type of comments.

This thread should become simply a list of working setups, no more, no less. :)

Thanks for cooperation.

jaclaz


:cheers:
Wonko

#141 Karmik

Karmik
  • Members
  • 2 posts
  •  
    Italy

Posted 18 June 2012 - 03:07 PM

Hi there. First time poster (with a success story). I want to clarify that the content installed with this method is regularly licensed to a Microsoft Partner company (for which i work and develop these kind of system integration processes).

I was tasked to create a completely automated Windows 7 Deployment system. Everything went well until i tried to boot the WinPE ramdisk directly through PXE. It wouldn't work and i would get the infamous "BootBCD 0xc00000f"

I then stumbled upon Grub4dos and bam, In 2 hours i had a working setup (and it took that long just to figure out some missing bits in the guide i read).
I used Grub4dos-0.4.5b

Without further ado, this is my setup.


TFTP Root with:


TFTPRootbadgrub.exe

TFTPRootbootlace.com

TFTPRootconfig.sys

TFTPRootdefault

TFTPRootgrldr

TFTPRootgrldr.mbr

TFTPRootgrub.exe

TFTPRoothmload.com

TFTPRootmenu.lst

TFTPRootBoot

TFTPRootBootdebian.iso

TFTPRootBootmemtest.iso

TFTPRootBootwinpe32.iso

TFTPRootBootwinpe64.iso


Point the dhcp server to grldr and that's it.

Menu.lst:


color blue/green yellow/red white/magenta white/magenta

timeout 30

default /default

title Windows7_amd64_Install

map --mem (pd)/Boot/winpe64.iso (0xFF)

map --hook

root (0xFF)

chainloader (0xff)

boot

title Windows7_x86_Install

map --mem (pd)/Boot/winpe32.iso (0xFF)

map --hook

root (0xFF)

chainloader (0xff)

boot

title Debian_Squeeze_Install

map --mem (pd)/Boot/debian.iso (0xFF)

map --hook

root (0xFF)

chainloader (0xFF)

boot

title Memtest86

map --mem (pd)/Boot/memtest.iso (0xFF)

map --hook

root (0xFF)

chainloader (0xFF)

boot


Memtest86 and Debian_Squeeze are standard isos taken directly from the original homepage.
The two WinPE images were prepared with Windows AIK, with several additional drivers and a few scripts to initialize Windows 7 deployment as soon as the network share with the install files is mounted (WinPE here acts only as a wrapper to actually launch a remote setup.exe that handles the gruntwork).

I'd like to point out that some guides out there suggest fd0 and hd32. Those didn't work for me and only 0xFF did the trick.

Thanks for the software!

Edited by Karmik, 18 June 2012 - 03:10 PM.


#142 steve6375

steve6375

    Platinum Member

  • Developer
  • 6629 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 18 June 2012 - 03:11 PM

Which guide did you read and what were the missing bits?
Did you see this one?

#143 Karmik

Karmik
  • Members
  • 2 posts
  •  
    Italy

Posted 18 June 2012 - 03:26 PM

Which guide did you read and what were the missing bits?
Did you see this one?


Sorry i was a bit too hasty, i forgot to link the guides :D I'm still a bit busy testing this infrastructure, anyways

No, i saw this one:


Hello All

I origenaly posted this in reboot.pro→ Groups→ Project forge→ Tftpd32 but was advised to move it.

I was PMed by one of reboot.pro members asking me how to setup a PXE boot server. I did compose a responses to that member then I was done I decided it was a good idea to start a new thread for this. This is not exactly the same I have made some changes.

9. Now we are going to setup 2 boot entrees as examples one for a floppy disk image and one for ISO

9a. First an ISO this one is for booting PE. Copy paste the could in to the menu file


title TEST PE
map --mem /boot/testpe.iso (0xff)
map --hook
chainloader (0xff)
boot



This one in particular led me astray. It's been a couple years since i had to actually hack around menu.lst so for like 30 minutes or so i kept wondering what was wrong with it. It's missing the device indicator. Which is (pd) in the case of PXE.

I don't know if it's due to the age (it's from Last November) but as of grub4dos 0.4.5b that menu.lst entry is wrong.

http://diddy.boot-la...s/files/pxe.htm - This one *does* mention the correct configuration but it never explicitly points out that the main configuration (the one for floppy disk images) doesn't work with iso files.

No harsh feelings tho, this content is great and i managed to get it working in a glimpse.

Cheers

#144 bee4u

bee4u

    Frequent Member

  • Advanced user
  • 172 posts
  •  
    United Kingdom

Posted 27 July 2012 - 03:17 AM

what is meant by this :&#40;hd32&#41; i mean &#40; #41;....?

#145 steve6375

steve6375

    Platinum Member

  • Developer
  • 6629 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 27 July 2012 - 09:12 AM

The server forum s/w mangles some characters. It is the ASCII code for ( and ), so it should should display as (hd32).

#146 bee4u

bee4u

    Frequent Member

  • Advanced user
  • 172 posts
  •  
    United Kingdom

Posted 27 July 2012 - 02:10 PM

THX 4 the clearification ...:)

#147 Feeliks83

Feeliks83

    Newbie

  • Members
  • 11 posts
  •  
    Germany

Posted 05 August 2012 - 10:59 PM

title Boot Back Box 2.0.5 (Penetration Testing)
find --set-root /multiboot/ISOS/bb2.05.iso
map /multiboot/ISOS/bb2.05.iso (hd32)
map --hook
chainloader (hd32)
kernel /multiboot/Backbox205/casper/vmlinuz file=/multiboot/Backbox205/preseed/backbox.seed boot=casper iso-scan/filename=/multiboot/ISOS/bb2.05.iso quiet splash --
initrd /multiboot/Backbox205/casper/initrd.gz

#148 steve6375

steve6375

    Platinum Member

  • Developer
  • 6629 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 26 August 2012 - 11:04 PM

StartOS (was Ylmf) http://www.startos.org/ - cheat codes for locale don't seem quite right as get US settings instead of UK???

title Boot StartOS(Windows Like OS) Non-Persistent

	find --set-root /startos-5.0-20120808.iso

	map /startos-5.0-20120808.iso (0xff)

	map --hook

	root (0xff)

	kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper	locale=en_GB.UTF-8 keyb=uk	 iso-scan/filename=/startos-5.0-20120808.iso splash

	initrd /casper/initrd.img

	

	# for USA use locale=en_US.UTF-8 keyb=us

	

	title Boot StartOS (Windows Like OS) Persistent

	find --set-root /startos-5.0-20120808.iso

	map /startos-5.0-20120808.iso (0xff)

	map --hook

	root (0xff)

	kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper locale=en_GB.UTF-8 keyb=uk persistent iso-scan/filename=/startos-5.0-20120808.iso splash

	initrd /casper/initrd.img


#149 Feeliks83

Feeliks83

    Newbie

  • Members
  • 11 posts
  •  
    Germany

Posted 29 August 2012 - 06:33 PM

Windows 7 Entry Created with WinSetupFromUSB 1.0 (Beta 8)
You don´t have to unplug the USB stick like with Yumi

title Install Windows 7

map --unmap=00xff

map --unhook && map --rehook

root (hd0,0)

ls /bootmgr  nul  find --set-root --devices=hf /bootmgr  nul

chainloader /bootmgr

savedefault +2





title Install Windows 7 DEBUG

map --unhook

map --unmap=00xff && map --rehook

savedefault +1

ls /usbdrive.tag  nul  find --set-root --devices=hf /usbdrive.tag  nul

configfile /vistastp.lst





title Boot Primary HDD

map --unhook

map --unmap=00xff && map --rehook

savedefault

ls /shifthd.bat  nul  find --set-root --devices=hf /shifthd.bat

/shifthd.bat

if %RDSK%== pause Fatal error while swaping hard disk order, cannot continue! && configfile menu.lst

pause --wait=3 Booting MBR on hd0 ...

chainloader (hd0)+1


#150 Feeliks83

Feeliks83

    Newbie

  • Members
  • 11 posts
  •  
    Germany

Posted 29 August 2012 - 10:57 PM

title gparted live 0.13.1-2
find --set-root /ISO/gparted-live-0.13.1-2.iso
map /ISO/gparted-live-0.13.1-2.iso (0xff) map --mem /ISO/gparted-live-0.13.1-2.iso (0xff)
map --hook
root (0xff)
kernel /live/vmlinuz boot=live config union=aufs noswap noprompt vga=788 ip=frommedia findiso=/ISO/gparted-live-0.13.1-2.iso toram=filesystem.squashfs
initrd /live/initrd.img


title Trinity Rescue Disc 3.4 build 372 Mapped and Booted from Partition sdb2
map (hd0,1)+1 (fd0)
map --hook
root (fd0)
chainloader +1
boot

title ultimativ boot cd 5.1.1
find --set-root --ignore-cd /ISO/ubcd511.iso
map /ISO/ubcd511.iso (0xff) map --mem /ISO/ubcd511.iso (0xff)
map --hook
chainloader (0xff)
boot




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users