HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97
yus253@ubuntu:~$ sudo update-grub -ybillbear 写了:/ubuntu/disks/boot 好像就是挂在 /boot 的,yus253 运行一下smallapple 写了:是用grub2,不过配置文件可能在盘的 /ubuntu/disks/boot/grub/grub.cfg 不是 /boot/grub/grub.cfg,要看看才能确定。billbear 写了:/boot/grub 都被他 rm 掉了。smallapple 写了:wubi的安装的?![]()
把 /host/ubuntu/disks/boot/grub/grub.cfg 这个东东贴上来看看
这下捅娄子了。
wubi 也用 grub2 ?
cat /host/ubuntu/disks/boot/grub/grub.cfg
看看什么内容
cat /etc/fstab
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file.
Generating /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-2.6.31-14-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
yus253@ubuntu:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/host/ubuntu/disks/root.disk / ext4 loop,errors=remount-ro 0 1
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0
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
smallapple 写了:那个/host/ubuntu/winboot/wubildr.cfg看看
打开以后:set show_panic_message=true
if search -s -f -n /ubuntu/install/boot/grub/grub.cfg; then
if configfile /ubuntu/install/boot/grub/grub.cfg; then
set show_panic_message=false
fi
else
if search -s -f -n /ubuntu/disks/root.disk; then
if loopback loop0 /ubuntu/disks/root.disk; then
set root=(loop0)
if search --set=loop -f -n /boot/grub/grub.cfg; then
if configfile /boot/grub/grub.cfg; then
set show_panic_message=false
fi
fi
fi
else
if search -s -f -n /grub.cfg; then
if configfile /grub.cfg; then
set show_panic_message=false
fi
fi
fi
fi
if [ ${show_panic_message} = true ]; then
echo "It is not possible to boot from the Ubuntu image."
echo "Please verify that the Ubuntu installation was not removed."
echo "If that is not the case, please check that the Windows filesystem"
echo "is not corrupted: reboot into Windows and run: chkdsk /r"
echo "Then try again."
fi
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.
-
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
Re: HOWTO: 滚回 grub 0.97
没写 mbr 的话没事的吧。没那么严重。wubi 我不熟yus253 写了:除了重新安装系统还有其他办法吗?!!!!
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97
可是我回到0.97了!不去从新配置grub吗?billbear 写了:没写 mbr 的话没事的吧。没那么严重。wubi 我不熟yus253 写了:除了重新安装系统还有其他办法吗?!!!!
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
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97
yus253@ubuntu:~$ grub-install -vbillbear 写了:没写 mbr 的话没事的吧。没那么严重。wubi 我不熟yus253 写了:除了重新安装系统还有其他办法吗?!!!!
grub-probe: error: Cannot open `/boot/grub/device.map'
grub-install (GNU GRUB 0.97)
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
给我传过来一个? yus253@yahoo.com.cnsmallapple 写了:还是要用到 /boot/grub/grub.cfg
这个不知道要怎样生成
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 慎入!!!)
怎么现在才写慎入??!~~刚才哪个兄弟写这个可以当经典教程的?!!!
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 慎入!!!)
我没用wubi....
你先
sudo apt-get install grub2
再
sudo update-grub
看看

你先
sudo apt-get install grub2
再
sudo update-grub
看看
- yus253
- 帖子: 389
- 注册时间: 2009-05-31 20:52
- 联系:
Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)
yus253@ubuntu:~$ cat /host/ubuntu/disks/boot/grub/grub.cfg
cat: /host/ubuntu/disks/boot/grub/grub.cfg: 没有该文件或目录
yus253@ubuntu:~$ sudo apt-get install grub2
[sudo] password for yus253:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会安装下列额外的软件包:
grub-pc
建议安装的软件包:
desktop-base
下列软件包将被【卸载】:
grub
下列【新】软件包将被安装:
grub-pc grub2
共升级了 0 个软件包,新安装了 2 个软件包,要卸载 1 个软件包,有 0 个软件未被升级。
需要下载 436kB 的软件包。
解压缩后会消耗掉 1,077kB 的额外空间。
您希望继续执行吗?[Y/n]
cat: /host/ubuntu/disks/boot/grub/grub.cfg: 没有该文件或目录
yus253@ubuntu:~$ sudo apt-get install grub2
[sudo] password for yus253:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会安装下列额外的软件包:
grub-pc
建议安装的软件包:
desktop-base
下列软件包将被【卸载】:
grub
下列【新】软件包将被安装:
grub-pc grub2
共升级了 0 个软件包,新安装了 2 个软件包,要卸载 1 个软件包,有 0 个软件未被升级。
需要下载 436kB 的软件包。
解压缩后会消耗掉 1,077kB 的额外空间。
您希望继续执行吗?[Y/n]
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到是选择ubuntu才会启动,我倒不用担心对我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 写了:我没用wubi....![]()
你先
sudo apt-get install grub2
再
sudo update-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 慎入!!!)
出现grub-pc
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 慎入!!!)
yus253@ubuntu:~$ sudo apt-get install grub2
[sudo] password for yus253:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会安装下列额外的软件包:
grub-pc
建议安装的软件包:
desktop-base
下列软件包将被【卸载】:
grub
下列【新】软件包将被安装:
grub-pc grub2
共升级了 0 个软件包,新安装了 2 个软件包,要卸载 1 个软件包,有 0 个软件未被升级。
需要下载 436kB 的软件包。
解压缩后会消耗掉 1,077kB 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://ubuntu.srt.cn karmic/main grub-pc 1.97~beta4-1ubuntu3 [434kB]
获取:2 http://ubuntu.srt.cn karmic/universe grub2 1.97~beta4-1ubuntu3 [2,606B]
下载 436kB,耗时 4 秒 (93.9kB/s)
正在预设定软件包 ...
(正在读取数据库 ... 系统当前总共安装有 130989 个文件和目录。)
正在删除 grub ...
正在处理用于 man-db 的触发器...
选中了曾被取消选择的软件包 grub-pc。
(正在读取数据库 ... 系统当前总共安装有 130944 个文件和目录。)
正在解压缩 grub-pc (从 .../grub-pc_1.97~beta4-1ubuntu3_i386.deb) ...
正在替换原软件包中的文件 grub-common ...
选中了曾被取消选择的软件包 grub2。
正在解压缩 grub2 (从 .../grub2_1.97~beta4-1ubuntu3_i386.deb) ...
正在处理用于 man-db 的触发器...
正在设置 grub-pc (1.97~beta4-1ubuntu3) ...
Replacing config file /etc/default/grub with new version
正在设置 grub2 (1.97~beta4-1ubuntu3) ...
[sudo] password for yus253:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会安装下列额外的软件包:
grub-pc
建议安装的软件包:
desktop-base
下列软件包将被【卸载】:
grub
下列【新】软件包将被安装:
grub-pc grub2
共升级了 0 个软件包,新安装了 2 个软件包,要卸载 1 个软件包,有 0 个软件未被升级。
需要下载 436kB 的软件包。
解压缩后会消耗掉 1,077kB 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://ubuntu.srt.cn karmic/main grub-pc 1.97~beta4-1ubuntu3 [434kB]
获取:2 http://ubuntu.srt.cn karmic/universe grub2 1.97~beta4-1ubuntu3 [2,606B]
下载 436kB,耗时 4 秒 (93.9kB/s)
正在预设定软件包 ...
(正在读取数据库 ... 系统当前总共安装有 130989 个文件和目录。)
正在删除 grub ...
正在处理用于 man-db 的触发器...
选中了曾被取消选择的软件包 grub-pc。
(正在读取数据库 ... 系统当前总共安装有 130944 个文件和目录。)
正在解压缩 grub-pc (从 .../grub-pc_1.97~beta4-1ubuntu3_i386.deb) ...
正在替换原软件包中的文件 grub-common ...
选中了曾被取消选择的软件包 grub2。
正在解压缩 grub2 (从 .../grub2_1.97~beta4-1ubuntu3_i386.deb) ...
正在处理用于 man-db 的触发器...
正在设置 grub-pc (1.97~beta4-1ubuntu3) ...
Replacing config file /etc/default/grub with new version
正在设置 grub2 (1.97~beta4-1ubuntu3) ...
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.