Ubuntu 提示I/O错误

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
xiaoxiaflash
帖子: 12
注册时间: 2009-08-29 21:58

Ubuntu 提示I/O错误

#1

帖子 xiaoxiaflash » 2009-09-10 18:06

只不过重启了一下,就出问题了
[ 21.570582] Buffer I/O error on device sda, logical block 18]
[ 21.570635] Buffer I/O error on device sda, logical block 19]
[ 21.570696] Buffer I/O error on device sda, logical block 20]
[ 21.570758] Buffer I/O error on device sda, logical block 21]
[ 21.570852] sd 0:0:0:0: refecting I/O to offline device
[ 21.570946] sd 0:0:0:0: refecting I/O to offline device
[ 21.571011] sd 0:0:0:0: refecting I/O to offline device
[ 21.571074] sd 0:0:0:0: refecting I/O to offline device
[ 21.571146] sd 0:0:0:0: refecting I/O to offline device
[ 21.571215] sd 0:0:0:0: refecting I/O to offline device
[ 21.571277] sd 0:0:0:0: [sda] asking for cache data failed
[ 21.571337] sd 0:0:0:0: [sda Assuming drive cache: write through
Gave up waitingfor root device. Common problems:
-Boot args (cat /proc/cmdline)
-Check rootdelay=(did the system wait long enough?)
-Check root=(did the system wait for the right device?)
-Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/disk/by-uuid/ab47391c-3e22-419c-a20b-d7d1b863f141 does not exist.Dopping to a shell!
BusyBox v1.10.2(Ubuntu 1:1.10.2-1ubuntu6) built- in shell(ash)
Enter'help' for a list of built-in commands.

(initamfs)

初学UNIX 请问如何解决?
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: Ubuntu 提示I/O错误

#2

帖子 smallapple » 2009-09-10 23:16

硬盘有几个区块出错了,不能加载根分区。
用livecd启动对根分区fsck试试。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: Ubuntu 提示I/O错误

#3

帖子 smallapple » 2009-09-11 20:39

LZ没有看短信? :em20
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: Ubuntu 提示I/O错误

#4

帖子 wangdu2002 » 2009-09-11 20:46

楼主大概睡着了。 :em06
走过路过,不要错过----重要广告。 :em04
viewtopic.php?f=1&t=226128#各位兄弟,赶快去给Ubuntu中文投票。 :em11
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
doctorlzr1988
帖子: 184
注册时间: 2009-09-11 15:31

Re: Ubuntu 提示I/O错误

#5

帖子 doctorlzr1988 » 2009-09-11 21:39

三楼的,你想说什么啊??? :em06
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: Ubuntu 提示I/O错误

#6

帖子 smallapple » 2009-09-12 9:07

doctorlzr1988 写了:三楼的,你想说什么啊??? :em06
没什么。
短信联系而己。
很奇怪吗? :em06
头像
doctorlzr1988
帖子: 184
注册时间: 2009-09-11 15:31

Re: Ubuntu 提示I/O错误

#7

帖子 doctorlzr1988 » 2009-09-12 17:36

smallapple 写了:
doctorlzr1988 写了:三楼的,你想说什么啊??? :em06
没什么。
短信联系而己。
很奇怪吗? :em06

能留下你的联系方式吗??
好想向你学习??
想请教你是学哪个专业的??
xiaoxiaflash
帖子: 12
注册时间: 2009-08-29 21:58

Re: Ubuntu 提示I/O错误

#8

帖子 xiaoxiaflash » 2009-09-25 23:45

smallapple,
由于我要建立用户名,有一个RandomPass.class的文件来随机生成密码,但是在命令行里要复制一下,很麻烦,请问有没有更好的办法。让他自己设置好密码?

if [ $LOGNAME != "root" ]
then
echo Need to be root to continue.
exit 1
fi
IDENT=`cat /etc/passwd | grep $1`
if [ "$IDENT" != "" ]
then
echo Username \"$1\" already exists
exit 2
fi
java RandomPass
adduser --gid 1001 --gecos "$2" "$1"
psql -c 'CREATE USER '$1' IN GROUP CS08'
psql -c 'CREATE DATABASE '$1' OWNER '$1''

我希望再写一个sh文件可以调用这个实现批量建,但是没成功,不知道可不可以帮我写一下,十分感谢,最好是能把用户名密码生成到记事本里,十会谢谢
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: Ubuntu 提示I/O错误

#9

帖子 smallapple » 2009-09-26 8:03

sorry,这个我不会。 :em03

到脚本区问问看? :em06
回复