启动讨论 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”
系统显示出错
请问是怎么回事
-
jjbin
- 帖子: 120
- 注册时间: 2008-08-05 11:09
#5
帖子
由 jjbin » 2009-06-26 13:41
系统提示"ubuntu boot"的字样
然后就处于死机的状态
-
jjbin
- 帖子: 120
- 注册时间: 2008-08-05 11:09
#6
帖子
由 jjbin » 2009-06-26 13:43
shanliang8008 写了:root 〔hd0,1〕呢
加上就可以了,试试先!!
谢谢
-
jjbin
- 帖子: 120
- 注册时间: 2008-08-05 11:09
#7
帖子
由 jjbin » 2009-06-26 15:19
jjbin 写了:shanliang8008 写了:root 〔hd0,1〕呢
加上就可以了,试试先!!
谢谢
加上这个选项还是不行,不知道这个是什么意思。
我翻看过TELIUTE的这篇文章
viewtopic.php?f=139&t=167130
但是还是不明白其中说的 (hd0,1)这个是什么意思?
是不是linux对于硬盘的一种分区方式??
-
jjbin
- 帖子: 120
- 注册时间: 2008-08-05 11:09
#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
-
smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
#10
帖子
由 smallapple » 2009-06-26 15:35
root (hd0,1)去掉
find --set-root /ubuntu-9.04-desktop-i386(i).iso
改成
find --set-root /vmlinuz
-
jjbin
- 帖子: 120
- 注册时间: 2008-08-05 11:09
#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
#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
#14
帖子
由 smallapple » 2009-06-26 19:15
find --set-root /vmlinuz
找到放引导文件的分区并从该分区引导。
-
lxxinnn
- 帖子: 152
- 注册时间: 2008-11-01 6:50
#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文件只要放在任意一个盘的根目录下就行了。