![]() Dec 10, 2010 - Set GRUB4DOS to boot from ISO, (which is what you probably done already). Ubuntu 12.04 server with Vaxquis' trick in USB with grub4dos. Stack Exchange Network. Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Premiere pro motion graphics templates. BOOTLACE writes GRLDR BOOT RECORD to MBR or to the boot area of a file system. Usage: bootlace.com [OPTIONS] DEVICE_OR_FILE Options: --read-only, --floppy[=N], --boot-prevmbr-first, --boot-prevmbr-last, --no-backup-mbr, --force-backup-mbr, --mbr-enable-floppy, --mbr-disable-floppy, --mbr-enable-osbr, --mbr-disable-osbr, --duce, --time-out=T, --hot-key=K, --preferred-drive=D, --preferred-partition=P, --sectors-per-track=S, --heads=H, --start-sector=B, --total-sectors=C, --install-partition=I, --lba, --chs, --fat12, --fat16, --fat32, --vfat, --ntfs, --ext2, --serial-number=SN, --restore-mbr, --mbr-no-bpb, --chs-no-tune DEVICE_OR_FILE: Filename of the device or image. For DOS, a BIOS drive number (in hex 0xHH or decimal DDD format)can be used to access the drive. Grub4dos IsoAlso, be aware that your grub4dos menu.lst file may need modifying because your files will be on a CD and not a 'hard disk' when the ISO boots. Therefore if you have any commands which expect two hard disks to be present, i.e. (hd0) and (hd1), or you have hard coded the payload files as (hd0,0)/xxxx, or if you have excluded CD's from any file 'find' commands used in the menu, then when you boot from an ISO you cannot expect these to work! You can use () or (bd) as a device name for the boot device or just use / in your menus. When you boot from a CD it can be booted as a floppy or a hard disk or as neither. The Makegrub4dos.cmd script uses a switch with mkisofs of --no-emul-boot so that the BIOS does not emulate either a floppy disk or a hard disk when booting the CD. If we used floppy-disk emulation then we could only access 2.8MB within a floppy disk image. We could use a hard disk image but that might confuse DOS when it boots, as the CD will appear as hd0 (but write-protected). Instead of using a hard disk or floppy disk image, we specify the grub4dos bootloader file grldr and specify 'no emulation' when we create the ISO. The 'El Torito' has more details. When we boot from a cd with no emulation, the operating system that is loaded must use it's own drivers to access the CD/DVD. However, grub4dos can access the CD as it understands the CD filesystem which has a CDFS (non-FAT, non-NTFS) filesystem with 800h long sectors. Once grub4dos has been loaded, we call copycd.bat. This is a grub4dos batch file which makes a large (500MB+) ram drive and then copies the contents of the cd to the virtual ram drive (fd0), folder by folder. We can then boot to DOS from the files that are now on the virtual fd0 drive. The internal Hard Disk 0 will still be hd0 in DOS so we can fdisk it or format it and copy files to it. • Prepare a USB drive with the contents that you want your CD to have - in this case it will be some DOS systems files plus any other files that you require. • Install grub4dos to the USB drive using the 'Install grub4dos' button on RMPrepUSB • Copy the file ' fat' to the root of the USB drive. • Cut and paste the text below to make a new file called copycd.bat on the root of the USB drive. • Edit the menu.lst file on the USB drive (press F4 in RMPrepUSB to load it into Notepad) - copy the menu items below into it and save the file to the USB drive. If you are using MS-DOS you can delete the FreeDOS menu's - if you are using FreeDOS you can delete the MS-DOS menus. • If grub4dos cannot access the CD, try the cdrom --init command in each menu (or at the top of the menu). • if you use a ZalMan VE-200 CD emulator to test your ISO - beware! This does not seem to work with grldr ISO files. However, real CDs do work. I would therefore recommend testing using a software emulator such as QEMU Manager or Oracle Virtual Box and then burning a real CD. • If you see an error message ' FAT error: the physical drive cannot work!' Then your system does not have enough memory (RAM). If you are using a virtual machine then increase the amount of memory available (but not above 1100MB), if you are booting on a real system, check if the size of the virtual drive that you have prescribed in the menu.lst (e.g. 0x100000) can be reduced (i.e. Matches the size of all files on the CD). The Hirens Boot CD contains a Make ISO batch file which uses the following command to create an HBCD ISO called MyHBCD.ISO which has a grub4dos boot loader. Mkisofs.exe -R -D -J -l -joliet-long -duplicates-once -o MyHBCD.iso -b HBCD/grldr -c HBCD/boot.cat -hide-joliet HBCD/boot.cat -hide HBCD/boot.cat -no-emul-boot -N -boot-info-table -V HirensBootCD -boot-load-size 4 CD UDF and Floppy Emulation ISOs There are different types of CD boot emulation, including floppy emulation - in which the boot sector of the CD is a bootable floppy disk image. The boot sector is not accessible when viewing the CD in a file manager such as Windows Explorer and might appear to be a blank disk if no files are contained on the disc root. These ISOs can be mounted as a virtual CD/DVD and most modern applications (Virtual CloneDrive or ImDisk) will allows access to all files in the UDF volume. In Windows 8/8.1/10: Start -> Search -> msinfo32.exe If your computer is using BIOS, you will see BIOS Mode: Legacy. This solution will work on your machine. If your computer is using UEFI, you will see BIOS Mode: UEFI. This solution will not work on your machine. In Windows 7 or earlier: • Open Windows Explorer. • Navigate to C: Windows Panther • Find setupact.log. • Right-click the file, select Open. • Search for Detected Boot Environment. If your computer is using BIOS, you will see: Callback_BootEnvironmentDetect: Detected boot environment: BIOS. This solution will work on your machine. If your computer is using UEFI, you will see: Callback_BootEnvironmentDetect: Detected boot environment: UEFI. This solution will not work on your machine. Downloading grub4dos Download and grub installer to your computer and unpack them. Currently, the latest version of grub4dos is and the latest version of grub installer is. Making USB bootable 1. In Windows Explorer, open the installer's folder and select grubinst_gui.exe: 2. Run the application: Windows XP: Double-click grubinst_gui.exe Windows 7 or later: Right-click grubinst_gui.exe and select Run as administrator: 3. Select Disk, then click Refresh and select the drive you want to create a bootable media on: You can detect your drive by its size. In this example an 8GB flash drive is used. In Part List click Refresh. From the dropdown box select Whole disk (MBR): 5. Check the Don't search floppy option, leave all the other options unchecked: 6. Click Install. If the installation completes successfully, you will see this message: 7. In Windows Explorer open the grub4dos folder, locate grldr and copy it to the target drive: Creating ISO files of Acronis products • Run the media builder of Acronis True Image. • Select ISO file when offered to choose media destination: • Create the ISO. You can save the ISO file directly to your flash drive or copy in later. • Run the media builder of Acronis Disk Director. • Select ISO file when offered to choose media destination: • Create the ISO. You can save the ISO file directly to your flash drive or copy in later. Setting up multiproduct boot • Copy the ISO files to the flash drive if you haven't done it yet. Now you should have 3 files on the drive: • Open Notepad. • Insert this content: timeout 10 default 0 title Acronis Disk Director map --mem --heads=0 --sectors-per-track=0 (hd0,0)/.iso (hd32) map --hook chainloader (hd32) boot title Acronis True Image map --mem --heads=0 --sectors-per-track=0 (hd0,0)/.iso (hd32) map --hook chainloader (hd32) boot title CommandLine commandline title Reboot reboot title Halt halt where is the name of the ISO file created in Acronis Disk Director and is the ISO file created with Acronis True Image. Save the file as menu.lst to the root directory of your flash drive. In Save as type select All files, otherwise the file might be saved as a.txt-file while we need a.lst-file. You can double-check the file extention in Windows Explorer: If you don't see the extention, check for help. Now your USB drive is ready and you can boot your computer with it. How to configure Grub4dos to boot Ubuntu 16.04? This is my command lines in menu.lst: title Run Ubuntu 16.04 Server find --set-root --ignore-floppies --ignore-cd /iso/ubuntu-16.04-server-amd64.iso map --heads=0 --sectors-per-track=0 /iso/ubuntu-16.04-server-amd64.iso (hd32) map --hook chainloader (hd32) I can boot the Installation of Ubuntu 16.04 Environment. But I think in step 4, the system says something like it tries to mount CD-ROM displays the following error message: Your installation CD-ROM coundn't be mounted. This probably means that the CD-ROM was not in the drive. If so you can insert it and try again. After some readings, I have tried with another command lines as follow: title Run Ubuntu 16.04 Server find --set-root /iso/ubuntu-16.04-server-amd64.iso map /iso/ubuntu-16.04-server-amd64.iso (0xff)|| map --mem /iso/ubuntu-16.04-server-amd64.iso (0xff) map --hook root (0xff) kernel /casper/vmlinuz.efi file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=/iso/ubuntu-16.04-server-amd64.iso quiet splash -- initrd /casper/initrd.lz and this time I failed to boot and the Grub4Dos displays the following error message: Error 62: The number of heads must be specified. The '--heads=0' option tells map to choose a value (but maybe unsuitable) for you What is the correct command lines?
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |