Chinaunix首页 | 论坛 | 博客
  • 博客访问: 393081
  • 博文数量: 89
  • 博客积分: 3176
  • 博客等级: 中校
  • 技术积分: 1205
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-15 10:08
文章分类

全部博文(89)

文章存档

2011年(17)

2010年(19)

2009年(35)

2008年(18)

分类: LINUX

2011-09-20 19:14:05



今在丰台移动,在 DELL R710上安装 Ubuntu 10.04 LTS server (amd64) 时,安装完重启后,进入到一个临时的shell中。

R710 的 raid 控制器为 sas 6i,为简易版本,只支持RAID0,和RAID1


报错截图如下:





此错误为已经被公布的BUG。

“Lucid: Gave up waiting for root device (mptsas) resolved by rootdelay”

BUG地址:

I found this bug after doing a fresh install of Ubuntu 10.04 LTS server (amd64) on a Dell PowerEdge R410, with hardware RAID (SCSI storage controller SAS1068E PCI-Express Fusion-MPT SAS (LSI Logic / Symbios Logic)). Before installing Ubuntu 10.04, this server was booting without a problem with CentOS 5.4 (Linux 2.6.18)

When the installation is over and after the first reboot, I get this error message
"Gave up waiting for root device.
...
ALERT! /dev/disk/by-uuid/[mydiskUUID here] does not exit. Dropping to a shell!

Busybox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu11) built-in shell (ash)

(initramfs)
"

If I wait between 10 and 20 seconds, I see
"
35.538649] sd 4:1:0:0: [sda] 584843264 512-byte logical blocks: (299 GB/278 GiB)
[ 35.539484] sd 4:1:0:0: [sda] Write Protect is off
[ 35.539555] sd 4:1:0:0: [sda] Mode Sense: 03 00 00 08
[ 35.540034] sd 4:1:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 35.541687] sda: sda1 sda2 sda3 sda4 < sda5 >
[ 35.560048] sd 4:1:0:0: [sda] Attached SCSI disk
[ 36.521418] Adding 2096472k swap on /dev/sda3. Priority:-1 extents:1 across:2096472k
[ 36.761904] EXT3 FS on sda2, internal journal
[ 37.181651] EXT3 FS on sda1, internal journal
"

Then, I type exit and the boot resumes normally. I could reproduce this bug after every reboot.

I solved this issue by adding

GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=50"

to

/etc/default/grub

and running update-grub

The kernel is Linux 2.6.32-22-server #33-Ubuntu SMP Wed Apr 28 14:34:48 UTC 2010 x86_64 GNU/Linux

I attach outputs of lshw, dmidecode, lscpi -vvv and lsmod

Unlike Bug #576302 , I can solve the problem with rootdelay=50 and I don't use mptspi kernel module, so I think it is another bug (but may be they are related).





问题解决:

1.在(initramfs) 下  输入 exit 后回车,操作系统开始引导.

2.进入系统后,编辑/etc/default/grub 文件,寻找到GRUB_CMDLINE_

LINUX_DEFAULT=”quite” 修改为 GRUB_CMDLINE_

LINUX_DEFAULT=”rootdelay=50 ”

3. sudo update-grub  更新 grub配置文件

4.重启后解决

阅读(1885) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~