标题: GRUB 可否用于制作 windows 2K 3 in 1 启动光盘菜单 [打印本页] 作者: chengbing 时间: 2003-10-25 00:00 标题: GRUB 可否用于制作 windows 2K 3 in 1 启动光盘菜单
具体构想是:开机启动出现安装选项:
windows 2000 professional
windows 2000 server
windows 2000 advance server
三个选项,选择后开始相应的安装。
上述三个选项使用 GRUB for DOS 来实现,而不是使用 diskemu 来实现。作者: 不点 时间: 2003-10-27 00:00 Wengier 引导我看了这个帖子。但是,我似乎不是回复这个问题的合适人选。原因有:
我觉得 如果 GRUB for DOS 能加入光盘,就象加入到软盘的引导区和硬盘的 MBR 区一样,由于光盘是不可写的,我估计肯定实现方法一定是:对 ISO 文件进行处理,把 stage1 和 stage2 写入 ISO 文件的相关 sector , 再把 ISO 刻到光盘上就可以使用
GRUB 来直接引导光盘(即:非 IMG 方式)
On Sat, Jul 20, 2002 at 11:35:18PM +0900, umidori kamome wrote:
> Hey Yo Hoh, Thierry!
>
> > The problem is that the emulation doesn't survive
> > for Linux, that is,
> > what was for GRUB under El Torito emulation (hd0)
> > [the hard disk
> > emulation] is no more accessible to Linux, since
> > Linux doesn't use
> > directly the BIOS for that.
>
> Thank you for trying to solve this - but as far
> as i am concerned this does not help yet. (Or
> perhaps i got it wrong?)
> Isnt there a possibility of booting a cdrom like
> you would boot a floppy (chainloader (fd0)+1)?
If your BIOS allows this --- one of my machine BIOS does --- and you
insert at booting time an El Torito CD, but switch to "normal boot",
your "true" floppy becomes (fd1) and the El Torito floppy image becomes
(fd0). In this case, if, without using actually the El Torito entry,
your BIOS still "present" the El Torito image this should work. If not,
there is no code in GRUB at the moment to try to detect an emulated
image. I have made some patches for the support of El Torito, but mainly
devoted to allow GRUB to be used even on EL Torito images, keeping the
info that we are under emulation (patches are here:
http://alpha.polynum.org/misc/grub-0.92.a_cd+ef.diff.gz
).
> The thing is - i wanted to install an old win98
> (do not ask why ) onto (hd0,3) so grub seemed
> the way to go - remap partitions and boot the
> cdrom.
If and only if you "escape" the El Torito boot on initialization (floppy
or hard disk image found, 0 to boot it, escape for normal boot
blahblah...) AND the BIOS has still swapped the devices (the El Torito
images are still presented by the BIOS --- doing `root (' will list
the devices; if there are (fd0) (fd1) (hd0) and you have only one floppy
drive, then the floppy El Torito emulation is (fd0); if there are (fd0)
(hd0) (hd1) and you have only one hard disk, then (hd0) is the El Torito
hard disk emulation; if there are only the normal devices, you are out
of luck...), then hiding the partitions, swapping the disks (the correct
ones!) and chainloading first sector of the El Torito image should work.
But there is no magic in GRUB for that, everything relies on the BIOS
being smart.
>
> What are cdroms called under grub?
If the emulation works (GRUB relies on BIOS) a floppy image becomes
(fd0), a hard disk emulation becomes (hd0) [and real devices are
switches to (fd1) and (hd1) etc.]
>
> what is this "hard disk emulation"?
You can create an image that is either a floppy (1.20, 1.44 or 2.88 Mb),
or an image that is a virtual hard disk (no specific size limit --- well
the size of the CD...). There are some explanations in the comments of
the script `mkbimage':
http://corpus.polynum.org/admin/mkbimage
>
> i got "some" error-msg containing "cdrom" when
> installing grub - might that be the prob.
It's hard to answer without knowing what version of GRUB you use
(vanilla, patched? What version number?), but GRUB doesn't recognize
something as "cdrom". Under El Torito emulation, the images are like a
floppy drive, or a hard disk drive.