LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot boot Hiren's Boot from an ISO on ext3? (http://www.linuxquestions.org/questions/linux-software-2/cannot-boot-hirens-boot-from-an-iso-on-ext3-871370/)

quanta 03-27-2011 10:57 PM

Cannot boot Hiren's Boot from an ISO on ext3?
 
Hi,

I want to boot Hiren's Boot CD from an ISO file on HDD. Under Windows, I put the ISO file into C: drive, use grub4dos and configure something like this:
Code:

title Hiren's Boot 9.8 map chainloader
find --set-root /hiren98.iso
map (hd0,0)/hiren98.iso (0xff) || map --mem (hd0,0)/hiren98.iso (0xff)
map --hook
chainloader (0xff)
boot

and it works fine.

But under Gentoo, put the ISO file into / and try 2 different ways
Code:

title Hiren's Boot 9.8 kernel initrd
root (hd0,0)
kernel /boot/grub/HBCD/memdisk quiet
initrd /boot/grub/HBCD/boot.gz /s

(tried to put the HBCD folder on both of / and /boot/grub/)
Code:

title Hiren's Boot 9.8 map chainloader
find --set-root /hiren98.iso
map (hd0,0)/hiren98.iso (0xff) || map --mem (hd0,0)/hiren98.iso (0xff)
map --hook
chainloader (0xff)
boot

and none of them works. With the first, I can boot into interactive menu, but whenever I choose an application (such as Acronis Disk Director Suite, Ghost, ...), I got the error:
Quote:

"HBCD folder not found! Do you want to try again?"
With the second, it gives me the "Error 15: file not found" at the `find` command, although I can found it without --set-root:
Code:

grub> find /hiren98.iso
(hd0,0)

If I bypass the `find` command, I got the other error with `map --hook` command:
Quote:

ERROR 11: Unrecognized device string
Does Hiren's works with ext3 partition? Is there any different between GRUB4DOS and GNU GRUB?

jefro 03-28-2011 04:04 PM

Grub and Grub4dos may have some differences. Dunno which grub you have and how it was compiled so I can't even guess.

You could load grub4dos from grub and do it that way I guess.


See this for more clues. http://ubuntuforums.org/showthread.php?t=1549847

quanta 03-28-2011 11:32 PM

Quote:

Originally Posted by jefro (Post 4306779)
You could load grub4dos from grub and do it that way I guess.

Oh, why didn't I think of that! Follow your suggestion, I solved it by the steps below:

- download grub4dos and extract it
- create grub4dos folder in /boot/grub
- copy grub.exe from above extracted folder to /boot/grub/grub4dos
- add an entry into /boot/grub/menu.lst:
Code:

title Hiren's Boot CD 9.8
root (hd0,0)
kernel /boot/grub/grub4dos/grub.exe --config-file="find --set-root /hiren98.iso; map /hiren98.iso (0xff) || map --mem /hiren98.iso (0xff); map --hook; chainloader (0xff); boot"

One more thing: at the first time, I also copy the menu.lst to /boot/grub/grub4dos and passing to --config-file but it didn't work. Don't know why.

jefro 03-29-2011 03:19 PM

Post this on new thread maybe to get others input.

One more thing: at the first time, I also copy the menu.lst to /boot/grub/grub4dos and passing to --config-file but it didn't work. Don't know why.


All times are GMT -5. The time now is 07:43 PM.