Announcement

Collapse
No announcement yet.

Automatic bad sector mark for ext4

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automatic bad sector mark for ext4

    I have a bunch of remote raspberry pi's which are running some video files off an USB stick.
    Sometimes in dmesg I see error reports like this:
    Code:
    [518605.042480] sd 0:0:0:0: [sda]
    [518605.042526] Result: hostbyte=0x00 driverbyte=0x08
    [518605.042544] sd 0:0:0:0: [sda]
    [518605.042573] Sense Key : 0x3 [current]
    [518605.042607] Info fld=0x0
    [518605.042637] sd 0:0:0:0: [sda]
    [518605.042661] ASC=0x11 ASCQ=0x0
    [518605.042692] sd 0:0:0:0: [sda] CDB:
    [518605.042711] cdb[0]=0x28: 28 00 01 7a 72 00 00 00 c0 00
    [518605.042831] blk_update_request: critical medium error, dev sda, sector 24801792
    As long as I can't fix the problem immediately, I guessed at least I could inform ext4, without stopping the services and unmounting the drive (on-the-fly), that the bad sector the kernel found has not to be used; yet I could not find any suitable command or flag. Is it ever possible?
Working...
X