[讨论]grub2 不能引导软盘img镜像启动的问题?

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
fatality
帖子: 42
注册时间: 2006-04-18 9:18

[讨论]grub2 不能引导软盘img镜像启动的问题?

#1

帖子 fatality » 2009-10-30 10:21

比如要加载(hd1,1)根目录下的 a.img 镜像,先把 memdisk 从 memdisk.gz 中解压出来,用法是:
linux16 (hd1,1)/memdisk #镜像文件超过2.88M要加上 c=* h=* s=*
initrd16 (hd1,1)/a.img
boot

但是可能有bug,在我这引导img镜像会导致死机。不知道大家是不是都这样?
如果是,英文好的朋友,不妨去官网反应一下。必竟,引导img镜像,是一项非常有用的功能。感谢!
fatality
帖子: 42
注册时间: 2006-04-18 9:18

Re: [讨论]grub2 不能引导软盘img镜像启动的问题?

#2

帖子 fatality » 2009-10-31 21:21

老外们也在讨论这个问题。转过来供大家参考一下。
From kimmik999999 at yahoo.co.uk Sun Oct 4 13:59:18 2009
From: kimmik999999 at yahoo.co.uk (Kim Mik)
Date: Sun, 4 Oct 2009 13:59:18 -0700 (PDT)
Subject: [hdt] Build a bootable floppy image which contains HDT
Message-ID: <696194.73255.qm@web24612.mail.ird.yahoo.com>

It is now possible to build a bootable floppy image which contains HDT,
with my patch applied to Erwans HDT branch:

http://git.zytor.com/?p=users/erwan/hdt ... b71218d871

Unpack the Syslinux archive and build whole Syslinux first,
then cd to ./com32/hdt/ and make hdt.img

$ make
$ cd ./com32/hdt/
$ make hdt.img

Now you have a 2.88 MB floppy image which contains HDT (hdt.img),
which you can use to boot with MEMDISK or Grub4Dos floppy emulation.

MEMDISK:
========

LABEL hdtfloppy
LINUX memdisk
INITRD hdt.img

Grub4Dos floppy emulation:
==========================

title Hardware Detection Tool
map --mem /hdt.img (fd0)
map --hook
root (fd0)
chainloader (fd0)+1


You can also compress hdt.img with gzip (hdt.img.gz), which results
in a much smaller file (400KB compared to 2.88MB).

MEMDISK:
========

LABEL hdtfloppy
LINUX memdisk
INITRD hdt.img.gz

Grub4Dos floppy emulation:
==========================

title Hardware Detection Tool
map --mem /hdt.img.gz (fd0)
map --hook
root (fd0)
chainloader (fd0)+1




More info can be found in the README:

---------------------------
Creating a bootable floppy
---------------------------
To build a bootable HDT floppy image, you can do a "make hdt.img" call.
This will requires the mtools (http://mtools.linux.lu) to be installed.
The script will try to pick several files from your system :
- /lib/modules/`uname -r`/modules.alias
- /lib/modules/`uname -r`/modules.pcimap
- /usr/share/pci.ids or /usr/share/hwdata/pci.ids

This paths can be overrided with the following command line:
make MODULES_ALIAS_FILE=$(PWD)/floppy/modules.alias MODULES_PCIMAP_FILE=$(PWD)/floppy/modules.pcimap PCI_IDS_FILE=$(PWD)/floppy/pci.ids hdt.img

If your system doesn't have pci.ids, please download it from http://pciids.sourceforge.net/ and put it into the floppy/ directory.


Greetings,
- Gert Hulselmans





From kimmik999999 at yahoo.co.uk Sun Oct 4 14:09:56 2009
From: kimmik999999 at yahoo.co.uk (Kim Mik)
Date: Sun, 4 Oct 2009 14:09:56 -0700 (PDT)
Subject: [hdt] Build a bootable floppy image which contains HDT
Message-ID: <135749.51288.qm@web24603.mail.ird.yahoo.com>

It is now possible to build a bootable floppy image which contains HDT,
with my patch applied (with some help and modifications from Erwan) to Erwans HDT branch:

http://git.zytor.com/?p=users/erwan/hdt ... b71218d871

Unpack the Syslinux archive and build whole Syslinux first,
then cd to ./com32/hdt/ and make hdt.img

$ make
$ cd ./com32/hdt/
$ make hdt.img

Now you have a 2.88 MB floppy image which contains HDT (hdt.img),
which you can use to boot with MEMDISK or Grub4Dos floppy emulation.

MEMDISK:
========

LABEL hdtfloppy
LINUX memdisk
INITRD hdt.img

Grub4Dos floppy emulation:
==========================

title Hardware Detection Tool
map --mem /hdt.img (fd0)
map --hook
root (fd0)
chainloader (fd0)+1


You can also compress hdt.img with gzip (hdt.img.gz), which results
in a much smaller file (400KB compared to 2.88MB).

MEMDISK:
========

LABEL hdtfloppy
LINUX memdisk
INITRD hdt.img.gz

Grub4Dos floppy emulation:
==========================

title Hardware Detection Tool
map --mem /hdt.img.gz (fd0)
map --hook
root (fd0)
chainloader (fd0)+1




More info can be found in the README:

---------------------------
Creating a bootable floppy
---------------------------
To build a bootable HDT floppy image, you can do a "make hdt.img" call.
This will requires the mtools (http://mtools.linux.lu) to be installed.
The script will try to pick several files from your system :
- /lib/modules/`uname -r`/modules.alias
- /lib/modules/`uname -r`/modules.pcimap
- /usr/share/pci.ids or /usr/share/hwdata/pci.ids

This paths can be overrided with the following command line:
make MODULES_ALIAS_FILE=$(PWD)/floppy/modules.alias MODULES_PCIMAP_FILE=$(PWD)/floppy/modules.pcimap PCI_IDS_FILE=$(PWD)/floppy/pci.ids hdt.img

If your system doesn't have pci.ids, please download it from http://pciids.sourceforge.net/ and put it into the floppy/ directory.


Greetings,
- Gert Hulselmans





From erwan at seanodes.com Tue Oct 27 14:37:34 2009
From: erwan at seanodes.com (Erwan)
Date: Tue, 27 Oct 2009 22:37:34 +0100
Subject: [hdt] HDT 0.3.5-pre1
Message-ID: <4AE7681E.1000709@seanodes.com>

As result of a long work of Pierre, we are now on the track of releasing
HDT-0.3.5.

This -pre1 release includes new features that needs to be tested widely
to insure that we didn't introduced new bugs.
As a menu, we have:

- bootloader detection
In the disk menu, the "show disks" command reports the detected bootloader.

- Cmenu now uses the libansi
This improves the rendering and allow serial output.
Note that minicom doesn't seems to render correctly the ansi codes.

Speaking about the code itself, lots of cleanup to avoid gcc warnings.

To test this release you have 3 options :
Booting the com32 module on Syslinux 3.83 :
http://www.hdt-project.org/trac/raw-att ... 5_pre1.c32
Booting the 2.88MB floppy image:
http://www.hdt-project.org/trac/raw-att ... 5-pre1.img
Booting the ISO:
http://www.hdt-project.org/trac/raw-att ... 5-pre1.iso

Feel free to report any bug report/idea/comments !

PS: We've been opening a #hdt irc channel on the freenode network to
facilitate hdt discussions.
PS2: All Greetings goes to Pierre for his wonderful work on HDT.


From joydeep at infoservices.in Tue Oct 27 21:41:55 2009
From: joydeep at infoservices.in (J. Bakshi)
Date: Wed, 28 Oct 2009 10:11:55 +0530
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE7681E.1000709@seanodes.com>
References: <4AE7681E.1000709@seanodes.com>
Message-ID: <4AE7CB93.2030204@infoservices.in>

Erwan wrote:
> As result of a long work of Pierre, we are now on the track of
> releasing HDT-0.3.5.


This is a very good news indeed. Can I use it within grub2. My pendrive
already has grub2 bootloader and I like to include in my tool collection
in my pendrive.
Please enlighten me.

Thanks


From erwan at seanodes.com Wed Oct 28 01:39:36 2009
From: erwan at seanodes.com (Erwan Velu)
Date: Wed, 28 Oct 2009 09:39:36 +0100
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE7CB93.2030204@infoservices.in>
References: <4AE7681E.1000709@seanodes.com> <4AE7CB93.2030204@infoservices.in>
Message-ID: <4AE80348.5050208@seanodes.com>

J. Bakshi a ?crit :
> [...]
> This is a very good news indeed. Can I use it within grub2. My pendrive
> already has grub2 bootloader and I like to include in my tool collection
> in my pendrive.
> Please enlighten me.
>
The easiest way to achieve that is to boot the 2.88MB floppy image while
booting memdisk (from syslinux) as the Kernel.
That's more or less what Gert is doing on UBCD IIRC.

Erwan,


From joydeep at infoservices.in Wed Oct 28 01:56:44 2009
From: joydeep at infoservices.in (J. Bakshi)
Date: Wed, 28 Oct 2009 14:26:44 +0530
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE80348.5050208@seanodes.com>
References: <4AE7681E.1000709@seanodes.com> <4AE7CB93.2030204@infoservices.in>
<4AE80348.5050208@seanodes.com>
Message-ID: <4AE8074C.5030504@infoservices.in>

Erwan Velu wrote:
> J. Bakshi a ?crit :
>> [...]
>> This is a very good news indeed. Can I use it within grub2. My pendrive
>> already has grub2 bootloader and I like to include in my tool collection
>> in my pendrive.
>> Please enlighten me.
>>
> The easiest way to achieve that is to boot the 2.88MB floppy image
> while booting memdisk (from syslinux) as the Kernel.
> That's more or less what Gert is doing on UBCD IIRC.
>

Thanks Erwan,

Grub2 can boot floppy image too. Does it need the memdisk too ?
Please let me know.



From erwan at seanodes.com Wed Oct 28 02:01:15 2009
From: erwan at seanodes.com (Erwan Velu)
Date: Wed, 28 Oct 2009 10:01:15 +0100
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE8074C.5030504@infoservices.in>
References: <4AE7681E.1000709@seanodes.com> <4AE7CB93.2030204@infoservices.in>
<4AE80348.5050208@seanodes.com> <4AE8074C.5030504@infoservices.in>
Message-ID: <4AE8085B.1040901@seanodes.com>

J. Bakshi a ?crit :
> [...]
> Thanks Erwan,
>
> Grub2 can boot floppy image too. Does it need the memdisk too ?
> Please let me know
I never played with grub2 so if it can load floppies, you don't need
memdisk ;)
Don't hesitate to give us the feedback of your grub2 experiments.

Erwan,


From joydeep at infoservices.in Wed Oct 28 02:13:11 2009
From: joydeep at infoservices.in (J. Bakshi)
Date: Wed, 28 Oct 2009 14:43:11 +0530
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE8085B.1040901@seanodes.com>
References: <4AE7681E.1000709@seanodes.com> <4AE7CB93.2030204@infoservices.in>
<4AE80348.5050208@seanodes.com> <4AE8074C.5030504@infoservices.in>
<4AE8085B.1040901@seanodes.com>
Message-ID: <4AE80B27.8000104@infoservices.in>

Erwan Velu wrote:
> J. Bakshi a ?crit :
>> [...]
>> Thanks Erwan,
>>
>> Grub2 can boot floppy image too. Does it need the memdisk too ?
>> Please let me know
> I never played with grub2 so if it can load floppies, you don't need
> memdisk ;)
> Don't hesitate to give us the feedback of your grub2 experiments.
>
> Erwan,
>

Definitely :-)


From joydeep at infoservices.in Wed Oct 28 02:31:04 2009
From: joydeep at infoservices.in (J. Bakshi)
Date: Wed, 28 Oct 2009 15:01:04 +0530
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE80B27.8000104@infoservices.in>
References: <4AE7681E.1000709@seanodes.com>
<4AE7CB93.2030204@infoservices.in> <4AE80348.5050208@seanodes.com>
<4AE8074C.5030504@infoservices.in> <4AE8085B.1040901@seanodes.com>
<4AE80B27.8000104@infoservices.in>
Message-ID: <4AE80F58.4010209@infoservices.in>

J. Bakshi wrote:
> Erwan Velu wrote:
>
>> J. Bakshi a ?crit :
>>
>>> [...]
>>> Thanks Erwan,
>>>
>>> Grub2 can boot floppy image too. Does it need the memdisk too ?
>>> Please let me know
>>>
>> I never played with grub2 so if it can load floppies, you don't need
>> memdisk ;)
>> Don't hesitate to give us the feedback of your grub2 experiments.
>>
>> Erwan,
>>
>>
>
> Definitely :-)
>
>

Forgot to ask... where can I get the floppy image of HDT ?
Also like to know the append-able kernel config line.

thanks


From joydeep at infoservices.in Wed Oct 28 02:51:34 2009
From: joydeep at infoservices.in (J. Bakshi)
Date: Wed, 28 Oct 2009 15:21:34 +0530
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE80F58.4010209@infoservices.in>
References: <4AE7681E.1000709@seanodes.com> <4AE7CB93.2030204@infoservices.in> <4AE80348.5050208@seanodes.com> <4AE8074C.5030504@infoservices.in> <4AE8085B.1040901@seanodes.com> <4AE80B27.8000104@infoservices.in>
<4AE80F58.4010209@infoservices.in>
Message-ID: <4AE81426.1060609@infoservices.in>

J. Bakshi wrote:
> J. Bakshi wrote:
>
>> Erwan Velu wrote:
>>
>>
>>> J. Bakshi a ?crit :
>>>
>>>
>>>> [...]
>>>> Thanks Erwan,
>>>>
>>>> Grub2 can boot floppy image too. Does it need the memdisk too ?
>>>> Please let me know
>>>>
>>>>
>>> I never played with grub2 so if it can load floppies, you don't need
>>> memdisk ;)
>>> Don't hesitate to give us the feedback of your grub2 experiments.
>>>
>>> Erwan,
>>>
>>>
>>>
>> Definitely :-)
>>
>>
>>
>
> Forgot to ask... where can I get the floppy image of HDT ?
> Also like to know the append-able kernel config line.
>
> thanks
>
>

Ok got the image. I have mounted it as loopback and fine these files

hdt.c32
ldlinux.sys
modules.alias
modules.pcimap
pci.ids
syslinux.cfg

Which one in the above is the kernel and initrd image ?



From erwan at seanodes.com Wed Oct 28 02:51:47 2009
From: erwan at seanodes.com (Erwan Velu)
Date: Wed, 28 Oct 2009 10:51:47 +0100
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE80F58.4010209@infoservices.in>
References: <4AE7681E.1000709@seanodes.com>
<4AE7CB93.2030204@infoservices.in> <4AE80348.5050208@seanodes.com>
<4AE8074C.5030504@infoservices.in> <4AE8085B.1040901@seanodes.com>
<4AE80B27.8000104@infoservices.in>
<4AE80F58.4010209@infoservices.in>
Message-ID: <4AE81433.5070802@seanodes.com>

J. Bakshi a ?crit :
> Forgot to ask... where can I get the floppy image of HDT ?
> Also like to know the append-able kernel config line.
>
That was in the original post of this thread ;)
http://www.hdt-project.org/trac/raw-att ... 5-pre1.img


I don't really know about grub2.

What I found on the web is something like :

menuentry "HDT" {
linux /memdisk
initrd /hdt-0.3.5-pre1.img

}

--
Erwan Velu
Pre-Sales Engineer
Seanodes
http://www.seanodes.com
+33 (0)1 41 22 13 83


From erwan at seanodes.com Wed Oct 28 13:16:35 2009
From: erwan at seanodes.com (Erwan)
Date: Wed, 28 Oct 2009 21:16:35 +0100
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE81433.5070802@seanodes.com>
References: <4AE7681E.1000709@seanodes.com> <4AE7CB93.2030204@infoservices.in> <4AE80348.5050208@seanodes.com> <4AE8074C.5030504@infoservices.in> <4AE8085B.1040901@seanodes.com> <4AE80B27.8000104@infoservices.in> <4AE80F58.4010209@infoservices.in>
<4AE81433.5070802@seanodes.com>
Message-ID: <4AE8A6A3.3060104@seanodes.com>

Erwan Velu a ?crit :
> [...]
> What I found on the web is something like :
>
> menuentry "HDT" {
> linux /memdisk
> initrd /hdt-0.3.5-pre1.img
>
> }
>
Seems that we need to use linux16 instead of linux.

Erwan,


From kimmik999999 at yahoo.co.uk Wed Oct 28 14:43:23 2009
From: kimmik999999 at yahoo.co.uk (Kim Mik)
Date: Wed, 28 Oct 2009 21:43:23 +0000 (GMT)
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE8A6A3.3060104@seanodes.com>
References: <4AE7681E.1000709@seanodes.com> <4AE7CB93.2030204@infoservices.in>
<4AE80348.5050208@seanodes.com> <4AE8074C.5030504@infoservices.in>
<4AE8085B.1040901@seanodes.com> <4AE80B27.8000104@infoservices.in>
<4AE80F58.4010209@infoservices.in>
<4AE81433.5070802@seanodes.com> <4AE8A6A3.3060104@seanodes.com>
Message-ID: <213944.20936.qm@web24612.mail.ird.yahoo.com>

> From: Erwan <erwan at seanodes.com>
> To: J. Bakshi <joydeep at infoservices.in>
> Cc: hdt at zytor.com
> Sent: Wednesday, 28 October, 2009 21:16:35
> Subject: Re: [hdt] HDT 0.3.5-pre1
>
> Erwan Velu a ?crit :
> > [...]
> > What I found on the web is something like :
> >
> > menuentry "HDT" {
> > linux /memdisk
> > initrd /hdt-0.3.5-pre1.img
> >
> > }
> >
> Seems that we need to use linux16 instead of linux.
>
> Erwan,
>

Try:
menuentry "HDT" {
linux16 /memdisk
initrd16 /hdt-0.3.5-pre1.img
}

Got it from:
http://lists.gnu.org/archive/html/bug-g ... 00019.html

MEMDISK isn't a real linux kernel and doesn't go to 32-bit mode in the same way
as the linux kernel.

When you use linux in grub2, it won't run the 16 bit code of the linux kernel,
which will set the CPU mode to 32 bit again (so grub2 should be a bit faster),
like grub and syslinux did/do.

- Gert Hulselmans





From joydeep at infoservices.in Thu Oct 29 01:46:25 2009
From: joydeep at infoservices.in (J. Bakshi)
Date: Thu, 29 Oct 2009 14:16:25 +0530
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <213944.20936.qm@web24612.mail.ird.yahoo.com>
References: <4AE7681E.1000709@seanodes.com>
<4AE7CB93.2030204@infoservices.in> <4AE80348.5050208@seanodes.com>
<4AE8074C.5030504@infoservices.in> <4AE8085B.1040901@seanodes.com>
<4AE80B27.8000104@infoservices.in> <4AE80F58.4010209@infoservices.in> <4AE81433.5070802@seanodes.com>
<4AE8A6A3.3060104@seanodes.com>
<213944.20936.qm@web24612.mail.ird.yahoo.com>
Message-ID: <4AE95661.7000209@infoservices.in>

Kim Mik wrote:
>> From: Erwan <erwan at seanodes.com>
>> To: J. Bakshi <joydeep at infoservices.in>
>> Cc: hdt at zytor.com
>> Sent: Wednesday, 28 October, 2009 21:16:35
>> Subject: Re: [hdt] HDT 0.3.5-pre1
>>
>> Erwan Velu a ?crit :
>>
>>> [...]
>>> What I found on the web is something like :
>>>
>>> menuentry "HDT" {
>>> linux /memdisk
>>> initrd /hdt-0.3.5-pre1.img
>>>
>>> }
>>>
>>>
>> Seems that we need to use linux16 instead of linux.
>>
>> Erwan,
>>
>>
>
> Try:
> menuentry "HDT" {
> linux16 /memdisk
> initrd16 /hdt-0.3.5-pre1.img
> }
>
>

Yes, it needs 16 bit and I have tested here; it is working :-) Thanks Kim.

Though earlier I tried to exploit the native loopback feature of grub-2.
I used

menuentry "HDT"
{
loopback loop (hd0,2)/hdt-0.3.5-pre1.img
linux16 /memdisk
initrd16 (loop)/hdt.c32 modules_pcimap=modules.pcimap
modules_alias=modules.alias pciids=pci.ids
}

It did not work.

Thanks


> Got it from:
> http://lists.gnu.org/archive/html/bug-g ... 00019.html
>
> MEMDISK isn't a real linux kernel and doesn't go to 32-bit mode in the same way
> as the linux kernel.
>
> When you use linux in grub2, it won't run the 16 bit code of the linux kernel,
> which will set the CPU mode to 32 bit again (so grub2 should be a bit faster),
> like grub and syslinux did/do.
>
> - Gert Hulselmans
>
>
>
>
> _______________________________________________
> HDT mailing list
> HDT at zytor.com
> http://www.zytor.com/mailman/listinfo/hdt
>
>


From erwan at seanodes.com Thu Oct 29 01:58:00 2009
From: erwan at seanodes.com (Erwan Velu)
Date: Thu, 29 Oct 2009 09:58:00 +0100
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE95661.7000209@infoservices.in>
References: <4AE7681E.1000709@seanodes.com> <4AE7CB93.2030204@infoservices.in> <4AE80348.5050208@seanodes.com> <4AE8074C.5030504@infoservices.in> <4AE8085B.1040901@seanodes.com> <4AE80B27.8000104@infoservices.in> <4AE80F58.4010209@infoservices.in> <4AE81433.5070802@seanodes.com> <4AE8A6A3.3060104@seanodes.com> <213944.20936.qm@web24612.mail.ird.yahoo.com>
<4AE95661.7000209@infoservices.in>
Message-ID: <4AE95918.1050202@seanodes.com>

J. Bakshi a ?crit :
> Yes, it needs 16 bit and I have tested here; it is working :-) Thanks Kim.
>
Cool, great news !
> Though earlier I tried to exploit the native loopback feature of grub-2.
> I used
>
> menuentry "HDT"
> {
> loopback loop (hd0,2)/hdt-0.3.5-pre1.img
> linux16 /memdisk
> initrd16 (loop)/hdt.c32 modules_pcimap=modules.pcimap
> modules_alias=modules.alias pciids=pci.ids
> }
>
> It did not work.
>
This syntax isn't valid for me. Memdisk can't boot hdt.c32 directly.
HDT requires syslinux to be loaded as bootloader. That's why we do
create ISO/floppy images.


From joydeep at infoservices.in Thu Oct 29 02:09:39 2009
From: joydeep at infoservices.in (J. Bakshi)
Date: Thu, 29 Oct 2009 14:39:39 +0530
Subject: [hdt] HDT 0.3.5-pre1
In-Reply-To: <4AE95918.1050202@seanodes.com>
References: <4AE7681E.1000709@seanodes.com> <4AE7CB93.2030204@infoservices.in> <4AE80348.5050208@seanodes.com> <4AE8074C.5030504@infoservices.in> <4AE8085B.1040901@seanodes.com> <4AE80B27.8000104@infoservices.in> <4AE80F58.4010209@infoservices.in> <4AE81433.5070802@seanodes.com> <4AE8A6A3.3060104@seanodes.com> <213944.20936.qm@web24612.mail.ird.yahoo.com>
<4AE95661.7000209@infoservices.in> <4AE95918.1050202@seanodes.com>
Message-ID: <4AE95BD3.4030707@infoservices.in>

Erwan Velu wrote:
> J. Bakshi a ?crit :
>> Yes, it needs 16 bit and I have tested here; it is working :-)
>> Thanks Kim.
>>
> Cool, great news !
>> Though earlier I tried to exploit the native loopback feature of grub-2.
>> I used
>>
>> menuentry "HDT"
>> {
>> loopback loop (hd0,2)/hdt-0.3.5-pre1.img
>> linux16 /memdisk
>> initrd16 (loop)/hdt.c32 modules_pcimap=modules.pcimap
>> modules_alias=modules.alias pciids=pci.ids
>> }
>>
>> It did not work.
>>
> This syntax isn't valid for me. Memdisk can't boot hdt.c32 directly.
> HDT requires syslinux to be loaded as bootloader. That's why we do
> create ISO/floppy images.
>
>


One additional feedback which I got from grub2 list. hdt.c32 is
founded over syslinux. Hence calling hdt.c32 module directly from grub2
will never work until grub2 satisfy the required environment for the
module. Hence not loopback but booting the image with memdisk is the
solution.
Thanks you all. Now I have hdt in my tool-chain collection housed in my
pendrive which is powered by grub2 :-) I don't need to boot a complete
linux distro to fireup lshw or other tool ; hdt is doing rocks


回复