[lkml]   [2004]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Crashed Drive, libata wedges when trying to recover data
    On Gwe, 2004-09-03 at 05:52, Greg Stark wrote:
    > I get the same message and the same basic symptom -- any process touching the
    > bad disk goes into disk-wait for a long time. But whereas before as far as I
    > know they never came out, now they seem to come out of disk-wait after a good
    > long time. But then maybe I just never waited long enough with 2.6.6.

    This looks hopeful. You are now seeing the IDE layer error dump. Right
    now it doesn't decode the LBA block number although that data is
    available in the taskfile so I can knock up a test patch for you to try
    if you want.

    > This means I would be able to do the recovery in theory, but in practice it'll
    > just take an infeasible length of time. I have gigs of data to go through and
    > at the amount of time it takes to time out after each error it'll take me many
    > days (years I think) to just to figure out which blocks to avoid.

    Open the disk device directly with O_DIRECT, read in something like 64K
    chunks. That won't do readahead so it gets easier to work out the
    problem areas. You can now sit in a loop doing

    if(pread() failed)
    write blank
    write data

    then go back and binary search the holes it logs the next morning.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:05    [W:0.020 / U:0.784 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site