Grub4dos Iso

GRUB4DOS Installing Windows 7 ISO, NEED HELP PLEASE. So I have Grub4Dos running pretty well after I used the diskpart, Grub4dos, Acronis TI ISO root to re-image vmdk files. What I want to do is boot directly from a Windows 7 ISO I have created from MagicISO. Linux tails boot from ISO, grub4dos. Note: This example assumes that your USB device will be the second disk in your system (i.e. The system has just one internal hard disk, sda, and no other external drives connected), if you have several drives connected, you may need to specify sdc4 or sdd4 rather than sdb4.

As you may know, in order to boot Linux-Lite from USB in it's page they recommend to use win32diskimager to extract the ISO to the USB, but doing this your USB device is not readable from Windows any more so you can't use it in Windows PC's until you clean and reformat it.

I haven't found any info for booting it from ISO, but I found info for booting Ubuntu from ISO:

title Run Ubuntu 16.04
find --set-root /ubuntu-16.04-desktop-amd64.iso
map --heads=0 --sectors-per-track=0 /ubuntu-16.04-desktop-amd64.iso (0xff) map --mem /ubuntu-16.04-desktop-amd64.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/ubuntu-16.04-desktop-amd64.iso splash
initrd /casper/initrd.lz

Then as Linux-Lite is an Ubuntu derivative, I decided to use this approach making some adjustments for my needs.

This is my memu.lst entry to boot Linux-Lite from ISO on a partition root of my HDD:

title Linux Lite x64nBoot Linux Lite x64 from HDD
##ISO file must be contiguous on disk in this case, use Wincontig
find --set-root /linux-lite-3.6-64bit.iso
map --heads=0 --sectors-per-track=0 /linux-lite-3.6-64bit.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper iso-scan/filename=/linux-lite-3.6-64bit.iso splash
initrd /casper/initrd.gz
title Linux Lite x64nBoot Linux Lite x64 on RAM
find --set-root /linux-lite-3.6-64bit.iso
map --mem /linux-lite-3.6-64bit.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper iso-scan/filename=/linux-lite-3.6-64bit.iso splash
initrd /casper/initrd.gz

And I use this one when Linux-Lite is on the root of a USB stick:

iftitle [if exist /linux-lite-3.6-64bit.iso] Boot linux-lite-3.6-64bitnBoot linux-lite-3.6-64bit from USB

##ISO file must be contiguous on disk in this case, use Wincontig

map --heads=0 --sectors-per-track=0 /linux-lite-3.6-64bit.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper iso-scan/filename=/linux-lite-3.6-64bit.iso splash
initrd /casper/initrd.gz
iftitle [if exist /linux-lite-3.6-64bit.iso] Boot linux-lite-3.6-64bitnBoot linux-lite-3.6-64bit on RAM
map --mem (hd0,0)/linux-lite-3.6-64bit.iso (0xFF)
map --hook
root (0xff)
kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper iso-scan/filename=/linux-lite-3.6-64bit.iso splash
initrd /casper/initrd.gz

You need to know that you can't see partition containing the ISO from Linux-Lite when your PC boots.

I am using ATM grub4dos 0.4.6a (rev 2016-09-20).

Best Regards

alacran

Edit: Following Wonko comment in post # 5


Edited by alacran, 16 October 2017 - 10:38 AM.

GRUB for DOS - Bridging DOS/Windows to Unix/Linux

GRUB4DOS is an universal boot loader based on GNU GRUB. It can boot off DOS/LINUX, or via Windows boot manager/syslinux/lilo, or from MBR/CD. It also has builtin BIOS disk emulation, ATAPI CDROM driver, etc.

GRUB for DOS is free and open-source software, released under the GNU General Public License.

News: This project now has yet another new home at https://gna.org/projects/grub4dos/.

View the source code: http://svn.gna.org/viewcvs/grub4dos/trunk/.

Download the binary build: http://download.gna.org/grub4dos/. (Note: chs is for Chinese Simplified Edition.)

View or contribute DOCs at: http://grub4dos.sourceforge.net/wiki

New Our support forumin English has been set up at http://www.boot-land.net/forums/?showforum=66

You can boot the GRUB4DOS boot-loader/boot-manager in different manners:

(1) Run GRUB.EXE at the DOS prompt or in AUTOEXEC.BAT
(2) In CONFIG.SYS of DOS/Windows9x, use DEVICE=GRUB.EXE or INSTALL=GRUB.EXE or SHELL=GRUB.EXE
(3) In BOOT.INI of Windows NT/2K/XP, use C:GRLDR='GRUB' (there should be a backslash between C: and GRLDR)
(4) Under Linux, use 'kexec -l grub.exe' and then 'kexec -e'
(5) In syslinux.cfg, use 'kernel grub.exe'
(6) Under GNU GRUB, use 'kernel (DEVICE)/PATH/grub.exe'
(7) In lilo.conf, use 'image=/boot/grub.exe'
All above methods won't touch the MBR nor the boot area of any partition.
(8) Boot from MBR(or floppy) by installing boot sectors onto it with the DOS/LINUX utility bootlace.com.

When GRUB4DOS gets running, you can boot other OSes:

(1) Boot Linux kernel with 'kernel (DEVICE)/PATH/vmlinuz'
(2) Boot MS-DOS7+ kernel with 'chainloader (DEVICE)/io.sys'
(3) Boot FreeDOS kernel with 'chainloader (DEVICE)/kernel.sys'
(4) Boot NTLDR of Windows NT/2K/XP with 'chainloader (DEVICE)/ntldr'
(5) Boot CMLDR of Windows NT/2K/XP with 'chainloader (DEVICE)/cmldr'
(6) Boot other OSes with 'chainloader (DEVICE)+1'
(7) Boot DOS/Windows9x disk image files with the memdrive feature.
(8) Boot Smart Boot Manager with the memdrive feature(SBM can boot CD-ROMs).

README.txt has more details.

Download

See Attachments below. Under Linux, the unzip utility can do:

Grub4dos - windows 7

unzip grub4dos-*.zip

Under DOS/Windows, any unzip utility will do.

Useful Links

Here are some useful resources about GRUB for DOS and WINGRUB.

  • GNU GRUB The homepage of the original GRUB.
  • grub4dos.sf.net This is the project home page at http://sourceforge.net/
  • http://sarovar.org/projects/grub4dos/ This is the project home page at http://sarovar.org/
  • GRUB for DOS scratchpad (in Chinese)
  • United DOS Forum (in Chinese)
  • Sysoft Forum (in Chinese)

Here are some documentations for GRUB for DOS.Toro 325d repair manual.

Other Download Sites


Other Resources

Ralf Brown's Interrupt List: It's cool http://www.ctyme.com/rbrown.htm
A Disk Editor View of the NTFS Boot Sector and 'Bootstrap Code' http://www.therdcom.com/asm/mbr/NTFSbrHexEd.htm
The Second Extended File System(Internal Layout) http://www.nongnu.org/ext2-doc/ext2.html
OSD: PC bootstrap http://my.execpc.com/CE/AC/geezer/osd/boot/
eXtended Memory Specification: http://freedos.sourceforge.net/freedos/news/press/1991-xms30.html
High-res high-speed VESA tutorial http://www.monstersoft.com/tutorial1/
BIOS Data Area http://www.bioscentral.com/misc/bda.htm
Hardware and Software Documentation http://www.o3one.org/hwdocs.html


Screen shot showing the new features