码迷,mamicode.com
首页 > 其他好文 > 详细

Buffer I/O error on device sr0

时间:2014-11-26 20:45:18      阅读:247      评论:0      收藏:0      [点我收藏+]

标签:style   io   ar   color   os   sp   for   on   div   

Buffer I/O error on device sr0, logical block 0

I check today some old CDs, some of them were from ’90 so of course they didn’t work. With one of them was a problem with reading… and ejecting CD-ROM. My PC wasn’t able to eject the CD even calling this command from root:

eject sr0 -rm

didn’t work.

DMESG said:

[ 1067.416522] Buffer I/O error on device sr0, logical block 0
[ 1075.923084] sr 1:0:0:0: [sr0] Unhandled sense code
[ 1075.923088] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1075.923097] sr 1:0:0:0: [sr0] Sense Key : Hardware Error [current]
[ 1075.923105] sr 1:0:0:0: [sr0] Add. Sense: Timeout on logical unit
[ 1075.923115] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 00 00 00 00 02 00
[ 1075.923130] end_request: I/O error, dev sr0, sector 0
[ 1075.923137] Buffer I/O error on device sr0, logical block

The CD wasn’t mounted, there was only a thread for the device, which wasn’t even mounted (I also wasn’t able to mount it from root):

umount: /dev/sr0: not mounted

 

Solution:

root@Agilob-PC:# lsof /dev/sr0
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
blkid 4079 root 3r BLK 11,0 0t0 7203 /dev/sr0

root@Agilob-PC:# kill -s 9 4079 ; eject

Worked for me!

Buffer I/O error on device sr0

标签:style   io   ar   color   os   sp   for   on   div   

原文地址:http://www.cnblogs.com/wjoyxt/p/4124766.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!