还是空的。smallapple 写了:你不是说 /etc/grub.d 是空的,把东西弄回去,再建一个完整的grub.cfg,不然不完整。yus253 写了:smallapple 写了:sudo apt-get install --reinstall grub-commonyus253 写了:/etc/grub.d,这个是空的!billbear 写了:不习惯或不放心 grub2 的,可以这样滚回 grub 0.97
进入安装好的系统,查看 grub 版本:
grub-install -v
1.9x 就是 grub2 了
删除 grub2 软件包:
sudo apt-get purge grub-pc
删除遗留的 grub2 文件
sudo rm /etc/default/grub
sudo rm -rf /etc/grub.d
sudo rm -rf /boot/grub
安装软件包 grub 0.97:
sudo apt-get install grub
可以再看一下现在的 grub 版本:
grub-install -v
安装 grub 0.97 到 mbr 或分区:
sudo grub-install /dev/sdX 或 sudo grub-install /dev/sdXn
X 和 n 要自定,比如 /dev/sda /dev/sda5 确定你知道这是怎么回事。
(注意如果 grub2 安装到了 mbr,这里务必将 grub 也安装到 mbr,否则 mbr 里的 grub2 不会被清除,并且无法引导)
生成 menu.lst:
sudo update-grub -y
安装完成后再
sudo update-grub
yus253@ubuntu:~$ sudo apt-get install --reinstall grub-common
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
共升级了 0 个软件包,新安装了 0 个软件包,共重新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
需要下载 994kB 的软件包。
解压缩后会消耗掉 0B 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://ubuntu.srt.cn karmic/main grub-common 1.97~beta4-1ubuntu3 [994kB]
下载 994kB,耗时 19 秒 (52.2kB/s)
(正在读取数据库 ... 系统当前总共安装有 131139 个文件和目录。)
正预备替换 grub-common 1.97~beta4-1ubuntu3 (使用 .../grub-common_1.97~beta4-1ubuntu3_i386.deb) ...
正在解压缩将用于更替的包文件 grub-common ...
正在处理用于 man-db 的触发器...
正在处理用于 install-info 的触发器...
正在处理用于 sreadahead 的触发器...
sreadahead will be reprofiled on next reboot
正在设置 grub-common (1.97~beta4-1ubuntu3) ...
yus253@ubuntu:~$ sudo update-grub
Generating grub.cfg ...
done
这是干什么?
你看看 /etc/grub.d 的东西回来没
HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
GRUB 是一个遵从Multiboot(多重启动)规范的启动管理程序。现在接触到的有3种,即GNU Grub Lagecy , GNU Grub2 和 Grub for dos(grub4dos)。
GNU GRUB Lagecy其实就是原来的 GNU GRUB 0.xx ,最新版是2005年发布的GNU GRUB 0.97。 目前已停止开发,并改名为 GNU GRUB Lagecy。
GNU GRUB2是第二代GRUB,它将取代原来的GNU GRUB(例如0.9x版),但目前还处于开发阶段,尚未发布正式版。
GNU GRUB Lagecy和GNU GRUB2都是 GNU 组织的项目。
GRUB for DOS(GRUB4DOS)是一个以 GNU GRUB 为基础的功能强大的引导器。它可以在 DOS 和 LINUX下运行,也可以通过其他引导器来运行,还可以作为MBR运行。GRUB4DOS内置了功能完善的 BIOS 级磁盘仿真。
我这么一更换,是不是就把那个vista系统更新给弄没了
GNU GRUB Lagecy其实就是原来的 GNU GRUB 0.xx ,最新版是2005年发布的GNU GRUB 0.97。 目前已停止开发,并改名为 GNU GRUB Lagecy。
GNU GRUB2是第二代GRUB,它将取代原来的GNU GRUB(例如0.9x版),但目前还处于开发阶段,尚未发布正式版。
GNU GRUB Lagecy和GNU GRUB2都是 GNU 组织的项目。
GRUB for DOS(GRUB4DOS)是一个以 GNU GRUB 为基础的功能强大的引导器。它可以在 DOS 和 LINUX下运行,也可以通过其他引导器来运行,还可以作为MBR运行。GRUB4DOS内置了功能完善的 BIOS 级磁盘仿真。
我这么一更换,是不是就把那个vista系统更新给弄没了
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
还是空的就怪了,/etc/grub.d 那几个文件是这个包内的。
你这个和vista的系统更新扯不上关系。
你这个和vista的系统更新扯不上关系。
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
在我原来的那个1.97BETA 4上还有VISTA系统还原的选项呢,现在应该没有了吧?/boot/grub下menu.lst里没它了,应该是当初WUBI安装时系统自己创建的,现在只是加入了2..6.31.14那个kernel。
/boot/grub下又多了一个文件(一共5个):
1、grubenv
内容:# GRUB Environment Block
#######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
2、menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=EC12782B1277F8C2 loop=/ubuntu/disks/root.disk ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=EC12782B1277F8C2
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-14-generic
uuid EC12782B1277F8C2
kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=EC12782B1277F8C2 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
title Ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode)
uuid EC12782B1277F8C2
kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=EC12782B1277F8C2 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.31-14-generic
title Ubuntu 9.10, memtest86+
uuid EC12782B1277F8C2
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
3、default
0
#
#
#
#
#
#
#
#
#
#
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this 的warning. Using `grub-set-default\' is
# strongly recommended.
4、device.map
(hd0) /dev/sda
5、grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
/boot/grub下又多了一个文件(一共5个):
1、grubenv
内容:# GRUB Environment Block
#######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
2、menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=EC12782B1277F8C2 loop=/ubuntu/disks/root.disk ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=EC12782B1277F8C2
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-14-generic
uuid EC12782B1277F8C2
kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=EC12782B1277F8C2 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
title Ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode)
uuid EC12782B1277F8C2
kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=EC12782B1277F8C2 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.31-14-generic
title Ubuntu 9.10, memtest86+
uuid EC12782B1277F8C2
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
3、default
0
#
#
#
#
#
#
#
#
#
#
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this 的warning. Using `grub-set-default\' is
# strongly recommended.
4、device.map
(hd0) /dev/sda
5、grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
smallapple 写了:还是空的就怪了,/etc/grub.d 那几个文件是这个包内的。
你这个和vista的系统更新扯不上关系。

The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
那里面应该是什么呀?smallapple 写了:你不是说 /etc/grub.d 是空的,把东西弄回去,再建一个完整的grub.cfg,不然不完整。yus253 写了:smallapple 写了:sudo apt-get install --reinstall grub-commonyus253 写了:/etc/grub.d,这个是空的!billbear 写了:不习惯或不放心 grub2 的,可以这样滚回 grub 0.97
进入安装好的系统,查看 grub 版本:
grub-install -v
1.9x 就是 grub2 了
删除 grub2 软件包:
sudo apt-get purge grub-pc
删除遗留的 grub2 文件
sudo rm /etc/default/grub
sudo rm -rf /etc/grub.d
sudo rm -rf /boot/grub
安装软件包 grub 0.97:
sudo apt-get install grub
可以再看一下现在的 grub 版本:
grub-install -v
安装 grub 0.97 到 mbr 或分区:
sudo grub-install /dev/sdX 或 sudo grub-install /dev/sdXn
X 和 n 要自定,比如 /dev/sda /dev/sda5 确定你知道这是怎么回事。
(注意如果 grub2 安装到了 mbr,这里务必将 grub 也安装到 mbr,否则 mbr 里的 grub2 不会被清除,并且无法引导)
生成 menu.lst:
sudo update-grub -y
安装完成后再
sudo update-grub
yus253@ubuntu:~$ sudo apt-get install --reinstall grub-common
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
共升级了 0 个软件包,新安装了 0 个软件包,共重新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
需要下载 994kB 的软件包。
解压缩后会消耗掉 0B 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://ubuntu.srt.cn karmic/main grub-common 1.97~beta4-1ubuntu3 [994kB]
下载 994kB,耗时 19 秒 (52.2kB/s)
(正在读取数据库 ... 系统当前总共安装有 131139 个文件和目录。)
正预备替换 grub-common 1.97~beta4-1ubuntu3 (使用 .../grub-common_1.97~beta4-1ubuntu3_i386.deb) ...
正在解压缩将用于更替的包文件 grub-common ...
正在处理用于 man-db 的触发器...
正在处理用于 install-info 的触发器...
正在处理用于 sreadahead 的触发器...
sreadahead will be reprofiled on next reboot
正在设置 grub-common (1.97~beta4-1ubuntu3) ...
yus253@ubuntu:~$ sudo update-grub
Generating grub.cfg ...
done
这是干什么?
你看看 /etc/grub.d 的东西回来没
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- snowtown86
- 帖子: 1239
- 注册时间: 2009-06-13 16:01
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
人都走了? 哪我就从起了?
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- AutoXBC
- 帖子: 1744
- 注册时间: 2007-10-23 12:54
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
分区和引导这类高危操作是不能搞 step by step 的,应该写的越难理解越好,让那些不是彻底明白的人根本无法操作,不然就是把人害了。
- czjl
- 帖子: 765
- 注册时间: 2008-07-28 10:02
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
要不再等等?熊和苹果翻书去了。 

- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
wubi安装的;本来里面也没有什么东西;删了从装了~ 

The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
/boot/grub下grub.cfg应该是什么样子的。
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
insmod ntfs
set root=(hd0,5)
search --no-floppy --fs-uuid --set ec12782b1277f8c2
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
insmod ntfs
set root=(hd0,5)
search --no-floppy --fs-uuid --set ec12782b1277f8c2
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 5ea8b680a8b6566d
chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sda2)" {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set 6c3672b53672803e
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
/host/ubuntu/disks/boot/grub地下应该是空的~
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
insmod ntfs
set root=(hd0,5)
search --no-floppy --fs-uuid --set ec12782b1277f8c2
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
insmod ntfs
set root=(hd0,5)
search --no-floppy --fs-uuid --set ec12782b1277f8c2
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 5ea8b680a8b6566d
chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sda2)" {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set 6c3672b53672803e
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
/host/ubuntu/disks/boot/grub地下应该是空的~
上次由 yus253 在 2009-11-07 1:28,总共编辑 1 次。
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
看样子grub本身和/host下的boot已经没有关系了,启动方式应该和正常安装的差不多。
/etc/grub.d与 /boot/grub是有联系的。
/etc/grub.d与 /boot/grub是有联系的。
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
billbear 写了:不习惯或不放心 grub2 的,可以这样滚回 grub 0.97
进入安装好的系统,查看 grub 版本:
grub-install -v
1.9x 就是 grub2 了
删除 grub2 软件包:
sudo apt-get purge grub-pc
删除遗留的 grub2 文件
sudo rm /etc/default/grub
sudo rm -rf /etc/grub.d
sudo rm -rf /boot/grub
安装软件包 grub 0.97:
sudo apt-get install grub
可以再看一下现在的 grub 版本:
grub-install -v
安装 grub 0.97 到 mbr 或分区:
sudo grub-install /dev/sdX 或 sudo grub-install /dev/sdXn
BBB-大熊哥发表一个操作的版本看看把~这个太抽象了。
X 和 n 要自定,比如 /dev/sda /dev/sda5 确定你知道这是怎么回事。
(注意如果 grub2 安装到了 mbr,这里务必将 grub 也安装到 mbr,否则 mbr 里的 grub2 不会被清除,并且无法引导)
生成 menu.lst:
sudo update-grub -y
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
/etc/grub.d 内的几个脚本是用来生成正常的 grub.cfg的,你重装 grub-common 还不能把 /etc/grub.d 的文件还原,就没办法生成正常的 grub.cfg/etc/grub.d与 /boot/grub是有联系的。
