Jump to content











Photo
- - - - -

UBCD50b12 with grub4dos support is out


  • Please log in to reply
45 replies to this topic

#26 tinybit

tinybit

    Gold Member

  • Developer
  • 1175 posts
  •  
    China

Posted 28 March 2009 - 01:38 AM

In the upcoming grub4dos final release, I want to add to the sample menu.lst file with an entry for Parted Magic ISO booting and surely also one for UBCD ISO.

How can I do it?

The following is OK?

title Parted Magic ISO

find --set-root /pmagic.iso

map /pmagic.iso (0xff)

map --hook

chainloader (0xff)



title Ultimate Boot CD ISO

find --set-root /ubcd.iso

map /ubcd.iso (0xff)

map --hook

chainloader (0xff)

I hope the ISOs can be loaded in a simple way like the above.

#27 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 28 March 2009 - 04:15 AM

Well as with previous grub4dos versions :
Error 60: File for drive emulation must be in one contiguous disk area

This is really painful since I have to use contig.exe to try to make one contiguous area, which is not always possible on populated USB key.

It looks like that (hd32) is no longer needed, now the syntax is (0xff).

A part from that, it does boot OK but then I ran into the invalid opcode problem loading any DOS image ! Probably because the standard way use isolinux which loads memdisk, while the grubdos method as I presented use floppy emulation which works much better.

#28 tinybit

tinybit

    Gold Member

  • Developer
  • 1175 posts
  •  
    China

Posted 28 March 2009 - 04:42 AM

I tend to think it is not so hard to defrag an image on the USB under Windows.
I think it is always possible if you could rebuild/reformat the USB drive.

(0xff) is better than (hd32) and others, especially when later in the boot precess the eltorito.sys inside DOS would gain control.

You may rebuild your Parted Magic ISO and by default you may employ grub4dos(grldr) to load/emulate/boot your images.

#29 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 28 March 2009 - 07:43 AM

Some options e.g. UBCD FreeDos require to use the GRUB4DOS Menu since otherwise Invalid Opcode is the result.
Therefore it is better to boot directly with the GRUB4DOS Menu
by using configfile option in GRUB4DOS menu.lst
Best results are obtained with

menu.lst

title Boot ubcd50b12.iso - GRUB4DOS Menu

find --set-root  /ubcd50b12.iso

map --mem /ubcd50b12.iso (hd32)

map --hook

root (hd32)

configfile /ubcd/menus/grub4dos/main.lst


This works quite well :good:

#30 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 28 March 2009 - 10:37 AM

@wimb
I tried your method but it takes so long to boot (more then 15 minutes), I have to stop the boot process. The BIOS supports only USB 1.x speed at boot, so it could be due to the 256 MB-size of the iso?

I tried the mix of your method and tinybit's one and got excellent result : boot instantly (few seconds) with grub4dos menu.lst displayed, and no invalid opcode (best of both world) :

title Boot ubcd50b12.iso - GRUB4DOS Menu

find --set-root  /ubcd50b12.iso

map /ubcd50b12.iso (0xff)

map --hook

root (0xff)

configfile /ubcd/menus/grub4dos/main.lst


#31 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 28 March 2009 - 12:07 PM

I tried the mix of your method and tinybit's one and got excellent result : boot instantly (rew seconds) with grub4dos menu.lst displayed, and no invalid opcode (best of both world)

Great, nice to hear it is working so well for you this way :good:

I hope tinybit will add your Entry for UBCD5 to menu.lst

At the same time I will change hd32 in 0xff in BOOT_ISO.exe
and remove the --mem when Installing on Removable drive, which gives for you the improvement.

Copy to RAM by using --mem is not necessary when booting from USB-stick, and is giving for USB 1.1 the long boottime.

However, when Installing ubcd50b12.iso as boot option on your Harddisk using BOOT_ISO.exe , then booting will be very fast, allthough --mem option is used.
For booting from Harddisk the --mem option is desired since otherwise you are NOT free to make changes on Harddisk with several options of UBCD5 I presume.

#32 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 28 March 2009 - 12:58 PM

@ tinybit
map /pmagic.iso
won't work. Parted Magic looks for the file "pmagic-<version_number>.iso".
e.g.: pmagic-3.7.iso

Why is (0xff) better than (hd32)?

I have one feature request (another one :good:):
Would (or is it already possible) to NOT load a iso to memory, but to access the files inside iso from a non-contiguous ISO file?
This would be useful for booting linux based ISO's, that only need the kernel and initrd from the ISO (not the other files on the ISO).
title SomeISO

find --set-root  /some.iso

map --not-continuous /some.iso &#40;0xff&#41;

map --hook

root &#40;0xff&#41;

kernel /bzImage some parameters

initrd /initrd

boot
So you can't boot the ISO directly by chainloading it's boot sector, but you can access the needed files.

This avoids slow --mem booting.

Are you planning to stop after grub4dos 0.4.4 comes out?
Will grub4dos still be developed afterwards?

@ all
UBCD50b13 will have the raw parameter added to memdisk.

Maybe Parted Magic will look for the UBCD iso, when pmagic-<version_number>.iso isn't found. I need to conversate with Patrick first.

#33 tinybit

tinybit

    Gold Member

  • Developer
  • 1175 posts
  •  
    China

Posted 28 March 2009 - 07:26 PM

@ tinybit

map /pmagic.iso
won't work. Parted Magic looks for the file "pmagic-<version_number>.iso".
e.g.: pmagic-3.7.iso


What a pity! at this moment grub4dos does not support wild cards like "?" or "*". I hope the PMAGIC.ISO would work.

Why is (0xff) better than (hd32)?


Eh, that is a long story that we are not likely to be able to put it clearly here. Some (bad!!) BIOSes place a shammed cdrom at the BIOS drive 0xFF. The eltorito.sys will fail on those MOBOs, because eltorito.sys will find the cdrom from 0xFF downward to 0x80. In that case, eltorito.sys will find the cdrom 0xff, but when it tries to access its sectors, it will get nothing. So eltorito.sys will think of that there is no cdrom available, and thus fail to find the real cdrom. And that is what the manufacturers really want to do, I guess, possibly because they are bribed.

Not only eltorito.sys will encounter this problem. Some other programs will also trap into it unluckily. There are reports on this kind of failure, but I cannot remember them clearly, sorry.

If we place our virtual cdrom at 0xff, then we will overwrite the BIOS shammed cdrom, and then the eltorito.sys and other programs will no longer trap into it and will always succeed.

I have one feature request (another one :good:):
Would (or is it already possible) to NOT load a iso to memory, but to access the files inside iso from a non-contiguous ISO file?


not possible at this moment. try grub2 please.

Are you planning to stop after grub4dos 0.4.4 comes out?


yes.

Will grub4dos still be developed afterwards?


Bean will continue to be the maintainer. If you apply to join in, I agree. ^_^

#34 mr_

mr_

    Frequent Member

  • Members
  • 355 posts
  •  
    Germany

Posted 28 March 2009 - 10:45 PM

So it seems that I did implement the grub4dos menu for nothing :good: .

I wouldn't say that. You've proven that grub4dos can be a full replacement for syslinux and helped the development with dozens of tests. Now and in future the grub4dos menu will be always a nice reference and maybe at some point the preferred default loader.

Are you planning to stop after grub4dos 0.4.4 comes out?

yes.

Will you focus on developing grub2 after that?

Do you plan to backport grub4dos's features to grub2?

#35 tinybit

tinybit

    Gold Member

  • Developer
  • 1175 posts
  •  
    China

Posted 29 March 2009 - 04:14 AM

@mr_

Thank you for your concern.

My body needs maintenance. I need a rest. I need some time to rehabilitation. Sorry.

And I will not do any work on grub2, sorry again. Instead, I might start another project based on ELKS hopefully after I would have got well.

#36 tinybit

tinybit

    Gold Member

  • Developer
  • 1175 posts
  •  
    China

Posted 29 March 2009 - 04:47 AM

I hope tinybit will add your Entry for UBCD5 to menu.lst


Sorry. This usage will not appear in the sample menu.lst file. And version numbers like 50b12 will be also stripped out from the sample menu.lst file. The users may add the version string themselves by hand, if needed.

#37 mr_

mr_

    Frequent Member

  • Members
  • 355 posts
  •  
    Germany

Posted 29 March 2009 - 12:59 PM

@mr_

Thank you for your concern.

My body needs maintenance. I need a rest. I need some time to rehabilitation. Sorry.

Well, that's for sure much more important then grub4dos. I wouldn't create the final version first, your health must be the very first priority.

best wishes,
-mr

:good:

#38 Andy D

Andy D
  • Members
  • 4 posts
  •  
    United States

Posted 25 May 2009 - 03:34 PM

=
UBCD50b12 with grub4dos support is doing well and all SubMenus can be reached.

Booting the ISO loaded from HD into memory using GRUB4DOS can be realised
by using BOOT_ISO.exe of U_XP_SET package to make the HD Boot Option in GRUB4DOS menu.lst
It works very fast and allows to Boot from your NTFS Harddisk in this way
with all kind of floppy images present in the UBCD50b12 ISO loaded into RAM memory.

=
Posted Image
=


I'm trying to understand how this works so excuse the newbie questions. I can use that Boot ISO to convert boot iso images that will work with Grub without a lot of hassle? Ideally I want something that will boot...

UBCD
Ubuntu
and Acronis True Image (and maybe some other things)

So far I got the first two working (UBCD 4.1.1) using a tutorial in a older CPU article. What I don't know is how to add an ISO to it that I can boot from.

#39 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 25 May 2009 - 05:15 PM

BOOT_ISO.exe is NOT used to convert iso images,
but to Install iso images as extra boot option in Grub4dos menu.lst Menu on e.g your harddisk boot drive C:\ or on a bootable USB-stick or external USB Harddisk.

#40 Andy D

Andy D
  • Members
  • 4 posts
  •  
    United States

Posted 25 May 2009 - 05:50 PM

hmm interesting. So theoretically I could add any bootable iso with little effort? Or am I underestimating the process time?

#41 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 25 May 2009 - 05:56 PM

Yes, examples are given here:
http://www.boot-land...?showtopic=5041

and in the preconfigured menu.lst file in makebt folder of U_XP_SET package.
Read here: http://www.boot-land...?showtopic=5306

There is nearly no processing time, it is Install at once creating extra boot option.

#42 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 25 May 2009 - 06:07 PM

hmm interesting. So theoretically I could add any bootable iso with little effort? Or am I underestimating the process time?


NO, not "any", some.

ANY DOS based ones.
ONLY RAMDISK based NT/2K/XP/2003 ones.
ANY WIM based Vista/2008/7 ones.
SOME Linux based ones.

jaclaz

#43 Andy D

Andy D
  • Members
  • 4 posts
  •  
    United States

Posted 26 May 2009 - 02:30 AM

Yes, examples are given here:
http://www.boot-land...?showtopic=5041

and in the preconfigured menu.lst file in makebt folder of U_XP_SET package.
Read here: http://www.boot-land...?showtopic=5306

There is nearly no processing time, it is Install at once creating extra boot option.


Nice. Would you know of a basic tutorial for grub? First time reading about it today but not sure how both interface with each other

And jaclaz - yeah I didn't expect all. I was thinking more in the lines of say adding Linux live cds or boot tools without the hassle of extracting the iso and messing with files. I spent a ton of time years ago trying to set up a ultimate dvd boot disk but it took too much effort to get everything workign properly

#44 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 26 May 2009 - 04:12 AM

diddy has written a very good Grub4dos Guide :D
http://diddy.boot-la...os/Grub4dos.htm

#45 Andy D

Andy D
  • Members
  • 4 posts
  •  
    United States

Posted 27 May 2009 - 02:32 AM

awesome - thanks for the help!

#46 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 27 May 2009 - 09:32 AM

Would you know of a basic tutorial for grub?


diddy has written a very good Grub4dos Guide :D
http://diddy.boot-la...os/Grub4dos.htm


Which casually :D it's the topmost sticky in this same forum :
http://www.boot-land...hp?showforum=66

Let's say we have seen (sometimes ;)) better questions..... ;)

;)

jaclaz




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users