询问一下我的引导和启动配置有什么地方不错

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
jjbin
帖子: 120
注册时间: 2008-08-05 11:09

询问一下我的引导和启动配置有什么地方不错

#1

帖子 jjbin » 2009-06-26 5:00

在C盘根目录下下载四个文件
1.grldr-----从grub4dos中提取
2.menu.lst-----从grub4dos中提取
3.vmlinux------从ubuntu镜像中提取
4.initrd.gz-----从ubuntu镜像中提取

分别放在C盘根目录下
我根据这篇文章的说法
viewtopic.php?f=77&t=209800&hilit=initrd.gz
修改了menu.lst

在这个文件里面写入如下命令:
title Install Ubuntu
find --set-root /ubuntu-9.04-desktop-386i(1).iso
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-9.04-desktop-386i(1).iso locale=zh_CN.UTF-8\
initrd /initrd.gz
注:我是根据我下载的ubuntu镜像的文件名改的。

然后在boot.ini中增加一个选项
c:\grldr=grub
然后我的ubuntu iso文件放在d:的根目录下
版本:9.04
在顺利进入grub选择画面后选择最后一项“ubuntu”
系统显示出错
请问是怎么回事
1234qw
帖子: 389
注册时间: 2007-12-31 11:40

Re: 询问一下我的引导和启动配置有什么地方不错

#2

帖子 1234qw » 2009-06-26 8:26

顶上
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 询问一下我的引导和启动配置有什么地方不错

#3

帖子 smallapple » 2009-06-26 8:33

提供出错信息。不然不能判断。
头像
shanliang8008
帖子: 1362
注册时间: 2007-07-16 19:43
来自: tangshan

Re: 询问一下我的引导和启动配置有什么地方不错

#4

帖子 shanliang8008 » 2009-06-26 9:45

root 〔hd0,1〕呢
jjbin
帖子: 120
注册时间: 2008-08-05 11:09

Re: 询问一下我的引导和启动配置有什么地方不错

#5

帖子 jjbin » 2009-06-26 13:41

系统提示"ubuntu boot"的字样
然后就处于死机的状态
jjbin
帖子: 120
注册时间: 2008-08-05 11:09

Re: 询问一下我的引导和启动配置有什么地方不错

#6

帖子 jjbin » 2009-06-26 13:43

shanliang8008 写了:root 〔hd0,1〕呢

加上就可以了,试试先!!
谢谢
jjbin
帖子: 120
注册时间: 2008-08-05 11:09

Re: 询问一下我的引导和启动配置有什么地方不错

#7

帖子 jjbin » 2009-06-26 15:19

jjbin 写了:
shanliang8008 写了:root 〔hd0,1〕呢

加上就可以了,试试先!!
谢谢

加上这个选项还是不行,不知道这个是什么意思。
我翻看过TELIUTE的这篇文章
viewtopic.php?f=139&t=167130

但是还是不明白其中说的 (hd0,1)这个是什么意思?

是不是linux对于硬盘的一种分区方式?? :em20
jjbin
帖子: 120
注册时间: 2008-08-05 11:09

Re: 询问一下我的引导和启动配置有什么地方不错

#8

帖子 jjbin » 2009-06-26 15:20

下面是我menu.lst的编辑文档
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.

color blue/green yellow/red white/magenta white/magenta
timeout 30
default /default

title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root --ignore-floppies /ntldr
chainloader /ntldr
savedefault --wait=2

title find and load BOOTMGR of Windows VISTA
fallback 2
find --set-root --ignore-floppies /bootmgr
chainloader /bootmgr
savedefault --wait=2

title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 3
find --set-root --ignore-floppies /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2

title find and load IO.SYS of Windows 9x/Me
fallback 4
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2

title find and boot 0PE.ISO
fallback 5
find --set-root /0PE/0PE.ISO
map /0PE/0PE.ISO (0xff) || map --mem /0PE/0PE.ISO (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title find and boot MicroPE.ISO
fallback 6
find --set-root /boot/MicroPE.ISO
map /boot/MicroPE.ISO (0xff) || map --mem /boot/MicroPE.ISO (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title Parted Magic ISO
fallback 7
find --
set-root /pmagic.iso
map /pmagic.iso (0xff) || map --mem /pmagic.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title Ultimate Boot CD ISO
fallback 8
find --set-root /ubcd.iso
map /ubcd.iso (0xff) || map --mem /ubcd.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title commandline
commandline

title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)

title back to dos
quit

title reboot
reboot

title halt
halt

title MAXDOS.IMG
find --set-root --ignore-floppies /boot/MAXDOS.IMG
map --mem /boot/MAXDOS.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

title Ubuntu
root (hd0,1)
find --set-root /ubuntu-9.04-desktop-i386(i).iso
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-9.04-desktop-i386(i).iso
initrd /initrd.gz

头像
shanliang8008
帖子: 1362
注册时间: 2007-07-16 19:43
来自: tangshan

Re: 询问一下我的引导和启动配置有什么地方不错

#9

帖子 shanliang8008 » 2009-06-26 15:35

应该是0,0,在论坛里搜索UBUNTU起步,手机不好复制地址
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 询问一下我的引导和启动配置有什么地方不错

#10

帖子 smallapple » 2009-06-26 15:35

root (hd0,1)去掉
find --set-root /ubuntu-9.04-desktop-i386(i).iso
改成
find --set-root /vmlinuz
头像
shanliang8008
帖子: 1362
注册时间: 2007-07-16 19:43
来自: tangshan

Re: 询问一下我的引导和启动配置有什么地方不错

#11

帖子 shanliang8008 » 2009-06-26 15:40

viewtopic.php?f=48&t=204692 关于grub用法网上搜吧
jjbin
帖子: 120
注册时间: 2008-08-05 11:09

Re: 询问一下我的引导和启动配置有什么地方不错

#12

帖子 jjbin » 2009-06-26 16:56

smallapple 写了:root (hd0,1)去掉
find --set-root /ubuntu-9.04-desktop-i386(i).iso
改成
find --set-root /vmlinuz

vmlinuz 是一个什么文件??
jjbin
帖子: 120
注册时间: 2008-08-05 11:09

Re: 询问一下我的引导和启动配置有什么地方不错

#13

帖子 jjbin » 2009-06-26 17:26

smallapple 写了:root (hd0,1)去掉
find --set-root /ubuntu-9.04-desktop-i386(i).iso
改成
find --set-root /vmlinuz

照你的方法可以让vmlinux载入,进入busybox的引导shell下。
看来一个vmlinuz足够了。
请高人指点为什么??
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 询问一下我的引导和启动配置有什么地方不错

#14

帖子 smallapple » 2009-06-26 19:15

find --set-root /vmlinuz
找到放引导文件的分区并从该分区引导。
lxxinnn
帖子: 152
注册时间: 2008-11-01 6:50

Re: 询问一下我的引导和启动配置有什么地方不错

#15

帖子 lxxinnn » 2009-06-26 19:27

你的这个好象是用硬盘安装UBUNTU,下边的是我用硬盘安装UBUNTU的MENU.lst
title Install Ubuntu

root (hd0,0)

kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/ubuntu8.iso ro quiet splash locale=zh_CN.UTF-8

initrd (hd0,0)/initrd.gz

你自己看下 (hd0,0)表示从C盘开始引导,因为你把
3.vmlinux------从ubuntu镜像中提取
4.initrd.gz-----从ubuntu镜像中提取
这两个文件全放在C盘下了。
(HD0,1)好象不对,另外ISO文件只要放在任意一个盘的根目录下就行了。
回复