当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [已解决]我的8.04为什么loading,please wait要花30s的时间?
帖子发表于 : 2008-08-02 12:15 

注册: 2007-11-10 11:15
帖子: 158
送出感谢: 0 次
接收感谢: 0 次
出现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[B] -> 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 次

页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-08-02 12:46 
头像

注册: 2008-04-02 15:36
帖子: 724
地址: O_O
送出感谢: 0 次
接收感谢: 0 次
Loading,please wait...之后有错误吗?


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-08-02 12:47 

注册: 2007-11-10 11:15
帖子: 158
送出感谢: 0 次
接收感谢: 0 次
sinyadvan 写道:
Loading,please wait...之后有错误吗?


什么错误也没有
硬盘指示灯也不闪


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Google [Bot] 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译