Jump to content











Photo
* * * * - 2 votes

Grub4dos Guide/Tutorial


  • Please log in to reply
122 replies to this topic

#101 SodiumBenzoate

SodiumBenzoate
  • Members
  • 3 posts
  •  
    Canada

Posted 13 March 2012 - 08:57 PM

Hey guys,

I recently found Grub4Dos and I wanted to use it for managing the two operating systems that are required on a machine I am making.

Unfortunatly as soon as I select Grub4Dos from the primary boot menu, it returns the error:

<windows root>/system32/hal.dll The file is missing or corrupt. Install a copy of the file.

I have googled the problem and of all the results, the most likely problem I found was that my boot.ini file is wrong.
Except that when I boot into either of the 2 windows XP installs, they work.

My guess is that my menu.lst file is wrong, as I made a few changes to steamline the process for the user.

Here is the modified menu.lst:


color blue/green yellow/red white/magenta white/magenta

timeout 10

default 0



title Windows XP

root (hd0,0)

chainloader /ntldr



title Windows XP (TEST RIG)

root (hd0,1)

chainloader /ntldr



title commandline

commandline

password .12.98


Any insight into my error(s) would be greatly appreciated.

Thanks in advance
SB

#102 steve6375

steve6375

    Platinum Member

  • Developer
  • 6405 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 13 March 2012 - 09:26 PM

You seem to be using two partitions. So does the boot,ini of hd0,1 point to the 2nd partition?
How do you boot into each one when it works?

#103 SodiumBenzoate

SodiumBenzoate
  • Members
  • 3 posts
  •  
    Canada

Posted 13 March 2012 - 09:48 PM

Firstly, the second partition has no boot.ini file, but the boot.ini file in the primary partition has an entry for (hd0,1). (in addition to not having a boot.ini file, windows seems to have not installed any of the protected operating system files on the second partition...)

When I can access both "sides" is when I am using the NTLDR to choose the OS I want to boot.. When i choose Grub4Dos from the NTLDR menu is when the HAL.DLL error appears.

Thanks,
SB

#104 steve6375

steve6375

    Platinum Member

  • Developer
  • 6405 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 13 March 2012 - 10:04 PM

You are using ntldr on the 2nd partition, so won't it expect a boot.ini and boot files on the 2nd partition?
I don't quite understand why you are doing this if you can boot to either partition via boot.ini anyway?
I think to boot as you are trying, you need to install XP to the 2nd partition as a separate install by disabling/hiding the 1st ptn when you install the 2nd partition.
  • SodiumBenzoate likes this

#105 SodiumBenzoate

SodiumBenzoate
  • Members
  • 3 posts
  •  
    Canada

Posted 13 March 2012 - 10:15 PM

After reading your first reply, I was starting to think that this may be the case, the active XP partition interfering with the newer install.
I am primarily using Grub4dos because of the password protection on the OS selection menu, but at this point I think a password on the usedr account should be robust enough to deter students from trying to access the other OS.

Thank you for your help :-)

#106 stevesr0

stevesr0
  • Members
  • 4 posts
  •  
    United States

Posted 03 May 2012 - 06:45 AM

I have used grub4dos in booting a "frugal" linux distro installation on an ntfs partition which has win XP on it.

I used the method described on the LIN'N'WIN project webpage (http://www.icpug.org...p00-linnwin.htm)

This uses the grldr, and menu.lst, but not grub.exe. It calls for editing of the boot.ini file to add an entry to allow grldr to be executed.

I am planning to make a presentation on my experience with grub4dos and want to be able to explain the difference in grub4dos functionality when the grub.exe file itself is not installed.

Appreciate comments.

Thanks.

Steve

#107 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13301 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 03 May 2012 - 08:21 AM

I am planning to make a presentation on my experience with grub4dos and want to be able to explain the difference in grub4dos functionality when the grub.exe file itself is not installed.

I guess it will be difficult. :dubbio:
Grub.exe is NEVER "installed".
grldr and grub.exe are the "same" thing.
First one is compiled in such a way that it can be used as "stand-alone" (like with a bootsector directly invoking grldr) or chainloaded by the NTLDR through a BOOT.INI entry.
Second one is compiled in such a way that it is at the same time a DOS executable and a Linux kernel.
What can be "installed" is grldr.mbr which is a "portion" of the above two files that can be insatelle to the MBR (+a bunch of hidden sectors) and act as a replacement for the MBR, initiating the load of grldr bypassing any partittion/volume bootsector).
Due to the different way BOOTMGR chainloads files, you cannot chainload grldr (nor grub.exe) directly and you need to chainload grldr.mbr (which will then load grldr).
The link you provided is about one of the most basic usages of grub4dos, inserting it as an option in boot.ini in a "normally" booting 2K/XP sequence.

:cheers:
Wonko

#108 bee4u

bee4u

    Frequent Member

  • Advanced user
  • 172 posts
  •  
    United Kingdom

Posted 29 July 2012 - 04:04 AM

Hi diddy and ALL... when will be latest version fo the guide :" Grub4dos Guide " with new tips and upto dates will be available...;) :)

#109 steve6375

steve6375

    Platinum Member

  • Developer
  • 6405 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 29 July 2012 - 06:02 AM

I try to keep my site updated with the latest changes for the chenall build which is currently maintained and regularly updated, etc. See Tutorial #21, #71 and here.

#110 bee4u

bee4u

    Frequent Member

  • Advanced user
  • 172 posts
  •  
    United Kingdom

Posted 29 July 2012 - 02:00 PM

THX steve .. :) its good to know that Grub4dos Tutorial are updated and your doing nice job of maintaining it.. :)
i checked it... wonderful.. :clap:
i hope diddy too update his " Grub4dos Guide " so the Grub4dos community benefits from him ,you and all others doing great work to maintain it.... :1st: :) :)

#111 irjhamar

irjhamar
  • Members
  • 7 posts
  •  
    Hungary

Posted 25 June 2013 - 07:21 AM

Hi guys,

 

I want to setup a PC for running windows 7 completely from Ram. I successfully did it with XP but Win7 would be more convenient for me.

Obviously I would need at least 32 or 64 GB memory for this (I do not really want to hack it too much). This would cost quite a bit.

 

I just want to be sure that grub4dos would see this amount of memory to begin with....

 

Anyone tried this before?

 

Thanks in advance.

 

Csaba.



#112 dark2150

dark2150
  • Members
  • 1 posts
  •  
    United States

Posted 24 May 2015 - 07:57 AM

Hi!

Offline versions (chm,htm) of the guide from the original website are not avaible.

So here's a compleate epub.



#113 Zoso

Zoso

    Silver Member

  • Advanced user
  • 603 posts
  •  
    Isle of Man

Posted 24 May 2015 - 01:38 PM

Hi!
Offline versions (chm,htm) of the guide from the original website are not avaible.
So here's a compleate epub.



hopefully someone can fix the links, thanks for the notice, I checked them and indeed they result in error message.

but since this is your first post here, maybe also someone can verify your file too?

#114 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13301 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 24 May 2015 - 02:57 PM

Comeon guys :), it is just the link (which senselessly uses a stupid "dynamic" approach) that is invalid.

 

The files are available alright:

The .chm:

http://diddy.boot-la...rub4dos_chm.zip

The .htm:

http://diddy.boot-la...rub4dos_htm.zip

 

:duff:

Wonko



#115 steve6375

steve6375

    Platinum Member

  • Developer
  • 6405 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 24 May 2015 - 03:36 PM

This is more up to date (but it is translated from chinese)

http://www.rmprepusb...commands-primer



#116 tinybit

tinybit

    Gold Member

  • Developer
  • 1045 posts
  •  
    China

Posted 25 May 2015 - 07:07 AM

@steve6375

(cd0) first drive, equivalent to (hd32), --init created by cdrom
(cd1) a second optical drive, which is equivalent to (hd33), --init created by cdrom


(cd0) is not (hd32)
(cd1) is not (hd33)

In fact, (cdX)'es are drives created by the grub4dos builtin ATAPI cdrom driver (with command "cdrom --init").

whereas (hd32), (hd33),..., (0xFF) are usually a virtual cdrom drive created by a map command.

Also note that (cd) is the eltorito cdrom drive created by BIOS (during Power-On-Self-Test). It is usually the booted-up cdrom drive. It can also be a virtual cdrom drive that just booted up from.



#117 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 26 May 2015 - 06:30 PM

I'm sorry. I've been away from the forum for a very long time. Is there a way to transfer to the correct forum or just start a thread there?



#118 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13301 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 26 May 2015 - 06:52 PM

I'm sorry. I've been away from the forum for a very long time. Is there a way to transfer to the correct forum or just start a thread there?

Moved here:
http://reboot.pro/to...b4dos/?p=192822

:duff:
Wonko

#119 btreut

btreut
  • Members
  • 2 posts
  •  
    Germany

Posted 22 July 2016 - 03:01 PM

http://diddy.boot-land.net appears to be vanished, but the tutorial can be found at http://web.archive.o...os/Grub4dos.htm



#120 pollo

pollo
  • Members
  • 6 posts
  •  
    Belgium

Posted 22 July 2016 - 04:49 PM

http://diddy.boot-land.net appears to be vanished, but the tutorial can be found at http://web.archive.o...os/Grub4dos.htm

 

I could'nt download the html or the chm guide file from the web.archive.org , can somme one share that guides please and upload it in another server like mega or some where else.

 

thank you.



#121 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13301 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 22 July 2016 - 05:31 PM

I could'nt download the html or the chm guide file from the web.archive.org , can somme one share that guides please and upload it in another server like mega or some where else.

 

thank you.

HTML:
http://web.archive.o...rub4dos_htm.zip

 

CHM:

http://web.archive.o...rub4dos_chm.zip

 

:duff:

Wonko


  • tenno likes this

#122 pollo

pollo
  • Members
  • 6 posts
  •  
    Belgium

Posted 24 July 2016 - 10:14 AM

thank you wonko for the links.



#123 agni

agni

    Frequent Member

  • Tutorial Writer
  • 254 posts
  • Location:Bengaluru (Bangalore)
  •  
    India

Posted 02 January 2017 - 12:50 PM

I am planning to upload the html guide to github or host it under a subdomain on my site.

 

Diddy are you ok with that ? (Although it looks like Diddy has been away from these forums for a while )






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users