Jump to content











Photo
- - - - -

BURG: grub2 based bootloader with some grub4dos features like mapping support


  • Please log in to reply
11 replies to this topic

#1 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 13 September 2010 - 09:44 PM

BURG: grub2 based bootloader with some grub4dos features, like mapping support.

It supports direct mappping of noncontinuous files.

Installation:

1, Boot from harddisk

copy buldr and buldr.mbr to C:\, create burg boot menu using boot.ini or bcdedit.

Then, download resource package and extract to C:\

http://grub4dos.sour...et/bucfg_v1.zip

bucfg is a fb archive, you can use it as a whole or extract its content to C:\

2, Boot from fbinst

Use fbinst to format a flash drive, add buldr to fb hidden partition. Then, download resource package from the above url, copy bucfg to data partition or extract its content to fb hidden partition, for example:

Code: [Select]
fbinst DISK format -e 8m
fbinst DISK add buldr buldr
fbinst DISK load bucfg

Command usage:

1. Direct map:
map (hd0,1)/floppy.img (fd0)

It supports noncontinuous file.

2, Map to memory:
map --mem (hd0,1)/floppy.img (fd0)

Since burg need memory for its own operation. The memory allocated to map command can be calculated using the following formula:

When M < 256: 1/2 M
When M >= 256: M - 128m

3, Remove a mapping:
map -r (fd0)

4, Remove all mappings:
map -R

5. Show map status:
map

In BURG, you can use device (map0), (map128), etc, to access the map drive, no need for --hook option.

6, Boot image
map --mem (hd0,1)/floppy.img (fd0)
set root=(map0)
chainloader +1
boot

It can be simplified as (more about the --set option later):
map --set --mem (hd0,1)/floppy.img (fd0)
chainloader +1
boot

7, Insert drive
map --insert (hd0,1)/disk.dsk (hd0)

After using --insert, the map drive becomes (hd0), and the original hard disk shift by one, so (hd0)->(hd1), (hd1)->(hd2). Without --insert, the new drive will replace (hd0).

Please note that the behavior described above happens after boot. Inside BURG, (hd0) is still (hd0) and the new map drive can be accessed using (map128).

8, Write protect
You can add --rdonly option to indicate the map drive is read-only:
map --rdonly (hd0,1)/disk.dsk (hd0)

9, Embedded map
You can map files inside another (map) device, for example:
map (hd0,1)/disk.dsk (hd0)
map (map128)/floppy.img (fd0)

However, there is a small limitation about file continuity when using embedded map:
Old drive direct map Old drive memory map
New drive direct map no limit file must be continuous
New drive memory map no limit no limit

10, Map iso file
map (hd0,1)/aa.iso (cd96)
or
map --mem (hd0,1)/aa.iso (cd96)

The corresponding map device is (map224), since bios number is 96 + 128 = 224.

11. Show iso boot catalog:
cdinfo (map224)

12. For iso that has emulated floppy/harddisk, you can use map to boot it, for example:
map (hd0,1)/aa.iso (cd96)
map --image=0 (map224) (fd0)
set root=(map0)
chainloader +1
boot

Option --image=0 select the image from boot catalog. The index for multiple boot iso can be shown using cdinfo command.

13, For noemu iso file, you can use cdload to boot it, for example:
map (hd0,1)/aa.iso (cd96)
cdload --image=0 (map224)
boot

14, You can also use cdload to chainload some boot file directly, for example:
map (hd0,1)/aa.iso (cd96)
cdload (map224)/grldr
boot

map (hd0,1)/aa.iso (cd96)
cdload (map224)/isolinux.bin
boot

map (hd0,1)/aa.iso (cd96)
cdload (map224)/bucd.bin
boot

The cd boot file for BURG is generated using the this command:
cat cdboot.bin core.img > bucd.bin

cdload can also load files from real cdrom, for example:
cdload (hd96)/isolinux.bin
boot

15, Set variable
You can use --set to assign the newly map drive to a variable, for example:
map --set (hd0,1)/aa.iso (cd96)
cdload --image=0 ($root)
boot

map --set=maproot (hd0,1)/aa.iso (cd96)
echo map device is $maproot

If the variable name is skipped, it would use root.

16, dd command
The option for dd is --if, --of, --bs, --seek, --skip, --count and --str. --str is used to write a string to output file, while the other options are the same as the dd command from linux, for example:

dd --if=(hd0,1)/aa --of=(hd0,1)/bb --bs=512 --count=1
dd --str=HELLO --of=(hd0,1)/bb --seek=32

For more info (you may like Google Translate):
http://www.burgloade...php?topic=101.0

More info about the menu system:
https://help.ubuntu.com/community/Burg

#2 ireneuszp

ireneuszp

    Frequent Member

  • Advanced user
  • 191 posts
  •  
    Poland

Posted 28 September 2010 - 05:42 PM

nice
this tool is similar to grub2
and can be chainloader from grub4dos

title Brand-new Universal loadeR from GRUB 1.98 &#40;buldr&#41;\n BURG version 1.98\n Brand-new Universal loadeR from GRUB...

	find --set-root --ignore-floppies /buldr || find --set-root --ignore-floppies /buldr.mbr

	uuid &#40;&#41;

	chainloader /buldr || chainloader /buldr.mbr

	boot

:dubbio:

#3 ireneuszp

ireneuszp

    Frequent Member

  • Advanced user
  • 191 posts
  •  
    Poland

Posted 16 October 2010 - 05:23 PM

Here is Burg Win32 Installer

http://burg.googleco...er_20101007.exe

http://code.google.c.../downloads/list

Links

Google Code: http://code.google.com/p/burg
Bazaar Source: https://launchpad.net/burg
Forum: http://www.burgloader.com/bbs
Group: http://groups.google...roup/burg-devel
Screenshots: http://code.google.c...iki/Screenshots

:D

#4 L A M A

L A M A

    Silver Member

  • Advanced user
  • 540 posts
  •  
    United Nations

Posted 17 October 2010 - 10:10 PM

:cheers: OK, this is cool... (at least something new in this area...)

will test this in vbox :D

#5 Areeb

Areeb

    Member

  • Members
  • 38 posts
  • Location:Lahore
  •  
    Pakistan

Posted 19 October 2010 - 03:24 AM

Nice,

I wasn't able to run it using the 'bucfg' file you mentioned. But I extracted the Burg folder from the Installer, placed it in HDA1, chainloadeded it from Grub Legacy and got it working !!!!

Themes are awesome. But I am not much used to Grub2 Syntax. but I guess i need to learn the Grub2 Syntax now ! :dubbio:

#6 Areeb

Areeb

    Member

  • Members
  • 38 posts
  • Location:Lahore
  •  
    Pakistan

Posted 19 October 2010 - 07:33 AM

I have tested BURG. Its Cool.
But I am having a Problem as i am not used to the syntax of Grub2.

I used Grub4DOS to directly chainload ntldr, bootmgr OR Ubuntu etc like this:

title Mirosoft Windows 7 Ultimate

root &#40;hd0,0&#41;

chainloader &#40;hd0,0&#41;/bootmgr



# Microsoft Windows XP &#40;Ntldr&#41;

title Mirosoft Windows XP Pro

root &#40;hd0,0&#41;

chainloader &#40;hd0,0&#41;/ntldr



# Ubuntu Loader &#40;Grub2&#41; with Grub2 Installed on EPBR

title Ubuntu 10.04 with Linux v2.6

root &#40;hd0,6&#41;

kernel /boot/grub/core.img

boot

How can we do this with BURG ?
When I openned up grub.cfg file of Ubuntu(Grub2), the entry for Windows XP had something to do with UUID thing. :dubbio:

Anybody ????

#7 ireneuszp

ireneuszp

    Frequent Member

  • Advanced user
  • 191 posts
  •  
    Poland

Posted 18 March 2011 - 09:09 PM

:) new project burg4dos
http://code.google.c.../downloads/list

http://burg4dos.goog...s/WinLybrug.exe

from here http://bbs.wuyou.com...43&extra=page=2

:(

#8 L A M A

L A M A

    Silver Member

  • Advanced user
  • 540 posts
  •  
    United Nations

Posted 19 March 2011 - 05:16 AM

:) cool to have more and more grubbers, this takes control off OS's hand

#9 kyl

kyl
  • Members
  • 9 posts
  •  
    Poland

Posted 13 April 2011 - 02:01 PM

:happy_dance: new project burg4dos
http://code.google.c.../downloads/list

http://burg4dos.goog...s/WinLybrug.exe

from here http://bbs.wuyou.com...43&extra=page=2

:cheers:

looks like burg with win/usb installer but without mapping support :cheers:

#10 vigipirate

vigipirate

    Member

  • Members
  • 99 posts
  •  
    France

Posted 13 April 2011 - 05:13 PM

TUTORIAL

************************************************** ************************* All files Burg4dos to reside on the Windows C: drive so you do not have to depend on the availability any Linux partition to boot your computer. Windows MBR is not touched so multiboot Windows and Linux that can be done safely. Burg4dos startup is controlled by BCD natively in Windows 7, Windows Server 2008 and Vista. In Windows XP and Windows 2003 environment, it is controlled by C: \ boot.ini. ************************************************** ************************************************** ************************* These instructions assume that you start the native Windows MBR. Warning: Make sure you have properly backed up your disks and data before trying it. I think the procedure to be sure, but you never know. I assume no liability for your system. License: Burg4dos, Burg, grub GNU and associated modules are distributed under the terms of the GNU GENERAL PUBLIC LICENSE. A copy of the license can be found on the web at http://www.gnu.org/licenses/gpl.html and in C: \ burg \ winsource \ license.txt. 1. Download file Burg4dos.zip sourceforge and unpack it. 2. Move the unzipped folder to the burg C: drive root. In other words the unzipped directory should be located in C: \ village. 3. Go to the directory C: \ burg \ install and run burg4dos.exe. This will require administrator access. 4. The program will ask your preferences charts, time Windows starts and the time of town. You can also set the title Burg start menu and default operating. The defaults should work fine, but you can change them if you wish. A preview of your chart selection will appear in the GUI installer. Now click OK. The following actions will now be done automatically: Check for the Windows version and administrative access. Generating C: \ burg \ burg.cfg town with custom graphics and delay settings. If the user section exists, it is left unchanged. For Windows 7, Windows 2008 and Vista, the BCD will be updated with an entry for burg. A backup of the BCD is made before the update and is located in C: \ burg \ WinBackup. For Windows XP and Windows 2003 C: \ boot.ini will be updated with an entry for burg. Backup C: \ boot.ini is made before the update and is located in C: \ burg \ WinBackup. C: \ burgb will be created. 5. Shut down and restart Windows. Select the "Burg To Dos" menu entry. You should now get a screen with two selections Burg4dos: "Windows" and "Invaders Grub. Select "Windows" and ensure that Windows is installed. This confirms that burg is working properly. Note: You can run burg4dos.exe several times and change your options. If you have customized the user section of C: \ burg \ burg.cfg, your changes will be preserved. The user section is bracketed by the lines of commented-user-start # section # section-end-user ************************ *** *********************************************** *** *********************************************** * By using Notepad, customize the user section of C: \ burg \ burg.cfg to fit your boot environment by adding commands and menuentries. You can add a virtually unlimited number of configurations, Linux and Windows. Now reboot. I provided a sample of configuration files in the directory C: \ burg \ install appointed sample.cfg This can be copied to help personalize your C: \ burg \ burg.cfg. They show how various flavors of Linux boot both MBR and GPT partition. Just for fun, try Invaders Grub from file sample.cfg. There is also an experimental section for Mac OS-X. Documentation on the syntax burg.cfg be found here: # http://www.gnu.org/s...anual/grub.html Command_002dline-and-menu-entry-orders many useful examples can be found here: http://members.iinet.net/ ~ herman546/p20/GRUB2 20CLI%%% 20Mode 20Commands.html ** For advanced instructions, loans and the change log, see the file ** readme.pdf located in C: \ burg \ install. Good luck and have fun! drummerdp
Source: readme.quick.txt, update 11/04/2011

#11 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 13 April 2011 - 06:44 PM

TUTORIAL
...

I think that some new-lines would be nice in that tutorial. I personally won't try to read it without them. Thanks anyway.

#12 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 13 April 2011 - 07:31 PM

I think that some new-lines would be nice in that tutorial. I personally won't try to read it without them. Thanks anyway.

This is at least a workable link to some info about the grub2 commands:
http://members.iinet...e Commands.html




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users