euglug.org

[카테고리:] Uncategorized

  • [Eug-lug] Broken SD card



    Allen BrownThu Dec 4 22:18:20 PST 2008

    The first step was to update to Ubuntu 8.10.  I chose OSU OSL
    as the source.  It took all day to download.  And the file is
    corrupt.  ^$%$*&&#@@@^&*!
    -- 
    Allen Brown  abrown at peak.org  http://brown.armoredpenguin.com/~abrown/
       An appeaser is one who feeds a crocodile, hoping
       it will eat him last. --- Sir Winston Churchill
    
    
    Allen Brown wrote:
    > When I started to follow those instructions I realized that even
    > my experimental computer was an Ubuntu release behind.  (My
    > working computer is 2 releases behind.)  So I am now downloading
    > 8.10 to install on the experimental.  I will then use the instructions
    > you have pointed to to compile the kernel and tweak the driver.
    > All of this will take a long time, probably several days.  The
    > CD download is going slowly.  And the compile will probably
    > take a full day.  (The experimental computer is quite old.)
    > Plus I will be doing the compile twice, once to prove I can
    > make a clean kernel, and again with the tweaked driver.
    > I will post progress.
    > 
    > Of course all of this is speculative.  There is little reason to
    > believe the tweaked driver will allow me to dd anything useful.
    > It's little more than a shot in the dark.  So I am still open
    > to other alternatives.  (With crossed fingers.)
    
  • [Eug-lug] Broken SD card



    Allen BrownThu Dec 4 19:36:13 PST 2008

    You are offering to do it for pay?  OK.  How about this deal?
    $0 for making the failure worse.  Example: windoze reformats device.
    $50 for making a failed attempt.  Must attempt for at least two hours.
    $100 for succeeding in retrieving damaged, incomplete, or unformatted data.
    $600 for retrieving complete, undamaged data.
    -- 
    Allen Brown  abrown at peak.org  http://brown.armoredpenguin.com/~abrown/
      When you're swimmin' in the creek,
      And an eel bites your cheek,
      That's a Moray!
      --- Fabulous Furry Freak Brothers
    
    
    > Decide what the data is worth. I can take a look at it.
    >
    > Sent from my iFone
    >
    > On Dec 4, 2008, at 3:00 PM, "Allen Brown" <abrown at peak.org> wrote:
    >
    > When I started to follow those instructions I realized that even
    > my experimental computer was an Ubuntu release behind.  (My
    > working computer is 2 releases behind.)  So I am now downloading
    > 8.10 to install on the experimental.  I will then use the instructions
    > you have pointed to to compile the kernel and tweak the driver.
    > All of this will take a long time, probably several days.  The
    > CD download is going slowly.  And the compile will probably
    > take a full day.  (The experimental computer is quite old.)
    > Plus I will be doing the compile twice, once to prove I can
    > make a clean kernel, and again with the tweaked driver.
    > I will post progress.
    >
    > Of course all of this is speculative.  There is little reason to
    > believe the tweaked driver will allow me to dd anything useful.
    > It's little more than a shot in the dark.  So I am still open
    > to other alternatives.  (With crossed fingers.)
    > --
    > Allen Brown
    > http://brown.armoredpenguin.com/~abrown
    >
    > The latter web page does have instructions on installing the kernel.
    > They look okay to me, and they appear to install the modules too.
    >
    > https://help.ubuntu.com/community/Kernel/Compile#Install%20the%20new%20kernel
    >
    > Once you have a working kernel build area, you can update the module
    > the easy way.
    >
    >    cp .../mydriver.ko /lib/modules/.../
    >    rmmod mydriver
    >    modprobe mydriver
    >
    > There may be more to it than that.  If other modules depend on the one
    > you're modifying, you'll have to unload and reload them too.
    > And once in a while you'll have to reboot anyway.
    >
    > Your approach, commenting out the check and seeing what happens,
    > is what I'd probably do.
    >
    > On Wed, Dec 3, 2008 at 9:16 PM, Allen Brown <abrown at peak.org> wrote:
    > I spent last month in Australia.  I collected two weeks of
    > pictures, amounting to approximately 5GB, onto a 16GB SD
    > card.  Until the card stopped being readable by my Nokia
    > n800.
    >
    > I then bought a new 16GB SD card and stored the rest of
    > the two weeks on it.  Another 5GB.
    >
    > The second SD card is still good.  I have transferred those
    > pictures to my main computer.  I plan to edit and post them soon.
    >
    > The first SD card is a problem.  If not for the pictures on it
    > I would simply throw it away.  But those pictures are irreplaceable.
    >
    > When I plug in the first SD card dmesg reports
    > 21638.906250] mmc1: unrecognised SCR structure version 5
    >
    > A friend (who is much more familiar with kernel internals)
    > said:
    > It would appear that the relevant code is:
    >       scr_struct = UNSTUFF_BITS(resp, 60, 4);
    >       if (scr_struct != 0) {
    >               printk("%s: unrecognised SCR structure version %d\n",
    >                       mmc_hostname(card->host), scr_struct);
    >               mmc_card_set_bad(card);
    >               return;
    >       }
    >
    > So it only expects "0" in the field, and you have two bits picked.
    >
    > This doesn't bode well.
    >
    > Indeed our attempts to plug it in and read raw data from the
    > scsi device have failed.  I wondered if I could get anything
    > useful by disabling the check above.
    >
    > That takes me to recompiling the kernel.  I followed along on
    > http://www.howtoforge.com/kernel_compilation_ubuntu_p2
    > and https://help.ubuntu.com/community/Kernel/Compile
    >
    > I'm not sure if my Ubuntu system doesn't match the author's.
    > But I had to takes some steps they don't mention.  And their
    > description is ambiguous in some places.  But I finally
    > managed to compile the kernel.  However, the instructions
    > don't go far enough.  Under the 2.4 kernel (which I got good
    > at compiling) there was a separate install step.  There is
    > no mention of that on these web sites.  And yet, it seems clear
    > that this is necessary.
    >
    > OK, so I can copy the kernel easily enough to /boot and modify
    > the grub file.  But what about the modules?  I don't know what
    > to do.  And all of this is a waste of time if I can't modify
    > the modules.  After all, the code I need to modify is almost
    > certainly in the sd module.  (I haven't bothered to search it
    > down since first I wanted to test run a kernel I had compiled.)
    >
    > So the questions I have are:
    > 1. Is this a reasonable approach to recovering a broken SD card?
    > 2. Do you know of a good way to recover an SD card?
    > 3. How do you install the kernel modules?
    > --
    > Allen Brown  abrown at peak.org
    > http://brown.armoredpenguin.com/~abrown/
    > A bus station is where a bus stops.  A train station is where a train
    > stops.  On my desk, I have a workstation.  What more can I say? -- anon
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    >
    >
    > --
    > Bob Miller                              K<bob>
    >                                        kbob at jogger-egg.com
    >
    >
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    >
    >
    >
    
    
    
  • [Eug-lug] Broken SD card



    Mr OThu Dec 4 19:24:33 PST 2008

    Decide what the data is worth. I can take a look at it.
    
    Sent from my iFone
    
    On Dec 4, 2008, at 3:00 PM, "Allen Brown" <abrown at peak.org> wrote:
    
    When I started to follow those instructions I realized that even
    my experimental computer was an Ubuntu release behind.  (My
    working computer is 2 releases behind.)  So I am now downloading
    8.10 to install on the experimental.  I will then use the instructions
    you have pointed to to compile the kernel and tweak the driver.
    All of this will take a long time, probably several days.  The
    CD download is going slowly.  And the compile will probably
    take a full day.  (The experimental computer is quite old.)
    Plus I will be doing the compile twice, once to prove I can
    make a clean kernel, and again with the tweaked driver.
    I will post progress.
    
    Of course all of this is speculative.  There is little reason to
    believe the tweaked driver will allow me to dd anything useful.
    It's little more than a shot in the dark.  So I am still open
    to other alternatives.  (With crossed fingers.)
    -- 
    Allen Brown
    http://brown.armoredpenguin.com/~abrown
    
    The latter web page does have instructions on installing the kernel.
    They look okay to me, and they appear to install the modules too.
    
    https://help.ubuntu.com/community/Kernel/Compile#Install%20the%20new%20kernel
    
    Once you have a working kernel build area, you can update the module
    the easy way.
    
       cp .../mydriver.ko /lib/modules/.../
       rmmod mydriver
       modprobe mydriver
    
    There may be more to it than that.  If other modules depend on the one
    you're modifying, you'll have to unload and reload them too.
    And once in a while you'll have to reboot anyway.
    
    Your approach, commenting out the check and seeing what happens,
    is what I'd probably do.
    
    On Wed, Dec 3, 2008 at 9:16 PM, Allen Brown <abrown at peak.org> wrote:
    I spent last month in Australia.  I collected two weeks of
    pictures, amounting to approximately 5GB, onto a 16GB SD
    card.  Until the card stopped being readable by my Nokia
    n800.
    
    I then bought a new 16GB SD card and stored the rest of
    the two weeks on it.  Another 5GB.
    
    The second SD card is still good.  I have transferred those
    pictures to my main computer.  I plan to edit and post them soon.
    
    The first SD card is a problem.  If not for the pictures on it
    I would simply throw it away.  But those pictures are irreplaceable.
    
    When I plug in the first SD card dmesg reports
    21638.906250] mmc1: unrecognised SCR structure version 5
    
    A friend (who is much more familiar with kernel internals)
    said:
    It would appear that the relevant code is:
          scr_struct = UNSTUFF_BITS(resp, 60, 4);
          if (scr_struct != 0) {
                  printk("%s: unrecognised SCR structure version %d\n",
                          mmc_hostname(card->host), scr_struct);
                  mmc_card_set_bad(card);
                  return;
          }
    
    So it only expects "0" in the field, and you have two bits picked.
    
    This doesn't bode well.
    
    Indeed our attempts to plug it in and read raw data from the
    scsi device have failed.  I wondered if I could get anything
    useful by disabling the check above.
    
    That takes me to recompiling the kernel.  I followed along on
    http://www.howtoforge.com/kernel_compilation_ubuntu_p2
    and https://help.ubuntu.com/community/Kernel/Compile
    
    I'm not sure if my Ubuntu system doesn't match the author's.
    But I had to takes some steps they don't mention.  And their
    description is ambiguous in some places.  But I finally
    managed to compile the kernel.  However, the instructions
    don't go far enough.  Under the 2.4 kernel (which I got good
    at compiling) there was a separate install step.  There is
    no mention of that on these web sites.  And yet, it seems clear
    that this is necessary.
    
    OK, so I can copy the kernel easily enough to /boot and modify
    the grub file.  But what about the modules?  I don't know what
    to do.  And all of this is a waste of time if I can't modify
    the modules.  After all, the code I need to modify is almost
    certainly in the sd module.  (I haven't bothered to search it
    down since first I wanted to test run a kernel I had compiled.)
    
    So the questions I have are:
    1. Is this a reasonable approach to recovering a broken SD card?
    2. Do you know of a good way to recover an SD card?
    3. How do you install the kernel modules?
    --
    Allen Brown  abrown at peak.org
    http://brown.armoredpenguin.com/~abrown/
    A bus station is where a bus stops.  A train station is where a train
    stops.  On my desk, I have a workstation.  What more can I say? -- anon
    _______________________________________________
    EUGLUG mailing list
    euglug at euglug.org
    http://www.euglug.org/mailman/listinfo/euglug
    
    
    
    
    --
    Bob Miller                              K<bob>
                                           kbob at jogger-egg.com
    
    
    
    _______________________________________________
    EUGLUG mailing list
    euglug at euglug.org
    http://www.euglug.org/mailman/listinfo/euglug
    
    
    
          
    
  • [Eug-lug] Broken SD card



    Allen BrownThu Dec 4 18:09:47 PST 2008

    As long as it only offers.  If it formats first and asks second then
    I would rather not even try Windoze.
    -- 
    Allen Brown
    http://brown.armoredpenguin.com/~abrown
    
    > Allen Brown wrote:
    >
    >>
    >> Snaturally!  I've tried 6 readers.  Either they fail to recognize
    >> any SD bigger than 2GB, or they report invalid SCR.  All of these
    >> have been Linux.  I don't really have access to any of the other
    >> (usually inferior) OSs.
    >
    > It might be worthwhile to ask a neighbor or friend with a Mac or Windows
    > machine to give it a shot. I'd try a Mac first, just because Windows
    > sometimes has a habit of offering to format things it can't read.
    >
    > Save yourself a lot of hassle if it does work.
    >
    > -ajb
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    
    
    
  • [Eug-lug] teh meetin’ eh



    AlanThu Dec 4 17:10:32 PST 2008

    Mr O wrote:
    > It's on. Same Tux time, same Tux channel.
    > 
    > Drinks are plenty adequate still. Chips are really low. Still chocolate covered something, Twizzlers, & crackers.
    > 
    > That be all,
    > Mr O.
    
    You are now going to get 10 bags of chips.
    
    -ajb
    
    
  • [Eug-lug] Broken SD card



    AlanThu Dec 4 17:09:46 PST 2008

    Allen Brown wrote:
    
    > 
    > Snaturally!  I've tried 6 readers.  Either they fail to recognize
    > any SD bigger than 2GB, or they report invalid SCR.  All of these
    > have been Linux.  I don't really have access to any of the other
    > (usually inferior) OSs.
    
    It might be worthwhile to ask a neighbor or friend with a Mac or Windows 
    machine to give it a shot. I'd try a Mac first, just because Windows 
    sometimes has a habit of offering to format things it can't read.
    
    Save yourself a lot of hassle if it does work.
    
    -ajb
    
  • [Eug-lug] teh meetin’ eh



    Mr OThu Dec 4 15:01:29 PST 2008

    It's on. Same Tux time, same Tux channel.
    
    Drinks are plenty adequate still. Chips are really low. Still chocolate covered something, Twizzlers, & crackers.
    
    That be all,
    Mr O.
    
    
          
    
  • [Eug-lug] Broken SD card



    Allen BrownThu Dec 4 15:00:20 PST 2008

    When I started to follow those instructions I realized that even
    my experimental computer was an Ubuntu release behind.  (My
    working computer is 2 releases behind.)  So I am now downloading
    8.10 to install on the experimental.  I will then use the instructions
    you have pointed to to compile the kernel and tweak the driver.
    All of this will take a long time, probably several days.  The
    CD download is going slowly.  And the compile will probably
    take a full day.  (The experimental computer is quite old.)
    Plus I will be doing the compile twice, once to prove I can
    make a clean kernel, and again with the tweaked driver.
    I will post progress.
    
    Of course all of this is speculative.  There is little reason to
    believe the tweaked driver will allow me to dd anything useful.
    It's little more than a shot in the dark.  So I am still open
    to other alternatives.  (With crossed fingers.)
    -- 
    Allen Brown
    http://brown.armoredpenguin.com/~abrown
    
    > The latter web page does have instructions on installing the kernel.
    > They look okay to me, and they appear to install the modules too.
    >
    > https://help.ubuntu.com/community/Kernel/Compile#Install%20the%20new%20kernel
    >
    > Once you have a working kernel build area, you can update the module
    > the easy way.
    >
    >     cp .../mydriver.ko /lib/modules/.../
    >     rmmod mydriver
    >     modprobe mydriver
    >
    > There may be more to it than that.  If other modules depend on the one
    > you're modifying, you'll have to unload and reload them too.
    > And once in a while you'll have to reboot anyway.
    >
    > Your approach, commenting out the check and seeing what happens,
    > is what I'd probably do.
    >
    > On Wed, Dec 3, 2008 at 9:16 PM, Allen Brown <abrown at peak.org> wrote:
    >> I spent last month in Australia.  I collected two weeks of
    >> pictures, amounting to approximately 5GB, onto a 16GB SD
    >> card.  Until the card stopped being readable by my Nokia
    >> n800.
    >>
    >> I then bought a new 16GB SD card and stored the rest of
    >> the two weeks on it.  Another 5GB.
    >>
    >> The second SD card is still good.  I have transferred those
    >> pictures to my main computer.  I plan to edit and post them soon.
    >>
    >> The first SD card is a problem.  If not for the pictures on it
    >> I would simply throw it away.  But those pictures are irreplaceable.
    >>
    >> When I plug in the first SD card dmesg reports
    >> 21638.906250] mmc1: unrecognised SCR structure version 5
    >>
    >> A friend (who is much more familiar with kernel internals)
    >> said:
    >>  It would appear that the relevant code is:
    >>        scr_struct = UNSTUFF_BITS(resp, 60, 4);
    >>        if (scr_struct != 0) {
    >>                printk("%s: unrecognised SCR structure version %d\n",
    >>                        mmc_hostname(card->host), scr_struct);
    >>                mmc_card_set_bad(card);
    >>                return;
    >>        }
    >>
    >>  So it only expects "0" in the field, and you have two bits picked.
    >>
    >>  This doesn't bode well.
    >>
    >> Indeed our attempts to plug it in and read raw data from the
    >> scsi device have failed.  I wondered if I could get anything
    >> useful by disabling the check above.
    >>
    >> That takes me to recompiling the kernel.  I followed along on
    >> http://www.howtoforge.com/kernel_compilation_ubuntu_p2
    >> and https://help.ubuntu.com/community/Kernel/Compile
    >>
    >> I'm not sure if my Ubuntu system doesn't match the author's.
    >> But I had to takes some steps they don't mention.  And their
    >> description is ambiguous in some places.  But I finally
    >> managed to compile the kernel.  However, the instructions
    >> don't go far enough.  Under the 2.4 kernel (which I got good
    >> at compiling) there was a separate install step.  There is
    >> no mention of that on these web sites.  And yet, it seems clear
    >> that this is necessary.
    >>
    >> OK, so I can copy the kernel easily enough to /boot and modify
    >> the grub file.  But what about the modules?  I don't know what
    >> to do.  And all of this is a waste of time if I can't modify
    >> the modules.  After all, the code I need to modify is almost
    >> certainly in the sd module.  (I haven't bothered to search it
    >> down since first I wanted to test run a kernel I had compiled.)
    >>
    >> So the questions I have are:
    >> 1. Is this a reasonable approach to recovering a broken SD card?
    >> 2. Do you know of a good way to recover an SD card?
    >> 3. How do you install the kernel modules?
    >> --
    >> Allen Brown  abrown at peak.org
    >> http://brown.armoredpenguin.com/~abrown/
    >>  A bus station is where a bus stops.  A train station is where a train
    >>  stops.  On my desk, I have a workstation.  What more can I say? -- anon
    >> _______________________________________________
    >> EUGLUG mailing list
    >> euglug at euglug.org
    >> http://www.euglug.org/mailman/listinfo/euglug
    >>
    >
    >
    >
    > --
    > Bob Miller                              K<bob>
    >                                         kbob at jogger-egg.com
    >
    
    
    
  • [Eug-lug] Broken SD card



    Allen BrownThu Dec 4 14:50:41 PST 2008

    > Allen Brown wrote:
    >>
    >> So the questions I have are:
    >> 1. Is this a reasonable approach to recovering a broken SD card?
    >> 2. Do you know of a good way to recover an SD card?
    >> 3. How do you install the kernel modules?
    >
    > I've had a lot of luck with http://www.cgsecurity.org/wiki/PhotoRec for
    > recovering accidentally deleted files and
    > http://www.cgsecurity.org/wiki/TestDisk for drives I've borked.
    
    Yes, this may be useful after I dd the data.  Assuming it isn't
    totally corrupt.
    
    > I'm not if they'll help you if you can't even dd the data from the disk,
    > though.
    >
    > To ask the obvious question, you have tried to read the disk in someone
    > else's reader, yes?
    >
    > -ajb
    
    Snaturally!  I've tried 6 readers.  Either they fail to recognize
    any SD bigger than 2GB, or they report invalid SCR.  All of these
    have been Linux.  I don't really have access to any of the other
    (usually inferior) OSs.
    -- 
    Allen Brown  abrown at peak.org  http://brown.armoredpenguin.com/~abrown/
      I am not really an actor, I just play one on television.  --- A.B.
    
    
    
  • [Eug-lug] Broken SD card



    Bob MillerThu Dec 4 11:48:30 PST 2008

    The latter web page does have instructions on installing the kernel.
    They look okay to me, and they appear to install the modules too.
    
    https://help.ubuntu.com/community/Kernel/Compile#Install%20the%20new%20kernel
    
    Once you have a working kernel build area, you can update the module
    the easy way.
    
        cp .../mydriver.ko /lib/modules/.../
        rmmod mydriver
        modprobe mydriver
    
    There may be more to it than that.  If other modules depend on the one
    you're modifying, you'll have to unload and reload them too.
    And once in a while you'll have to reboot anyway.
    
    Your approach, commenting out the check and seeing what happens,
    is what I'd probably do.
    
    On Wed, Dec 3, 2008 at 9:16 PM, Allen Brown <abrown at peak.org> wrote:
    > I spent last month in Australia.  I collected two weeks of
    > pictures, amounting to approximately 5GB, onto a 16GB SD
    > card.  Until the card stopped being readable by my Nokia
    > n800.
    >
    > I then bought a new 16GB SD card and stored the rest of
    > the two weeks on it.  Another 5GB.
    >
    > The second SD card is still good.  I have transferred those
    > pictures to my main computer.  I plan to edit and post them soon.
    >
    > The first SD card is a problem.  If not for the pictures on it
    > I would simply throw it away.  But those pictures are irreplaceable.
    >
    > When I plug in the first SD card dmesg reports
    > 21638.906250] mmc1: unrecognised SCR structure version 5
    >
    > A friend (who is much more familiar with kernel internals)
    > said:
    >  It would appear that the relevant code is:
    >        scr_struct = UNSTUFF_BITS(resp, 60, 4);
    >        if (scr_struct != 0) {
    >                printk("%s: unrecognised SCR structure version %d\n",
    >                        mmc_hostname(card->host), scr_struct);
    >                mmc_card_set_bad(card);
    >                return;
    >        }
    >
    >  So it only expects "0" in the field, and you have two bits picked.
    >
    >  This doesn't bode well.
    >
    > Indeed our attempts to plug it in and read raw data from the
    > scsi device have failed.  I wondered if I could get anything
    > useful by disabling the check above.
    >
    > That takes me to recompiling the kernel.  I followed along on
    > http://www.howtoforge.com/kernel_compilation_ubuntu_p2
    > and https://help.ubuntu.com/community/Kernel/Compile
    >
    > I'm not sure if my Ubuntu system doesn't match the author's.
    > But I had to takes some steps they don't mention.  And their
    > description is ambiguous in some places.  But I finally
    > managed to compile the kernel.  However, the instructions
    > don't go far enough.  Under the 2.4 kernel (which I got good
    > at compiling) there was a separate install step.  There is
    > no mention of that on these web sites.  And yet, it seems clear
    > that this is necessary.
    >
    > OK, so I can copy the kernel easily enough to /boot and modify
    > the grub file.  But what about the modules?  I don't know what
    > to do.  And all of this is a waste of time if I can't modify
    > the modules.  After all, the code I need to modify is almost
    > certainly in the sd module.  (I haven't bothered to search it
    > down since first I wanted to test run a kernel I had compiled.)
    >
    > So the questions I have are:
    > 1. Is this a reasonable approach to recovering a broken SD card?
    > 2. Do you know of a good way to recover an SD card?
    > 3. How do you install the kernel modules?
    > --
    > Allen Brown  abrown at peak.org  http://brown.armoredpenguin.com/~abrown/
    >  A bus station is where a bus stops.  A train station is where a train
    >  stops.  On my desk, I have a workstation.  What more can I say? -- anon
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    
    
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com