HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: HOWTO: 滚回 grub 0.97

#46

帖子 smallapple » 2009-11-06 21:43

那个/host/ubuntu/winboot/wubildr.cfg看看
头像
yus253
帖子: 389
注册时间: 2009-05-31 20:52
联系:

Re: HOWTO: 滚回 grub 0.97

#47

帖子 yus253 » 2009-11-06 21:44

billbear 写了:
smallapple 写了:
billbear 写了:
smallapple 写了:wubi的安装的? :em06
把 /host/ubuntu/disks/boot/grub/grub.cfg 这个东东贴上来看看
/boot/grub 都被他 rm 掉了。
这下捅娄子了。
wubi 也用 grub2 ?
是用grub2,不过配置文件可能在盘的 /ubuntu/disks/boot/grub/grub.cfg 不是 /boot/grub/grub.cfg,要看看才能确定。
cat /host/ubuntu/disks/boot/grub/grub.cfg
看看什么内容
/ubuntu/disks/boot 好像就是挂在 /boot 的,yus253 运行一下
cat /etc/fstab
yus253@ubuntu:~$ sudo update-grub -y
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

#48

帖子 yus253 » 2009-11-06 21:45

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.
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: HOWTO: 滚回 grub 0.97

#49

帖子 billbear » 2009-11-06 21:46

yus253 写了:除了重新安装系统还有其他办法吗?!!!!
没写 mbr 的话没事的吧。没那么严重。wubi 我不熟
头像
yus253
帖子: 389
注册时间: 2009-05-31 20:52
联系:

Re: HOWTO: 滚回 grub 0.97

#50

帖子 yus253 » 2009-11-06 21:47

billbear 写了:
yus253 写了:除了重新安装系统还有其他办法吗?!!!!
没写 mbr 的话没事的吧。没那么严重。wubi 我不熟
可是我回到0.97了!不去从新配置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.
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: HOWTO: 滚回 grub 0.97

#51

帖子 smallapple » 2009-11-06 21:48

还是要用到 /boot/grub/grub.cfg
这个不知道要怎样生成 :em20
头像
yus253
帖子: 389
注册时间: 2009-05-31 20:52
联系:

Re: HOWTO: 滚回 grub 0.97

#52

帖子 yus253 » 2009-11-06 21:49

billbear 写了:
yus253 写了:除了重新安装系统还有其他办法吗?!!!!
没写 mbr 的话没事的吧。没那么严重。wubi 我不熟
yus253@ubuntu:~$ grub-install -v
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

#53

帖子 yus253 » 2009-11-06 21:50

smallapple 写了:还是要用到 /boot/grub/grub.cfg
这个不知道要怎样生成 :em20
给我传过来一个? yus253@yahoo.com.cn
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 慎入!!!)

#54

帖子 yus253 » 2009-11-06 21:52

怎么现在才写慎入??!~~刚才哪个兄弟写这个可以当经典教程的?!!!
附件
Screenshot-1.png
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 慎入!!!)

#55

帖子 smallapple » 2009-11-06 21:53

我没用wubi.... :em06
你先
sudo apt-get install grub2

sudo update-grub
看看
头像
yus253
帖子: 389
注册时间: 2009-05-31 20:52
联系:

Re: HOWTO: 滚回 grub 0.97 (wubi 慎入!!!)

#56

帖子 yus253 » 2009-11-06 21:55

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]
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 慎入!!!)

#57

帖子 yus253 » 2009-11-06 21:57

这两个不共荣呀!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 慎入!!!)

#58

帖子 yus253 » 2009-11-06 21:59

smallapple 写了:我没用wubi.... :em06
你先
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 慎入!!!)

#59

帖子 yus253 » 2009-11-06 22:00

出现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 慎入!!!)

#60

帖子 yus253 » 2009-11-06 22:00

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) ...
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.
回复