Chinaunix首页 | 论坛 | 博客
  • 博客访问: 724178
  • 博文数量: 823
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 5165
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-21 15:52
文章分类

全部博文(823)

文章存档

2011年(1)

2008年(822)

我的朋友

分类: LINUX

2008-08-21 17:43:51


这个问题的发现是在我换了ubuntu8.04并升级内核后发现的,之前的内核是2.6.24-16,没有出现问题。
但是更新了一次,内核升级到2.6.24-20就出现问题了。当时以为是grub的问题,因为menu.lst里还保留了splash选项,
而我已经删除了usplash,所以修改menu.lst去掉generic后的quiet和splash选项。然后就看具体的启动步骤:发现:
[7.180660]libataversion3.00loaded.
[7.182664]ata_piix0000:00:1f.2:version2.12
[7.182670]ata_piix0000:00:1f.2:MAP[P0P2IDEIDE]
[7.336546]ACPI:PCIInterrupt0000:00:1f.2[B]->GSI17(level,low)->IRQ18
[7.336667]PCI:Settinglatencytimerofdevice0000:00:1f.2to64
[7.336793]scsi0:ata_piix
[7.336895]scsi1:ata_piix
[7.337655]ata1:SATAmaxUDMA/133cmd0×1f0ctl0×3f6bmdma0xbfa0irq14
[7.337706]ata2:PATAmaxUDMA/100cmd0×170ctl0×376bmdma0xbfa8irq15
后,系统无响应了30s,当时我按了capslock也没响应。30s后系统才识别并初始化好我的fujitsu的硬盘和nec的刻录光驱。
找到出问题的原因后,我google了出现的问题,发现很多用ubuntu8.04的都出现这个问题
而且貌似2.6.24-18及其以上版本内核才会出现,不同的机子出现的问题不一样,有scsi的,也有ahci的等。

解决方法:

方法来源:
他上面提供了4种,我没用修改bios的方法。而是用的最后一种,而且我们出问题的地方不一样-我的是scsi,所以用下面的方法搞定:
sudovim/etc/initramfs-tools/modules
添加:
scsi
ata_piix
保存退出
sudoupdate-initramfs-kall-u
sudoreboot
没有任何问题了,然后测试了sda的分区和nec的光驱,没问题

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

[SOLVED]ahciadding30-secondstostartup?
hopefullysomeonehasasolutionforthislittleissueofmine…
boot-uphangsforabout30-secondsatthefollowingtextduringstartup:
Code:

Jul1109:18:07thinkpadkernel:[14.174626]ahci0000:00:1f.2:nr_ports(4)andimplementedportmap(0×1)don’tmatch,usingnr_ports
Jul1109:18:07thinkpadkernel:[14.174708]ahci0000:00:1f.2:forcingPORTS_IMPLto0xf

i’vesearchedgoogleandotherthreads,butnothingseemstoworkshortofadding“acpi=off”tomygrubkernellineandthatisNOTanoptionsincei’monalaptop.

thanks,in-advance.
=====
EDIT1:
okay,toaddalittlemoreinfo…ifoundthroughself-discoveryahciissuesareoccasionallyrelatedtobiosissues,soiwentintobiosandchangedmysatachoicefrom“ahci”to“compatibility.”now,thewaitdoesn’toccurasabove;rather,itwaits
here:
Code:

Jul1314:39:41thinkpadkernel:[24.320919]ata1.00:configuredforUDMA/100
Jul1314:39:41thinkpadkernel:[24.640481]ata2.00:ATAPI:HL-DT-STCD-RW/DVDDRIVEGCC-4244N,1.02,maxUDMA/33

hopefully,thisextrainfowillallowSOMEBODYtogivemeasuggestionortwo…

=====
EDIT2:
so,i’veupdatedthebiostothelatestversion,changedthesatachoicebackto“ahci”andnowthelagisonly~10-seconds;stillirritating,butnotnearlyasbadasbefore.thehangstilloccursatthe“ata2.00:ATAPI:HL-DT-STCD-RW/DVDDRIVE
GCC-4244N,1.02,maxUDMA/33″line.stillawaitinganyideas!
=====
EDIT3:
okay,youcanalmostdisregardtheabove…sometimesbootstillhangsattheahcinr_portsthing,stillfor30-seconds,andothertimesithangsastheATAPIDVDthing,forabout10-seconds.whatgives!?please,someone…ANYONE…suggestions?
=====
EDIT4:
okay,thisshouldbemyfinaledit,asiSEEMtohavesolvedtheissue.foranyoneelsehavingthisissue,thefollowingstepsMIGHTworkforyoutoo…

1.edit/etc/initramfs-tools/modulesandwrite-inaspecificorderofmodulestoloadatboot:
Code:

sudonano/etc/initramfs-tools/modules

andadd
Code:

ahci
ata_piix

2.updateinitramfs:
Code:

sudoupdate-initramfs-kall-u

3.rebootandsee…
##########################################

希望对出现类似问题的人有帮助 下载本文示例代码
阅读(136) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~