XP、Ubuntu双启动莫名其秒引导问题(已解决)

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
Callpo
帖子: 22
注册时间: 2008-04-28 8:48

XP、Ubuntu双启动莫名其秒引导问题(已解决)

#1

帖子 Callpo » 2008-05-03 11:56

硬盘分区情况:160G硬盘XP、Ubuntu8.04双启动。我的分区按顺序是:hda1 (fat32,XP系统分区)、hda5(fat32)、hda6(fat32)、hda7(7G未划分)、hda8(10G作为/home)、hda9 (512MSwap)、hda3(2.7G作为/)。
症状:重启没问题,但每一次用无论XP还是Ubuntu只要是正常关机后,下一次启动总是摆脱不掉error17,,屡试不爽。真快要崩溃了,虽说容易通过liveCD修复,但这不是解决的办法啊!而且通过fdisk/mbr,还会出现winxp启动画面出现后反复重启的症状。
在论坛上也没搜到相似的情况,到了不发贴不足以解决问题的地步了,请知道的朋友指教。严重打击情绪啊!!
上次由 Callpo 在 2008-05-06 14:05,总共编辑 1 次。
tg8866
帖子: 471
注册时间: 2008-02-01 7:16

#2

帖子 tg8866 » 2008-05-03 12:03

error17 錯誤信息就這點?

最重要的错误信息要发上来啊。

另外找英文信息请使用 google.com

找了篇帖子:http://ubuntuforums.org/showthread.php?t=442945
头像
hethe
帖子: 3666
注册时间: 2005-08-01 9:14

#3

帖子 hethe » 2008-05-03 12:54

会不会是分区表的问题? :?:
Gedanken ohne Inhalt sind leer .Anschauungen ohne Begriffe sind blind.
头像
shissx
帖子: 62
注册时间: 2008-04-01 19:23

#4

帖子 shissx » 2008-05-03 13:55

tg8866 写了:error17 錯誤信息就這點?

最重要的错误信息要发上来啊。

另外找英文信息请使用 google.com

找了篇帖子:http://ubuntuforums.org/showthread.php?t=442945
就是嘛,错误信息怎么可能就一个“error17”那么一丁点儿

Ps:其实百度也不错
头像
ebok
帖子: 852
注册时间: 2008-02-15 0:09

#5

帖子 ebok » 2008-05-03 14:26

2.7G分给 / 太少了.
Somebody think they are full of niubility, so they play a zhuangbility, but only reflect their shability.
头像
zshmail
帖子: 270
注册时间: 2006-07-03 9:12

#6

帖子 zshmail » 2008-05-03 14:29

/分区有些小,至少也得3.5G以上吧。
donaldpeng
帖子: 35
注册时间: 2008-05-03 0:09

#7

帖子 donaldpeng » 2008-05-03 15:24

也装的双系统,没遇到这种问题
Callpo
帖子: 22
注册时间: 2008-04-28 8:48

#8

帖子 Callpo » 2008-05-03 17:43

感谢各们的回复,为了给大家一个详细的错误信息,我再次正常关机重启~~
为了修复方便,我一直把光驱引导作为第一选项,屏幕提示如下:
Verifying DMI Pool Date......
Boot from CD:
GRUB loading stage 1.5


GRUB loading, please wait.
Error17
_
armeria
帖子: 123
注册时间: 2007-05-29 5:20

#9

帖子 armeria » 2008-05-03 17:55

帮你google了一下。

Error 17 in Grub 意思是 "Cannot mount selected partition"

这里有人讨论类似的问题:

http://ubuntuforums.org/showthread.php? ... 838&page=2

Before getting into the code and stuff, it might be easiest if you downloaded a bootable ISO for the program called SuperGrub. Burn this to a CD and then boot your system from this CD. It will give you options for...

* making your win(dows) drive bootable
* making your linux drive bootable
* setting your system up for a dual boot

If you have Windows on one drive and Linux on the other, then you simply need to choose the dual boot option and it will setup the Grub menu for you so that you can select which operating system to boot into.

This is a great little program to have on hand. It's got me out of a few tight spots. You can download the ISO from...

http://users.bigpond.net.au/hermanzone/ ... kPage.html

后面有人说用这个SuperGrub可以解决问题。

如果你有windows启动盘的话,上面那个讨论也提到可以解决问题:

1) Put Windows CD into cd drive
2) Wait for CD to start
3) Look for "press R to enter recovery console"
4) wait until you see a text prompt
5) type fixmbr


Callpo 写了:感谢各们的回复,为了给大家一个详细的错误信息,我再次正常关机重启~~
为了修复方便,我一直把光驱引导作为第一选项,屏幕提示如下:
Verifying DMI Pool Date......
Boot from CD:
GRUB loading stage 1.5


GRUB loading, please wait.
Error17
_
头像
chinayem
帖子: 70
注册时间: 2007-06-11 21:08
来自: 江南水乡

#10

帖子 chinayem » 2008-05-03 18:49

LZ,屡试不爽的意思是屡次试验都没有差错。ORZ
Callpo
帖子: 22
注册时间: 2008-04-28 8:48

#11

帖子 Callpo » 2008-05-03 20:35

chinayem 写了:LZ,屡试不爽的意思是屡次试验都没有差错。ORZ
我的意思是“出现error17”这件事情没有差错啊~ :(
头像
liupingjing
帖子: 451
注册时间: 2007-11-29 17:31

#12

帖子 liupingjing » 2008-05-04 9:14

Booting from CD
这句很奇怪,楼主看看光驱里还有光盘吗,有就取出来
把bios设置为硬盘启动
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#13

帖子 skyx » 2008-05-04 11:22

代码: 全选

GRUB Loading stage1.5.


GRUB loading,please wait...
or, you might see this message instead,

代码: 全选

loading stage2
When your computer is booting up it stops at either of these messages in white print on a black background and does nothing more...
You can try to reboot by pressing your Ctrl + Alt + Del keys, but it will just do the same thing again.
First, the simplest thing -please check your CD drive and make sure there isn't an unbootable CD-ROM still left in there from last time you used the computer, same goes for floppy disks too. I don't know why, but sometimes they can interfere with booting. (It's rare, but can happen).

This problem is more likely to occur when trying to boot up a newly installed system or after an internet update.
It can be caused by corrupted files in the /boot/grub directory.

You'll need to boot with Super Grub Disk, use the feature 'direct boot'

If you have only one Linux or a standard dual boot with one Linux and one Windows install 'English Super Grub Disk'-->'Gnu/Linux'-->'Boot Gnu/Linux Directly' will bypass those corrupted files and boot your operating system. (Even if they are not there at all)!

For advanced users who might be multiple booting or have a non-standard arrangement, go 'English Super Grub Disk'-->'Advanced'-->'Gnu/Linux Advanced'-->'Boot Gnu/Linux Directly'.
That will give you the opportunity to manually select the disk and partition of the operating system you need to boot.

Once you are booted up and running the system, it's easy to fix if you know the right terminal commands to use. Just remove the corrupted files and replacing them with new ones.
First, save your menu.lst (or grub.conf), to your /home/username folder to get it in a safe place until you are ready to restore it again. Then remove all those bad files in /boot/grub. Copy back your menu.lst, and reinstall GRUB. Here are the commands,

代码: 全选

sudo cp /boot/grub/menu.lst .
sudo rm /boot/grub/*
sudo cp menu.lst /boot/grub
sudo grub-install /dev/hda
Where: /boot/grub/menu.lst is the correct file name and path for GRUB's configuration file in my Linux distro. If your distro has a different name for menu.lst, such as grub.config, and it's in a different directory, such as /GRUB, please feel free to alter these commands accordingly.
Not all Linux distros require the use of the word sudo before each command either.
Note: It is best if you can copy and paste these commands to aviod typing errors.
If you do decide to type in your own commands, be aware that the '.' following the space at the end of the first command is a way of abreviating '/home/username' (directory), so the command will not work without the space and . after it.
no security measure is worth anything if an attacker has physical access to the machine
Callpo
帖子: 22
注册时间: 2008-04-28 8:48

#14

帖子 Callpo » 2008-05-04 16:11

skyx
感谢你的帮助!
但我有一点搞不明白的就是每一次正常关机就会出现问题,而直接重启就没有问题。经过这么久的“锻炼”,我可以很熟练的修复grub,但问题还是不停地重复出现,这才是最让人头痛的。
为这避开这个问题,我从一个帖子上看到通过ntloader加载grub,于是我重新分区格式化,按着上面的做法实验,当时开关机是没问题了,通过这种方式可以避免error17的出现。但仅过了一个晚上,就出现了新的错误:GRUB Geom Error! 查过中英文资料,说这是由于stage2 或者 stage 1.5 位于 BIOS 的 read 调用可以访问的范围之外。但是我不知道如何调整BIOS,我的硬盘是日立160GSATA。我感觉自己在BIOS里面的设定也没有问题,大部分是AUTO。
就是想知道为什么总是反反复复地出现这个问题呢?是我的/分区太靠后吗?我的/分区在(hd0,8),而且是逻辑分区,整个系统就一个主分区,安装了XP。谢谢!
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#15

帖子 skyx » 2008-05-04 16:46

symptom

GRUB freezes during the boot process with the message 'GRUB Geom Error'.

Cause

There are several possible causes:

1. The BIOS contains incorrect hard disk values or LBA [wikipedia] is not activated.
2. You installed your Linux system on a new hard disk but forgot to register it in the BIOS. Therefore, stage 1 of the boot loader is loaded, but stage 2 cannot be accessed.
3. The BIOS is not able to detect the full hard disk capacity. For example, in case of a 40 GB disk, it only detects the first 32 GB. However, Linux is installed on the last 8 GB.
4. The computer BIOS is not able to address the hard disk area beyond cylinder 1024. However, the Linux boot partition (or the partition containing the kernel or other files needed for booting) is partly or entirely located beyond cylinder 1024. Usually, this problem only occurs on old machines. However, it may still happen occasionally even with new BIOS versions.
5. The BIOS cannot boot from disks attached to the second IDE controller. However, the Linux hard disk is attached to the second IDE controller. This problem, too, is rather uncommon.
6. The hard disk geometry set in the BIOS during the GRUB installation was changed posteriorly or the hard disk was inserted in a different machine or attached to a different controller after the installation.


Solution

For cause one, correct the hard disk settings in the BIOS or activate LBA.

For cause two, register all hard disks in the BIOS.

For causes three, four, and five, a BIOS update might be the answer, provided the motherboard manufacturer supplies a newer BIOS that solves this problem. Otherwise, the problem can be solved by creating a boot partition within the area that can be addressed by the BIOS, i.e. within the hard disk area detected by the BIOS (for cause three), within the first 1024 cylinders (cause four), or on a hard disk attached to the first IDE controller (cause five).

In the case of cause four, the problem should be solved by attaching the Linux hard disk to the first IDE controller, if this is possible. When doing this, remember that the device names (/etc/fstab) will change. Adjust these names and the GRUB configuration files with the rescue system or by reinstalling the Linux system.

For cause number six, rewrite the boot loader with the YaST2 boot loader configuration dialog or by entering the following command in a root shell:

grub --batch --device-map=/boot/grub/device.map </etc/grub.conf

For further information on this problem, refer to the online GRUB documentation at http://www.gnu.org/software/grub/manual ... 1%20errors or enter the command info grub in a shell.

SDB:The Boot Manager Grub

Callpo 写了:
硬盘分区情况:160G硬盘XP、Ubuntu8.04双启动。我的分区按顺序是:hda1 (fat32,XP系统分区)、hda5(fat32)、hda6(fat32)、hda7(7G未划分)、hda8(10G作为/home)、hda9 (512MSwap)、hda3(2.7G作为/)。

为这避开这个问题,我从一个帖子上看到通过ntloader加载grub,于是我重新分区格式化,按着上面的做法实验,当时开关机是没问题了,通过这种方式可以避免error17的出现。但仅过了一个晚上,就出现了新的错误:GRUB Geom Error! !
很奇怪的是,你的硬盘显示为hd,难道是ide的?

你的电脑芯片组是什么?



即然现在分了win分区,并且用grub4dos启动,不妨把/boot也拷贝到 win分区下
如果可以解决,记得每次升级内核后更新 升级后win下的boot(重新copy一次)

不过还是建议follow一下英文中的解决方法.

其它建议:
下载这个软件,在dos下运行,看lba是否pass

http://download.intel.com/support/chips ... LbaChk.exe
no security measure is worth anything if an attacker has physical access to the machine
回复