consider adding or updating Super Grub2 Disk 2.00 beta 1+

Post your suggestions here if there are new features or applications that you would like added to the Ultimate Boot CD.

Moderators: Icecube, StopSpazzing

Post Reply
Message
Author
pica
Posts: 23
Joined: Sat Oct 13, 2012 9:35 am

consider adding or updating Super Grub2 Disk 2.00 beta 1+

#1 Post by pica » Wed May 01, 2013 7:05 pm

I've been doing a lot of "loop booting" of Ubuntu isos.

This is done by d/l any of a number of OS iso image files and placing them in a directory called /boot-isos or /boot/boot-isos/ and then having the Suoer Grub2 disk detect them via a menu option. These iso images may then be booted without having to open up the iso and extract any files.

While the version of Super Grub2 disk that's already included works, the 2.00 beta 1 is less buggy.

Downside: to try to accommodate non-ascii letters, the authors added some code that makes the menu jump around and look butt ugly. It still works, but it's distracting.

To fix, you can hold down the [shift] key during boot. When this is done the disk works flawlessly. At least for what I'm doing, and on my hardware.

This release is dated July 4, 2012, so I don't know if progress is dead or just slow. Total size is under 7 MiB, so I don't know if both are feasible.

More details on "loop booting"

Victor Chew
Posts: 1368
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

Re: consider adding or updating Super Grub2 Disk 2.00 beta 1

#2 Post by Victor Chew » Wed May 01, 2013 10:55 pm

While the version of Super Grub2 disk that's already included works, the 2.00 beta 1 is less buggy.
Could you give me an idea of the kinds of bug we are talking about in the current version?

pica
Posts: 23
Joined: Sat Oct 13, 2012 9:35 am

Re: consider adding or updating Super Grub2 Disk 2.00 beta 1

#3 Post by pica » Thu May 02, 2013 2:31 am

Victor Chew wrote: Could you give me an idea of the kinds of bug we are talking about in the current version?
Yes, but to verify, you'll need to do some work.

The included version of Super Grub2 disk has an earlier version of the "loop booting" code (as an aside, the code was written in lua, while the version in 2.00 beta is written in "grubscript", which is a language a lot like dumbed down "shell script")
  • Take a USB stick or other mountable storage
  • Create a directory on that USB stick called /boot-isos/ or /boot/boot-isos/
  • Put two or more iso image files in that directory, At least one of them loop bootable (any recent Ubuntu flavor) and one that isn't (Fedora, etc)
  • With the USB stick plugged in, boot UBCD (the USB stick must be plugged in when Super Grub2 Disk is booted, it won't detect it afterwords)
  • Navigate to HDD :: Boot Management :: Super Grub2 Disk
  • In Super Grub2, look for a menu item that says "loop booting" or something. Pick it.
  • For every device (that was attached when Super Grub2 was booting), Super Grub2 will scan for the existence of the above two folders, and if it finds them it will create a menu item.
  • bug: for every non-loop bootable image, there will be two menu entries, one an error message and one that indicates that the iso is bootable.
As an aside, this is a super easy way to boot experimental iso images. In fact, recent versions of Parted Magic are supposedly loop bootable, so this is a good way (if it works) to try out the bleeding edge of Parted Magic without going through the effort involved with remastering via the pm2ubcd script (which I haven't tried either)

pica
Posts: 23
Joined: Sat Oct 13, 2012 9:35 am

Re: consider adding or updating Super Grub2 Disk 2.00 beta 1

#4 Post by pica » Thu May 02, 2013 3:14 am

pica wrote:...In fact, recent versions of Parted Magic are supposedly loop bootable, so this is a good way (if it works) to try out the bleeding edge of Parted Magic without going through the effort involved with remastering via the pm2ubcd script (which I haven't tried either)
Just tried it. Does not work for me. Failed loop booting the current Parted Magic beta using the Super Grub2 disk 2.00 beta. Bummer.

Explorer09
Posts: 178
Joined: Fri Jun 17, 2011 11:23 pm

Re: consider adding or updating Super Grub2 Disk 2.00 beta 1

#5 Post by Explorer09 » Thu May 02, 2013 5:06 am

While you are discussing about Super Grub2 Disk, I want to inform you two that Parted Magic does include SG2D v2.00 beta.
In the Parted Magic menu, select "Extras Menu" -> "D. Super Grub2 Disk" and you can get the beta you want. (This means we have it in UBCD but not in the main part of UBCD)

adrian15sgd
Posts: 10
Joined: Thu May 02, 2013 2:58 pm

Re: SG2D menu jump

#6 Post by adrian15sgd » Thu May 02, 2013 3:06 pm

pica wrote: Downside: to try to accommodate non-ascii letters, the authors added some code that makes the menu jump around and look butt ugly. It still works, but it's distracting.
Do you mean that when you are in an even number line it seems to be right but being in an odd number line (or viceversa) the menu jumps? I think I've seen similar but I thought it was something special about my PC. Please confirm.
pica wrote: To fix, you can hold down the [shift] key during boot. When this is done the disk works flawlessly. At least for what I'm doing, and on my hardware.
And what you manage to do with that? The colour is no longer orange but blank and white? Or something else?

Thank you.

adrian15sgd
Posts: 10
Joined: Thu May 02, 2013 2:58 pm

Re: SG2D loop booting

#7 Post by adrian15sgd » Thu May 02, 2013 3:11 pm

pica wrote: [*] In Super Grub2, look for a menu item that says "loop booting" or something. Pick it.
[*] For every device (that was attached when Super Grub2 was booting), Super Grub2 will scan for the existence of the above two folders, and if it finds them it will create a menu item.
[*] bug: for every non-loop bootable image, there will be two menu entries, one an error message and one that indicates that the iso is bootable.[/list]
Can you explain a little more about this bug? Once you have the menu... What's the problem? Can you edit both menues (the right and wrong one) and identify what's different in both of them?

I don't have a clue of what might cause the double option you're describing yet.

Thank you.

adrian15sgd
Posts: 10
Joined: Thu May 02, 2013 2:58 pm

Re: SG2D not booting Parted Magic

#8 Post by adrian15sgd » Thu May 02, 2013 3:17 pm

pica wrote:
pica wrote:...In fact, recent versions of Parted Magic are supposedly loop bootable, so this is a good way (if it works) to try out the bleeding edge of Parted Magic without going through the effort involved with remastering via the pm2ubcd script (which I haven't tried either)
Just tried it. Does not work for me. Failed loop booting the current Parted Magic beta using the Super Grub2 disk 2.00 beta. Bummer.
Well, current code expects to find:

Code: Select all

/pmagic/bzImage
/pmagic/initramfs
in the root of the iso.

And then uses these boot options:

Code: Select all

edd=off noapic \
	    load_ramdisk=1 prompt_ramdisk=0 rw sleep=10 loglevel=0 \
	    keymap=$langcode
.

Do you see anything different than these in your Parted Magic iso?

Anyways any live cd is advised to use an special loopback.cfg file as described in: Super Grub2 Disk Loopback.cfg wiki page.

This way SG2D always will know how to boot them.

adrian15sgd
Posts: 10
Joined: Thu May 02, 2013 2:58 pm

Re: Super Grub2 Disk 2.00 beta 3 available

#9 Post by adrian15sgd » Thu May 02, 2013 3:33 pm

Super Grub2 Disk 2.00 beta 3 is available

I think this release does not fix any of the bugs described here :mrgreen: but you might be interested in testing it and reporting feedback now that I'm subscribed to this thread. :D

http://www.supergrubdisk.org/2013/05/02 ... -released/

Changelog:
  • Removed innecessary floppy seek
  • Fixed berlios #18907 bug. Now both /boot-isos and /boot/boot-isos directories should work (instead of only /boot-isos).
adrian15

ady
Posts: 832
Joined: Sat May 08, 2010 5:26 am

Re: consider adding or updating Super Grub2 Disk 2.00 beta 1

#10 Post by ady » Thu May 02, 2013 10:09 pm

Short Off-Topic, FWIW...

PMagic boot codes:

Code: Select all

directory=     Directory containing the pmagic folder (default="/")
iso_filename=  [path to/]iso filename

pica
Posts: 23
Joined: Sat Oct 13, 2012 9:35 am

Re: Super Grub2 Disk 2.00 beta 3 available

#11 Post by pica » Fri May 03, 2013 6:55 am

adrian15sgd wrote:Super Grub2 Disk 2.00 beta 3 is available

I think this release does not fix any of the bugs described here :mrgreen: but you might be interested in testing it and reporting feedback now that I'm subscribed to this thread. :D

adrian15

OK I got it. md5sum = e81b06491e706666c48c5d17ba5c6a17

Please consider also releasing a SHA1 and SHA-256 in the future. While the MD5 is good to check if the disk is complete, it's no longer sufficent for use to detect deliberate tampering.

Great. Well since there is a beta3 I'll start a new thread (unless someone beats me to it.)

Boot menu display issues: I guess the best way to show you is to make a crappy gif and u/l it to imagurl or something.
adrian15sgd wrote:And what you manage to do with that? The colour is no longer orange but blank and white? Or something else?
Again, I think I need to make a gif or something. The color remains unless I use the other menu option.

Also, thank you for the great example of "grubscript" code. It's been maddening not being able to find any well commented code on the web to serve as an example. I have some ideas for SG2D and would like to contribute something back but I'm still trying to wrap my head around grub2.
adrian15sgd wrote: Do you see anything different than these in your Parted Magic iso?

Anyways any live cd is advised to use an special loopback.cfg file as described in: Super Grub2 Disk Loopback.cfg wiki page.

This way SG2D always will know how to boot them.
Somewhere, I saw someone meantion that newer versions of Parted Magic came with a loopback.cfg. I have not confirmed this.

Mods: Please let us know if there is an issue with discussing bugs in SG2D here.

adrian15sgd: Please let me know if you would prefer feedback in another forum elsewhere.

pica
Posts: 23
Joined: Sat Oct 13, 2012 9:35 am

possible inclusion of "Super Grub2 Disk 2.00 beta 3" in UBCD

#12 Post by pica » Fri May 03, 2013 8:11 am

The inital menu looks ok, but this is what happens when I hit the down arrow once.
mainmenu.jpg
This is after hitting "c" to get me to the grub> prompt, and typing "reboot". A top-half line of the same text appears above where it should have.
grubprompt.jpg

Since one of the features of GRUB2 is booting an image while simulating holding a keyboard button, I wonder if I can code a menu item to reload the main menu while "holding" the shift key?

adrian15sgd
Posts: 10
Joined: Thu May 02, 2013 2:58 pm

Re: Super Grub2 Disk 2.00 beta 3 available

#13 Post by adrian15sgd » Fri May 03, 2013 1:25 pm

pica wrote:
adrian15sgd wrote:Super Grub2 Disk 2.00 beta 3 is available

I think this release does not fix any of the bugs described here :mrgreen: but you might be interested in testing it and reporting feedback now that I'm subscribed to this thread. :D

adrian15

OK I got it. md5sum = e81b06491e706666c48c5d17ba5c6a17

Please consider also releasing a SHA1 and SHA-256 in the future. While the MD5 is good to check if the disk is complete, it's no longer sufficent for use to detect deliberate tampering.
Ok, I'll try not to forget it.
pica wrote: Great. Well since there is a beta3 I'll start a new thread (unless someone beats me to it.)
As you wish.
pica wrote: Boot menu display issues: I guess the best way to show you is to make a crappy gif and u/l it to imagurl or something.
adrian15sgd wrote:And what you manage to do with that? The colour is no longer orange but blank and white? Or something else?
Again, I think I need to make a gif or something. The color remains unless I use the other menu option.
Ok. I saw your image in the new thread. I experienced the same issue.
pica wrote: Also, thank you for the great example of "grubscript" code. It's been maddening not being able to find any well commented code on the web to serve as an example. I have some ideas for SG2D and would like to contribute something back but I'm still trying to wrap my head around grub2.
I suppose you mean the wiki link. Actually I find myself difficult to find grubscript code outside SG2D.
pica wrote:
adrian15sgd wrote: Do you see anything different than these in your Parted Magic iso?

Anyways any live cd is advised to use an special loopback.cfg file as described in: Super Grub2 Disk Loopback.cfg wiki page.

This way SG2D always will know how to boot them.
Somewhere, I saw someone meantion that newer versions of Parted Magic came with a loopback.cfg. I have not confirmed this.
Ok. I've downloaded a Parted Magic iso myself and I'll check that and the chntpw GTK gui. I have an equivalent one in Rescatux I think.
pica wrote: adrian15sgd: Please let me know if you would prefer feedback in another forum elsewhere.
Just check links at http://www.supergrubdisk.org . For developing stuff I prefer mailing list but if you don't feel comfortable subscribing there you can also use the forum. And you can also find me at chat sometimes.

adrian15

adrian15sgd
Posts: 10
Joined: Thu May 02, 2013 2:58 pm

Super Grub2 Disk 2.00 beta 4 is available

#14 Post by adrian15sgd » Fri May 03, 2013 4:15 pm

It seems I'm quite active in SG2D development in the last days.

SG2D 2.00 beta 4 is available. More details at:
http://www.supergrubdisk.org/2013/05/04 ... -released/
Changelog:
  • (Devel) searchindevice function was improved by using brackets and making code more clear
  • Make sure to remove console output when using gfxterm output. This should solve some strange problems when selecting various menus options from SG2D.
  • Loopback detection now also detects: /bootisos, /boot/booisos, /BOOTISOS and /BOOTISOS directories so that FAT file name compatibility is assured
  • (Devel) Changed ~ to - in version filename so that filenames can be uploaded ok to forges
Enjoy!

What I mean is that you should discuss about SG2D beta 4 inclusion and not beta 3 ;).

adrian15

pica
Posts: 23
Joined: Sat Oct 13, 2012 9:35 am

Re: Super Grub2 Disk 2.00 beta 3 available

#15 Post by pica » Fri May 03, 2013 9:50 pm

adrian15sgd wrote: Just check links at http://www.supergrubdisk.org . For developing stuff I prefer mailing list but if you don't feel comfortable subscribing there you can also use the forum. And you can also find me at chat sometimes.

adrian15
I found the forum over at grubdisk.org and can move there (English, you don't want to read my Spanish) The only issue is security -- it takes time to get approved because of spammers. (My inactive UBCD wiki credentials were deleted at one point. Spammers suck.)

Haven't found the mailing list yet. Will look for that.

Post Reply