装win7 后, 进不去Ubuntu后 在C盘里改了文件,win7进不去,Ubuntu页进不去,然后在xp下用 nt60/SYS 才出现win7的引导,现在win7出来了 Ubuntu依然没出来
没有进去livecd ,光盘里只有 试用Ubuntu而不改变计算机的内容 ,进去后在终端输入 grub 说grub没有安装,用apt-get install命令安装,需要联网,没装上
试过把grldr拷进C: 修改 boot.ini重启后选命令行,出现 grub>: 用root (hd0, y) y用tab键,出现 分区8是ext格式文件系统,9是unknown ,root (hd0,y)输入8 9 都不行,
c 盘有
boot.ini bootmgr bootsect.bark config.sys grldr grldr.mbr grub.cfg menu.lst ntldr 等等
Boot.ini 内容:
;
;Warning: Boot.ini is used on Windows XP and earlier operating systems.
;Warning: Use BCDEDIT.exe to modify Windows Vista boot options.
;
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /FASTDETECT /NOEXECUTE=ALWAYSOFF
c:\GRLDR="深度一键还原 GHOST V11.0"
C:\grldr="Ubuntu"
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 black/cyan yellow/cyan
timeout 30
default /default
title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root /ntldr
chainloader /ntldr
savedefault --wait=2
title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 2
find --set-root /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 3
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2
title find and boot Mandriva with menu.lst already installed
fallback 4
find --set-root /etc/mandriva-release
savedefault --wait=2
configfile /boot/grub/menu.lst
title find and boot Linux with menu.lst already installed
fallback 5
find --set-root /sbin/init
savedefault --wait=2
configfile /boot/grub/menu.lst
title commandline
savedefault --wait=2
commandline
title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
title back to dos
savedefault --wait=2
quit
title reboot
savedefault --wait=2
reboot
title halt
savedefault --wait=2
halt
title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/sbm.bin (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
title memdrive based on win98 partition (hd0,6)
map --mem (hd0,6)+1 (hd0)
# map --mem (hd0,0)/win98.gz (hd0)
map --hook
chainloader (hd0)+1
rootnoverify (hd0)
savedefault --wait=2
希望三个系统都能正常引导 ,期待高手帮我解决这个问题,
xp下装Ubuntu9.10, 又装了win7 后Ubuntu进不去了
-
- 帖子: 21
- 注册时间: 2009-11-06 7:53
-
- 帖子: 21
- 注册时间: 2009-11-06 7:53
Re: xp下装Ubuntu9.10, 又装了win7 后Ubuntu进不去了
谢谢帮顶啊,我前天才注册的,需要多学习啊
- onshoestring
- 论坛版主
- 帖子: 4666
- 注册时间: 2009-09-06 5:53
- ybbuge
- 帖子: 27
- 注册时间: 2008-05-25 9:53
Re: xp下装Ubuntu9.10, 又装了win7 后Ubuntu进不去了
* 从Live CD(如Ubuntu Live)启动。
* 打开终端。切换为超级用户(SuperUser)。(在Ubuntu中输入"sudo -i")
* 输入"grub",会出现GRUB命令提示。
* 输入"find /boot/grub/stage1"。会出现如同"(hd0)"样的结果,在我的电脑上是"(hd0,7)"。在下面的命令中使用您电脑中得到的结果。
* 输入"root (hd0,7)"。
* 输入"setup (hd0)"。这里是关键。将GRUB写入MBR;如果您想将GRUB写入您的Linux根分区的话,则您需要在逗号之后加上数字,形如"(hd0,7)"。
* 输入"quit"。
* 取出Live CD,重新启动电脑。
* 打开终端。切换为超级用户(SuperUser)。(在Ubuntu中输入"sudo -i")
* 输入"grub",会出现GRUB命令提示。
* 输入"find /boot/grub/stage1"。会出现如同"(hd0)"样的结果,在我的电脑上是"(hd0,7)"。在下面的命令中使用您电脑中得到的结果。
* 输入"root (hd0,7)"。
* 输入"setup (hd0)"。这里是关键。将GRUB写入MBR;如果您想将GRUB写入您的Linux根分区的话,则您需要在逗号之后加上数字,形如"(hd0,7)"。
* 输入"quit"。
* 取出Live CD,重新启动电脑。
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12