[已解决]我的8.04为什么loading,please wait要花30s的时间?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
uboat
帖子: 158
注册时间: 2007-11-10 11:15

[已解决]我的8.04为什么loading,please wait要花30s的时间?

#1

帖子 uboat » 2008-08-02 12:15

出现loading,please wait之后机子就没反应了,30s后才开始。。。

怎么回事?

===========================================

这个问题的发现是在我换了ubuntu8.04并升级内核后发现的,之前的内核是2.6.24-16,没有出现问题。
但是更新了一次,内核升级到2.6.24-20就出现问题了。当时以为是grub的问题,因为menu.lst里还保留了splash选项,
而我已经删除了usplash,所以修改menu.lst去掉generic后的quiet和splash选项。然后就看具体的启动步骤:发现:
[ 7.180660] libata version 3.00 loaded.
[ 7.182664] ata_piix 0000:00:1f.2: version 2.12
[ 7.182670] ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
[ 7.336546] ACPI: PCI Interrupt 0000:00:1f.2 -> GSI 17 (level, low) -> IRQ 18
[ 7.336667] PCI: Setting latency timer of device 0000:00:1f.2 to 64
[ 7.336793] scsi0 : ata_piix
[ 7.336895] scsi1 : ata_piix
[ 7.337655] ata1: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xbfa0 irq 14
[ 7.337706] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xbfa8 irq 15
后,系统无响应了30s,当时我按了caps lock也没响应。30s后系统才识别并初始化好我的fujitsu的硬盘和nec的刻录光驱。
找到出问题的原因后,我google了出现的问题,发现很多用ubuntu8.04的都出现这个问题
而且貌似2.6.24-18及其以上版本内核才会出现,不同的机子出现的问题不一样,有scsi的,也有ahci的等。

解决方法:

方法来源:http://ubuntuforums.org/showthread.php?t=856235
他上面提供了4种,我没用修改bios的方法。而是用的最后一种,而且我们出问题的地方不一样-
我的是scsi,所以用下面的方法搞定:
sudo vim /etc/initramfs-tools/modules
添加:
scsi
ata_piix
保存退出
sudo update-initramfs -k all -u
sudo reboot
没有任何问题了,然后测试了sda的分区和nec的光驱,没问题

####下面我把原文贴上来,供大家参考

[SOLVED] ahci adding 30-seconds to startup?
hopefully someone has a solution for this little issue of mine...
boot-up hangs for about 30-seconds at the following text during startup:
Code:

Jul 11 09:18:07 thinkpad kernel: [ 14.174626] ahci 0000:00:1f.2: nr_ports (4) and implemented port map (0x1) don't match, using nr_ports
Jul 11 09:18:07 thinkpad kernel: [ 14.174708] ahci 0000:00:1f.2: forcing PORTS_IMPL to 0xf

i've searched google and other threads, but nothing seems to work short of adding "acpi=off" to my grub kernel line and that is NOT an option since i'm on a laptop.

thanks, in-advance.
=====
EDIT 1:
okay, to add a little more info... i found through self-discovery ahci issues are occasionally related to bios issues, so i went into bios and changed my sata choice from "ahci" to "compatibility." now, the wait doesn't occur as above; rather, it waits
here:
Code:

Jul 13 14:39:41 thinkpad kernel: [ 24.320919] ata1.00: configured for UDMA/100
Jul 13 14:39:41 thinkpad kernel: [ 24.640481] ata2.00: ATAPI: HL-DT-STCD-RW/DVD DRIVE GCC-4244N, 1.02, max UDMA/33

hopefully, this extra info will allow SOMEBODY to give me a suggestion or two...

=====
EDIT 2:
so, i've updated the bios to the latest version, changed the sata choice back to "ahci" and now the lag is only ~10-seconds; still irritating, but not nearly as bad as before. the hang still occurs at the "ata2.00: ATAPI: HL-DT-STCD-RW/DVD DRIVE
GCC-4244N, 1.02, max UDMA/33" line. still awaiting any ideas!
=====
EDIT 3:
okay, you can almost disregard the above... sometimes boot still hangs at the ahci nr_ports thing, still for 30-seconds, and other times it hangs as the ATAPI DVD thing, for about 10-seconds. what gives!? please, someone...ANYONE... suggestions?
=====
EDIT 4:
okay, this should be my final edit, as i SEEM to have solved the issue. for anyone else having this issue, the following steps MIGHT work for you too...

1. edit /etc/initramfs-tools/modules and write-in a specific order of modules to load at boot:
Code:

sudo nano /etc/initramfs-tools/modules

and add
Code:

ahci
ata_piix

2. update initramfs:
Code:

sudo update-initramfs -k all -u

3. reboot and see...
##########################################

希望对出现问题的人有帮助
上次由 uboat 在 2008-08-03 16:49,总共编辑 1 次。
头像
sinyadvan
帖子: 724
注册时间: 2008-04-02 15:36
来自: O_O

#2

帖子 sinyadvan » 2008-08-02 12:46

Loading,please wait...之后有错误吗?
uboat
帖子: 158
注册时间: 2007-11-10 11:15

#3

帖子 uboat » 2008-08-02 12:47

sinyadvan 写了:Loading,please wait...之后有错误吗?
什么错误也没有
硬盘指示灯也不闪
回复