当前位置: 技术问答>linux和unix
U盘无法卸载
来源: 互联网 发布时间:2016-09-30
本文导语: 在arm板子上可以mount /dev/sda1 /mnt 可以读出,但写入后 umount出现下面信息, 而且也没写进去 再有, 再次插同样的U盘变成了 sdb1 2.6.33.rc4 usb 2-1: reset full speed USB device using ohci and address 2 usb 2-1: reset full speed U...
在arm板子上可以mount /dev/sda1 /mnt
可以读出,但写入后 umount出现下面信息, 而且也没写进去
再有, 再次插同样的U盘变成了 sdb1
2.6.33.rc4
usb 2-1: reset full speed USB device using ohci and address 2
usb 2-1: reset full speed USB device using ohci and address 2
usb 2-1: reset full speed USB device using ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x6 [current]
Info fld=0x0
sd 0:0:0:0: [sda] ASC=0x28 ASCQ=0x0
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 00 4d 00 00 01 00
end_request: I/O error, dev sda, sector 77
Buffer I/O error on device sda1, logical block 14
lost page write due to I/O error on sda1
usb 2-1: reset full speed USB device using ohci and address 2
usb 2-1: reset full speed USB device using ohci and address 2
usb 2-1: reset full speed USB device using ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x6 [current]
Info fld=0x0
sd 0:0:0:0: [sda] ASC=0x28 ASCQ=0x0
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 01 46 00 00 01 00
end_request: I/O error, dev sda, sector 326
Buffer I/O error on device sda1, logical block 263
lost page write due to I/O error on sda1
可以读出,但写入后 umount出现下面信息, 而且也没写进去
再有, 再次插同样的U盘变成了 sdb1
2.6.33.rc4
usb 2-1: reset full speed USB device using ohci and address 2
usb 2-1: reset full speed USB device using ohci and address 2
usb 2-1: reset full speed USB device using ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x6 [current]
Info fld=0x0
sd 0:0:0:0: [sda] ASC=0x28 ASCQ=0x0
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 00 4d 00 00 01 00
end_request: I/O error, dev sda, sector 77
Buffer I/O error on device sda1, logical block 14
lost page write due to I/O error on sda1
usb 2-1: reset full speed USB device using ohci and address 2
usb 2-1: reset full speed USB device using ohci and address 2
usb 2-1: reset full speed USB device using ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x6 [current]
Info fld=0x0
sd 0:0:0:0: [sda] ASC=0x28 ASCQ=0x0
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 01 46 00 00 01 00
end_request: I/O error, dev sda, sector 326
Buffer I/O error on device sda1, logical block 263
lost page write due to I/O error on sda1
|
你这份源代码成功加载和卸载过U盘吗?
|
貌似是驱动中write部分出了问题。你跟踪一下源代码试试。
|
在写之后,加个sync。