发表于 : 2008-07-09 12:17
Live cd到处都有买吧
还有能不能用个U盘做个类似的东西来启动??
呵呵,不要骂我没学会走路就想飞啊
还有能不能用个U盘做个类似的东西来启动??
呵呵,不要骂我没学会走路就想飞啊
选ubuntu linux以后,光标移动到某个ubuntu启动项,按e键进行编辑,把 root (hd0,x) 那一行删掉,然后按b启动ecco 写了:回2楼的
我改了重启后
出了2个选windows和ubuntu linux
我选到后者
出现到了原来没重做系统开机的界面
就 是 ubuntu8.04,kernel 2.6.24-19-gebetic
ubuntu8.04,kernel 2.6.24-19-gebetic(recovery mode)
ubuntu8.04,kernel 2.6.24-19-gebetic
ubuntu8.04,kernel 2.6.24-19-gebetic(recovery mode)
ubuntu8.04,memtest 86+
other system
windows XP
选哪个都进不去
说 file not found press any key to continue
不是第一个硬盘第一个分区的第一个扇区,而是MBR主引导扇区cheneylo 写了:Linux 带有系统引导程序,如 GRUB等等。它一般装在第一个硬盘(hd0)、第一个分区(hd,0)的第一个扇区上,所以要是我们把 XP 装在第一个分区上,那重装 XP, GRUB 就被破坏了,再也不能引导系统了。
要是遇上这样的情况就得重装 GRUB 了。别着急,Linux 不会那么容易就要重装的。那么下面介绍 GRUB 的安装方法:
代码: 全选
default 2
timeout 5
fontfile /boot/load/fonts.gz
splashimage /boot/load/background.xpm.gz
title ☆ 系统引导 ☆ 一键还原 ☆
clear
title ──────────────────────────────────
clear
#title Windows XP Professional
#map (hd0) (hd0)
#map (hd0) (hd1)
#root (hd0,0)
#chainloader (hd0,0)+1
#boot
#rootnoverify (hd0,0)
#chainloader +1
#clear
title Ubuntu 8.04.1, kernel 2.6.24-21-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=aa1eefcc-e237-4cf9-9881-331d7870f6d7 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.24-21-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=aa1eefcc-e237-4cf9-9881-331d7870f6d7 ro single
initrd /boot/initrd.img-2.6.24-21-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet
#title Windows XP Professional SP3
#root (hd0,0)
#savedefault
#chainloader +1
#title 启动本机硬盘上 VISTA 系统(如果存在)
#find --set-root /bootmgr
#chainloader /bootmgr
clear
title ──────────────────────────────────
clear
title 启动 一键还原 Ghost v11.0
map --mem /boot/load/ghost.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title ──────────────────────────────────
clear
#title 从第二硬盘启动系统
#fallback 6
#root (hd0,1)
#chainloader +1
title 从光驱启动系统
cdrom --init
map --hook
chainloader (cd0)
boot
title ──────────────────────────────────
clear
title 重启计算机
reboot
clear
title 关闭计算机
halt
这个方法很不错的grahamgan 写了:如果你装了grub4dos的话其实还有更简单的办法。
先在win里随便装个能读写lin的分区的软件(这种软件应该不难找吧?google一下一大把)。
装了之后把lin的boot分区载入打开,找到menu.lst文件,把里面关于ubuntu启动的一段复制下来。
再打开C盘(如果你的win是装在C盘的话),显示所有隐藏文件,就会看到也有一个menu.lst文件。
把刚才复制的那一段粘贴到关于win启动的那一段下面保存退出,别把title那一句粘贴漏了,不然没这个选项了。
然后重启系统,不出意外就能看到lin的选项进去了。
如果你重装win时改动过分区,那么就得把粘贴过去的那一段中指定lin分区的数字作相应的改动。
最后奉上我的启动文件,里面有部分其实没用上:代码: 全选
default 2 timeout 5 fontfile /boot/load/fonts.gz splashimage /boot/load/background.xpm.gz title ☆ 系统引导 ☆ 一键还原 ☆ clear title ────────────────────────────────── clear #title Windows XP Professional #map (hd0) (hd0) #map (hd0) (hd1) #root (hd0,0) #chainloader (hd0,0)+1 #boot #rootnoverify (hd0,0) #chainloader +1 #clear title Ubuntu 8.04.1, kernel 2.6.24-21-generic root (hd0,2) kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=aa1eefcc-e237-4cf9-9881-331d7870f6d7 ro quiet splash locale=zh_CN initrd /boot/initrd.img-2.6.24-21-generic quiet title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode) root (hd0,2) kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=aa1eefcc-e237-4cf9-9881-331d7870f6d7 ro single initrd /boot/initrd.img-2.6.24-21-generic title Ubuntu 8.04.1, memtest86+ root (hd0,2) kernel /boot/memtest86+.bin quiet #title Windows XP Professional SP3 #root (hd0,0) #savedefault #chainloader +1 #title 启动本机硬盘上 VISTA 系统(如果存在) #find --set-root /bootmgr #chainloader /bootmgr clear title ────────────────────────────────── clear title 启动 一键还原 Ghost v11.0 map --mem /boot/load/ghost.img (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0) title ────────────────────────────────── clear #title 从第二硬盘启动系统 #fallback 6 #root (hd0,1) #chainloader +1 title 从光驱启动系统 cdrom --init map --hook chainloader (cd0) boot title ────────────────────────────────── clear title 重启计算机 reboot clear title 关闭计算机 halt
那就是没有调整了ecco 写了:我只是把c盘格式化重装的
其他的没动
它会不会自动调整我就不知道了啊
cheneylo 写了:原因嘛,XP在安装的时候是不会给我们提供系统引导程序安装的,Linux 带有系统引导程序,如 GRUB等等。它一般装在第一个硬盘(hd0)、第一个分区(hd,0)的第一个扇区上,所以要是我们把 XP 装在第一个分区上,那重装 XP, GRUB 就被破坏了,再也不能引导系统了。ecco 写了:现在开机直接进到了windows面了
grub for dos不知道怎么用啊
我是把2个系统装在一块硬盘上的
高手指教详细点
谢谢
要是遇上这样的情况就得重装 GRUB 了。别着急,Linux 不会那么容易就要重装的。那么下面介绍 GRUB 的安装方法:
第一种方法
1. 用Live CD启动
2. 打开一个终端,运行$sudo grub命令(这里可能需要等一会儿),你会看到'grub>'这样的提示符
3. 在提示符'grub>'后输入find /grub/stage1,你会得到一个运行结果,比如我的机子上结果是(hd0,5) (这个命令其实就是找出/boot所在分区)
4. 运行 grub>root (hd0,5) (这个位置要填上你机子上的运行结果)
5. 运行grub>setup (hd0) 出现几行提示文字,最后是“... succeeded” 修复成功!
6. 运行quit
7. 重启计算机,取出live CD
第二种、手动引导Linux,先进去再说
grub>root (hdX,Y)
#一般IDE和SATA硬盘都是hd0,Y就是你ubuntu系统所在的分区,D盘一般是5,你可以自己试多几次,
#反正不正确的话GRUB会提示的。下面的类似
grub>kernel (hdX,Y)/boot/vmlinuz-2.6.16
#不一定是vmlinuz-2.6.16,你问下跟你装同个版本的兄弟,/boot/下面的vmlinuz开头的文件名叫什么,
#我在办公室,没ubuntu,帮不了你
#下面的initrd.img-2.6.16也要根据情况更改,可能叫initrd.gz
grub>initrd (hdX,Y)/boot/initrd.img-2.6.16
grub>boot
#注意哦,上面的命令只能让你进入ubuntu,要彻底解决还是要重装grub,至于怎么重装,可以按照第一种方法,
#也可以进入ubuntu后直接装,至于怎么装,我还不懂,
#你可以看下grub的文档,或者google一下
//以上是我的机器里参数,各位可以根据自己的情况改一下。