Grub4dos Guide/Tutorial
#1
Posted 14 July 2008 - 08:01 PM
Feel free to post any errors or feedback – good or bad. The guide is available here – a downloadable version is also available.
diddy
Updated - 18th July 2008
Guide updated to version 1.1 following feedback from tinybit - see below.
Updated - 19th February 2009
Guide updated to version 1.2
Updated - 22nd April 2009
Guide updated to version 1.3
Updated - 17th May 2009
Guide updated to version 1.4
- bee4u and Michele13 like this
#2
Posted 15 July 2008 - 02:55 AM
I would like to add one point on the "mappings" page: http://diddy.boot-la...s/files/map.htm.
"Double-mapping" should perhaps (better) be called "nested mapping". The nest is no limit to the depth.
Another point about the "memory mapping":
The use of compressed images is therefore recommended, as it allows for less memory usage and faster loading.
The gz image does not save memory since it will be decompressed by the map command. It only save disk space where it occupies. It allows faster loading, yes.
Example use for Gzip'ed images -
* find --set-root /win98.ima.gz
* map /win98.ima.gz (fd0)
* map --hook
* root (fd0)
* chainloader +1
* boot
In map --mem /win98.ima.gz (fd0), the --mem should not be omitted.
#3
Posted 15 July 2008 - 07:59 AM
jaclaz
#4
Posted 15 July 2008 - 10:08 AM
#5
Posted 15 July 2008 - 12:41 PM
Thanks for the quick response (and the eagle eyes - well spotted on the missing --mem switch). I'll edit the guide with the necessary changes and upload the new version within the next week - I want to see if any other errors are noticed first.
diddy
p.s. Jaclaz - you're sacked
#6
Posted 26 July 2008 - 02:11 PM
But why not post this guide into the grub4dos wiki?
#7
Posted 27 July 2008 - 10:18 AM
A couple links that you may want to add to this page:
http://diddy.boot-la...files/links.htm
Grub4dos latest releases (sometimes more up-to-date than http://grub4dos.jot.com/ )
https://gna.org/projects/grub4dos/
http://download.gna.org/grub4dos/
jaclaz
#8
Posted 21 September 2008 - 08:12 PM
Thank you a lot for your excellent Tutorial for Grub4Dos it is really interesting.
While I am reading you tut I find some typos that need to be fix.
I fix the .htm pages and pack them to you.Boot Options.htm
1st line: utilises --> utilizes
Map Command.htm
Nested Maopping section
2nd line: utilises --> utilizes
Booting Disk Image Files section
this maps the image file (in this case PE.img --> sectionthis maps the image file (in this case PE.ima
#9
Posted 22 September 2008 - 04:56 AM
http://grub4dos.nufans.net/
@Xtremee- isn't utilise alternative spelling?
http://en.wiktionary.org/wiki/utilize
http://www.babylon.c...nition/utilise/
#10
Posted 22 September 2008 - 06:01 AM
While I am reading you tut I find some typos that need to be fix.
[joking]
That depends on one nationality and the acceptance or non-acceptance of whether US English should be the standard. Apart from specialised (not a typo!) terms for a domain of study originating (or in part originating) from the US, I prefer to use -ise suffix myself and reject the use of -ize. Diddy's choice could be similarly intentional.[/joking]
Regards,
Galapo.
#11
Posted 22 September 2008 - 10:05 AM
http://www.bartleby....68/36/3436.html
-ise, -ize (suffix)
is an extremely prolific word-forming suffix, and many conservatives balk at what appears to be unnecessary invention and overuse of the device to coin such originally nonce words as concretize, computerize, pauperize, and the like. Americans make more use of -ize; Britons use more of -ise, but there are many American spellings with -ise as well.
Both suffixes are commonly accepted, but the -ise one does look more "British".
By the way, there is even people that use the term "amlish" for the "american way" of using English :
http://www.accomodata.co.uk/amlish.htm
Of course all the "English" we commonly write and talk has had some influences from American English, and it is very difficult to distinguish American terms that have become common use in English from "wrong" ones, but when we are talking about spelling, I guess that British English should always prevail.
Personally I find that calling a dinner jacket "tuxedo" (American) or "smoking" (Italian) is a crime against logics and semantics:
http://en.wikipedia.org/wiki/Black_tie
jaclaz
#12
Posted 22 September 2008 - 10:28 AM
Thanks for the info I really don't know that.
#13
Posted 13 November 2008 - 06:57 AM
1. grldr.mbr can also be used to load grldr under Windows NT. for example:
edit boot.ini just like below:
[boot loader] timeout=3 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn /PAE /3GB c:\boot\grldr.mbr="Grub4DOS by grldr.mbr" c:\grldr="Grub4DOS by grldr"
2. grldr can also be loaded by PXE as PXE boot file. after boot through PXE, it will use (pd) as the TFTP Server device.
map --mem (pd)/someimg.img (fd0)
map --hook
...
3. about PXE, you can use pxelinux to switch to grub4dos just as syslinux does, but you can keep the pxe stack and let grub4dos can access the (pd) device.
pxelinux.cfg:
LABEL grub4dos.pxe MENU LABEL GRUB4DOS with PXE kernel /grub.exe append keeppxe
ALSO in (pd)/menu.lst/default you can do this:
title Return to PXELinux pxe keep chainloader --force --raw (pd)/pxelinux.0 title Load grub.exe with PXE support pxe keep terminal console kernel (pd)/grub.exe title Load grldr with PXE support pxe keep terminal console chainloader --force --raw (pd)/grldr
At last, please forgive my poor English.
#14
Posted 13 November 2008 - 01:34 PM
Thanks for the update , I am sure that diddy will include them in next "revision" of the guide.
But two questions, one maybe worth something, the second pretty much noobish:
1) What are the advantages (if any) or drawbacks (if any) in using grldr.mbr instead of grldr in BOOT.INI?
I mean, if I am not mistaken, the "job" of grldr.mbr is simply that of starting grldr, so I cannot see the usefulness of this "added step".
2) About PXE booting I have a number of perplexities - mainly because I did some experiments with PXE booting only a long time ago and I am not at all "familiar" with the process.
Could you post (or PM me if you prefer) a single "from beginning to actual boot" example (I mean a real world example, with actual settings used and known to work), including the settings of the TFTP server, some details of the OS/image booted through PXE and the like?
Even if you do not trust your English (in which I can see no problems, BTW ) it would be useful, as I could try and "fill the blanks" and "pass" it to diddy so that he can edit it in "real English" and add to the guide a complete set of instructions.
I see bits and pieces of the process, here and there, on the board and on the grub4dos readme_grub4dos.txt but I am failing to catch the thing in its entirety.
jaclaz
#15
Posted 14 November 2008 - 03:38 AM
Thanks. (BTW: The word "noobish" is hard to understand. I googled it for a long time. Finally got it.)
My answers to your questions:
1) about using grldr.mbr to load grub4dos. I think grldr.mbr just like a boot sector of grldr as well as bootsect.dos to IO.SYS(MS-DOS). and in some situation, user want grldr has customized name such as mygrldr, foo.ldr ... etc. then he can use grubinst to edit grldr.mbr to do this:
grubinst -b=mygrldr -o grldr.mbr
also, you can use :
grubinst -e -b=mygrldr grldr ren grldr mygrldr copy mygrldr c:\ echo c:\mygrldr="grub4dos" >> c:\boot.inisimilar way to customized the grldr name.
grldr.mbr needn't have to put in drives root directory. Also, some one want to load grub4dos under NT and Vista in the same way. then using grldr.mbr is the only way.
2) I think you want me give the steps to setup a PXE server and use grldr as the boot file. ok, following:
PXE server = DHCP Server + TFTP Server.
How to setup DHCP Server and TFTP Server, there are many documents on the internet, just google it.
DHCP Server settings for PXE:
Option:066(boot server) = IP address of the TFTP Server.
Option:067(boot file) = grldr
TFTP Server settings for PXE:
suppose the TFTPServer root is: c:\tftproot, pxemenu.lst is the PXE boot menu for grub4dos.
copy grldr c:\tftproot copy grub.exe c:\tftproot md c:\tftproot\menu.lst copy pxemenu.lst c:\tftproot\menu.lst\default copy memdisk.gz c:\tftproot copy pxelinux.0 c:\tftproot
then setup PXE Server done!
You can simply use TFTPD32(who include DHCP and TFTP Server in one program) in windows (NT) to setup a PXE Server for simple use or test.
you can downloads files above at: http://nufans.net/upload/pxe/tftpd32
TFTD32 Settings:
DHCP Server Settings of TFTD32:
When you setuped the PXE Server, you can try boot the computer from PXE(in a LAN with the PXE Server).
Hope this can help.
Climbing
#16
Posted 02 December 2008 - 01:23 PM
great piece of work!
Hard to get through because it's so comprehensive, but a great help in understanding and handling GRUB4DOS (which is a real great boot manager tool)!
Greetings
Norbert
#17
Posted 01 January 2009 - 08:14 PM
#18
Posted 03 January 2009 - 08:06 PM
#19
Posted 03 January 2009 - 09:29 PM
Load via Grub
Copy grub.exe to /boot/.
Add the following section in your /boot/grub/menu.lst file.
title Grub4dos root (hd1,0) kernel /boot/grub.exeChange the root (hd1,0) command to the right drive and partition for your PC.
#20
Posted 15 January 2009 - 06:05 PM
Cheers
R
#21
Posted 19 January 2009 - 10:24 PM
I might end up waiting for the release of grub4dos 0.4.4 Final to motivate me in updating the guide and eagerly look forward to the release - thanks for all of the hard work tinybit. Due to the explosion of grub4dos builds it's hard to keep track of all of the changes so it's likely to take a few weeks to make all of the additions - I've been using build 2008-5-14 for a while now and haven't been keeping up with any new releases so it's likely to take a week just to work through the changelog.
Thanks for the patience.
diddy
#22
Posted 29 January 2009 - 09:22 AM
unless i am mistaken (which is very probable), it might be helpful to include under esp. method 6 the note that the grldr file should, in order to be found by grub4dos stage1 in mbr, not be placed on an ntfs partition but may e.g. reside in the root of any fat16/32 partition. but note that this might be wrong and only not work for me.
#23
Posted 29 January 2009 - 10:08 AM
the tutorial is really great! thank you all a lot!
unless i am mistaken (which is very probable), it might be helpful to include under esp. method 6 the note that the grldr file should, in order to be found by grub4dos stage1 in mbr, not be placed on an ntfs partition but may e.g. reside in the root of any fat16/32 partition. but note that this might be wrong and only not work for me.
grldr placed in NTFS partition works perfectly, AFAIK.
You may want to start a new thread detailing the problem you are having.
jaclaz
#24
Posted 29 January 2009 - 12:04 PM
#25
Posted 09 February 2009 - 06:15 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users