Input/output error upong deleting..

Discussion in 'General Linux' started by enhu, Feb 19, 2012.

  1. enhu

    enhu New Member

    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    0
    I'm trying to remove a family guy episode I've got which is put inside a separate partition of my drive when when I deleted it using rm command it prompt the error adn can't be deleted, how can i deleted such file?

    root@enhu:/media/sdb2/files# rm -rf Family.Guy.S10E11.HDTV.XviD-LOL.avi
    rm: cannot remove `Family.Guy.S10E11.HDTV.XviD-LOL.avi': Input/output error
    root@enhu:/media/sdb2/files#

  2. Akendo

    Akendo New Member

    Messages:
    136
    Likes Received:
    7
    Trophy Points:
    0
    hm.. can you make a dmesg? This kind of message will normally reported to the kernel message.
    Try also to get some info about the file via file $FILENAME and try to move it a bit.

    so far
    akendo
  3. enhu

    enhu New Member

    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    0
    seem like i can't posts more than 2500 characters here and my dmesg exceeds 3500 characters.
  4. Akendo

    Akendo New Member

    Messages:
    136
    Likes Received:
    7
    Trophy Points:
    0
    dmesg | tail will help. Maybe with the option on -n 50. This will print out the last 50 lines.
  5. enhu

    enhu New Member

    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    0
    thanks. here's the tail

    [ 8238.626887] sd 2:0:0:0: [sdc] Mode Sense: 1f 00 00 08
    [ 8238.627632] sd 2:0:0:0: [sdc] No Caching mode page present
    [ 8238.627638] sd 2:0:0:0: [sdc] Assuming drive cache: write through
    [ 8238.630008] sd 2:0:0:0: [sdc] No Caching mode page present
    [ 8238.630014] sd 2:0:0:0: [sdc] Assuming drive cache: write through
    [ 8238.711988] sdc: sdc1
    [ 8238.715260] sd 2:0:0:0: [sdc] No Caching mode page present
    [ 8238.715269] sd 2:0:0:0: [sdc] Assuming drive cache: write through
    [ 8238.715274] sd 2:0:0:0: [sdc] Attached SCSI disk
    [ 8805.686668] usb 1-3: USB disconnect, device number 3
  6. Akendo

    Akendo New Member

    Messages:
    136
    Likes Received:
    7
    Trophy Points:
    0
    Can you do this after a try in deleting this file? Else try this: rm $FILE; dmesg |grep -e '\[sd.\]'

Share This Page