Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

N101 SDcard FAT corruption issue - This makes any SDcard pretty much UNUSABLE!

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

    N101 SDcard FAT corruption issue - This makes any SDcard pretty much UNUSABLE!

    OK folks I have been doing quite a bit of testing and trying to nail down the External SDcard corruption issue.

    In a nut shell this is what I found. If you copy files from anywhere OTHER than the internal SDcard (from EXT4 files system) to the external SDcard (FAT file system) there seems to be no issues.

    If you copy single files from internal SDcard (FAT) to the external SDcard (FAT) there also appears to be no issues.

    However if you try to copy a large amount of directories with files in them from internal SDcard (FAT) to external SDCard (FAT) then file system corruption of the external SDcard always seems to happen.

    For now until I find the problem, you can format your SDCard as NTFS. However doing so means that ClockWork recovery cannot use the external SDCard. ClockWork requires a FAT file system.

    I believe the issue is how the FAT file systems are mounted and read ahead. I will be looking to solve this issue if it is possible (not in the kernel).

    Bob
    "Pzebacz im, bo nie wiedzą, co czynią"
    "Прости им, они не ведают, что творят"
    "Perdona loro perché non sanno quello che fanno"
    "Vergib ihnen, denn sie wissen nicht, was sie tun"
    "Vergeef hen want ze weten niet wat ze doen"
    "Pardonne-leur car ils ne savent pas ce qu'ils font"
    "Perdónalos porque no saben que lo que hacen"
    "Oprosti im, jer ne znaju što čine"
    "Forgive them as they know not what they do"






    #2
    Sheesh.... this SDcard corruption issue is really bad. I cannot even do a titanium backup to external sdcard! It corrupts the file system every time when the SDcard is formatted as FAT.

    I am still looking into this. As I see it now there are 2 problems around this.

    1) The tablet waking up from sleep reporting SDCard has been unexpectedly removed. This is related to wifi. If you turn off wifi in sleep so wifi stays alive, this issue no longer happens.

    2) Copying a large amount of files to external SDcard is just a total mess. This one may not be fixable by me. I am going to start taking files from the n90 related to sdcard management (bin and lib files) and see if we can fix this. However it maybe a driver issue in the kernel! If so, we have to wait for Yuandao.

    So just to update you. I have found a few more bugs that are just slightly annoying but this SDcard corruption issue is the biggest ROM issue I see at the moment.

    Bob
    "Pzebacz im, bo nie wiedzą, co czynią"
    "Прости им, они не ведают, что творят"
    "Perdona loro perché non sanno quello che fanno"
    "Vergib ihnen, denn sie wissen nicht, was sie tun"
    "Vergeef hen want ze weten niet wat ze doen"
    "Pardonne-leur car ils ne savent pas ce qu'ils font"
    "Perdónalos porque no saben que lo que hacen"
    "Oprosti im, jer ne znaju što čine"
    "Forgive them as they know not what they do"





    Comment


      #3
      Is it the same Bob formatted as original fat and fat32?

      Sent from my SK17i using Tapatalk 2
      Please consider donating to purchase tablets for Finless Bob to continue his work. This will help in the creation of custom roms and build an even stronger development base for our community. Thank you for you support!

      PLEASE CLICK THE DONATE BUTTON BELOW

      <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <input type="hidden" name="cmd" value="_s-xclick">
      <input type="hidden" name="hosted_button_id" value="3GN5JFZXXQLCA">
      <input type="image" src="http://www.freaktab.com/attachment.php?attachmentid=565&d=1341333954&thumb =1" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
      https://www.paypalobjects.com/en_GB/i/scr/pixel.gif
      </form>

      Comment


        #4
        Or would it make any difference if it was formatted in linux or in windows. I know that windows 7 formatting system looks a bit Different to that in xp also.

        I supposed you have ruled all this out anyway just thought I would throw it in there.

        Sent from my SK17i using Tapatalk 2
        Please consider donating to purchase tablets for Finless Bob to continue his work. This will help in the creation of custom roms and build an even stronger development base for our community. Thank you for you support!

        PLEASE CLICK THE DONATE BUTTON BELOW

        <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="3GN5JFZXXQLCA">
        <input type="image" src="http://www.freaktab.com/attachment.php?attachmentid=565&d=1341333954&thumb =1" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
        https://www.paypalobjects.com/en_GB/i/scr/pixel.gif
        </form>

        Comment


          #5
          If you format it as NTFS then no problems with corruption. BUT then you cannot do ClockWork backups to the SDcard. Clockwork support FAT for backups. I know CLockwork will also read/write EXT4 for APPs2SD support etc. I have not tested to see if the entire SDcard formatted EXT4 will work though. Also realize you PC wont read EXT4.

          However, since the kernel support NTFS native I may see if I can mod Clockwork to work with NTFS. It just might with some mods.

          Bottom line the FAT issue needs to be fixed.

          Bob
          "Pzebacz im, bo nie wiedzą, co czynią"
          "Прости им, они не ведают, что творят"
          "Perdona loro perché non sanno quello che fanno"
          "Vergib ihnen, denn sie wissen nicht, was sie tun"
          "Vergeef hen want ze weten niet wat ze doen"
          "Pardonne-leur car ils ne savent pas ce qu'ils font"
          "Perdónalos porque no saben que lo que hacen"
          "Oprosti im, jer ne znaju što čine"
          "Forgive them as they know not what they do"





          Comment


            #6
            This is a Kernel issue!

            I have 100% confirmed that the SDcard corruption issue is in the kernel. It's also possible this could be a hardware issue but I doubt it since NTFS works and has no issues with corruption.

            How do I know it a kernel issue?
            1) Check your SDcard with a PC. Format it fresh if you like.
            2) With the tablet powered off, plug in the SDcard.
            3) Power up into ClockWork recovery (You need my ROM to do that). Do a CWM backup.
            4) Power down and check your SDCard with a PC. You will find it is corrupted.

            The only part of CWM that uses anything from the Yuandao ROM is the kernel and rk30xxnand_ko.ko module.

            So now to see if I can mod CWM recovery to support NTFS since the kernel supports it.

            Bob
            "Pzebacz im, bo nie wiedzą, co czynią"
            "Прости им, они не ведают, что творят"
            "Perdona loro perché non sanno quello che fanno"
            "Vergib ihnen, denn sie wissen nicht, was sie tun"
            "Vergeef hen want ze weten niet wat ze doen"
            "Pardonne-leur car ils ne savent pas ce qu'ils font"
            "Perdónalos porque no saben que lo que hacen"
            "Oprosti im, jer ne znaju što čine"
            "Forgive them as they know not what they do"





            Comment


              #7
              Man I have been working on this issue all night.

              What does NOT make sense to me is if this is a kernel driver issues with handling the SDCard, then why does NTFS work? EXT4 and EXT2 also work! Is it because the file system can deal with RW issues better than FAT? Possibly.....

              What I am trying to do now is get my ClockWork MOD to support NTFS. Alas it's just not happening. I have tried several times now but ClockWork will mount SDCard formatted as ETX2, ETX3, or ETX4. But even though this kernel supports NTFS, Clockwork refuses to mount it as NTFS. Oh yes... I have supplied all the modeules and libs needed. Yet still no go on NTFS....

              So I figured OK... lets go with EXT4 then. Windows now has a driver that will read and write EXT4 so why not?
              Crap... here is why! Clockwork is fine with EXT4 on the SDcard. But the Android OS does not. It shows SDcard as needs formatting. WTF? So I figured out a way to mod vold.fstab so SDcard can be supported as EXT4.

              BUT... what a major change to a ROM to do this! This means from this point on, your SDcard must be formatted by a linux box PERIOD!!!!!!
              Not very fun sounding to most people out there.
              Yet... when setup this way, it does do CWM backups and restores perfectly!

              _______________

              FYI, folks... this issue is SERIOUS! Do not try to do titanium backups to SDcard when formatted FAT! It says it worked but you will find it cannot restore as the SDcard is corrupted! If you use and enjoy Titanium backup, format your SDcard as NTFS! But of course CWM becomes useless at that point. Also DO NOT use CWM to backup to a FAT formatted SDcard! It will be corrupt!
              So with my current CWM, only choice is to backup to internel SDcard! Then copy the clockwork folder to your PC for later flashing of ROMs

              _______________


              Bottom line.... I cannot fix this to work with FAT. This is totally a kernel issue with SDcard drivers and proper support of FAT.

              I am going to work on this more to hopefully find a solutiuon. At least maybe get CWM to write to FAT SDcard with no issues..... but alas.... Yuandao really needs to fix the FAT issue.

              Bob
              "Pzebacz im, bo nie wiedzą, co czynią"
              "Прости им, они не ведают, что творят"
              "Perdona loro perché non sanno quello che fanno"
              "Vergib ihnen, denn sie wissen nicht, was sie tun"
              "Vergeef hen want ze weten niet wat ze doen"
              "Pardonne-leur car ils ne savent pas ce qu'ils font"
              "Perdónalos porque no saben que lo que hacen"
              "Oprosti im, jer ne znaju što čine"
              "Forgive them as they know not what they do"





              Comment


                #8
                I think we need to be contacting yUandao Chinese company or not.

                Hopefully they have some English people that can read English emails or just translate them with Google translate

                Or even better the companies we have bought the tablet from to put pressure on Yuandao

                Sent from my SK17i using Tapatalk 2
                Please consider donating to purchase tablets for Finless Bob to continue his work. This will help in the creation of custom roms and build an even stronger development base for our community. Thank you for you support!

                PLEASE CLICK THE DONATE BUTTON BELOW

                <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                <input type="hidden" name="cmd" value="_s-xclick">
                <input type="hidden" name="hosted_button_id" value="3GN5JFZXXQLCA">
                <input type="image" src="http://www.freaktab.com/attachment.php?attachmentid=565&d=1341333954&thumb =1" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
                https://www.paypalobjects.com/en_GB/i/scr/pixel.gif
                </form>

                Comment


                  #9
                  This issue also plagues the cube u30gt (same chip, likelly same kernel give or take even).

                  Comment


                    #10
                    Originally posted by pholklore View Post
                    This issue also plagues the cube u30gt (same chip, likelly same kernel give or take even).
                    Did anyone aware when use old firmware : OFW 20120709 did not happen on sdcard corrupt at FAT32.
                    Any detalis of the firmware see at : http://vondroid.com/viewtopic.php?f=79&t=424
                    But this firmware issue on battery.
                    Thanks for your attention.

                    Regards,
                    Antony W

                    Comment


                      #11
                      Since I know it is a kernel issue I will try that ROM and then that kernel on the later build.

                      We shall see if it fixes it.

                      Bob
                      "Pzebacz im, bo nie wiedzą, co czynią"
                      "Прости им, они не ведают, что творят"
                      "Perdona loro perché non sanno quello che fanno"
                      "Vergib ihnen, denn sie wissen nicht, was sie tun"
                      "Vergeef hen want ze weten niet wat ze doen"
                      "Pardonne-leur car ils ne savent pas ce qu'ils font"
                      "Perdónalos porque no saben que lo que hacen"
                      "Oprosti im, jer ne znaju što čine"
                      "Forgive them as they know not what they do"





                      Comment


                        #12
                        UPDATE

                        OK so I was asked to try the 0709 ROM to see if it also has SDcard corruption.

                        Since I know this is a kernel issue as CWM backups corrupt SDcard, I tried the 3 known kernels. We already know #485 has a corruption issue.

                        So I first tried kernel #338. Sorry to say it also has a corruption issue.

                        Then I tired kernel #454 from the 0709 ROM as asked above....
                        Now are you holding your breath?
                        Nope... same problem. SDcard corruption.

                        More testing to come. I want to see if this is really a corruption or Windows just thinks it is? Maybe Android handles this and it's possible Windows just sees this as a corruption.

                        Bob
                        "Pzebacz im, bo nie wiedzą, co czynią"
                        "Прости им, они не ведают, что творят"
                        "Perdona loro perché non sanno quello che fanno"
                        "Vergib ihnen, denn sie wissen nicht, was sie tun"
                        "Vergeef hen want ze weten niet wat ze doen"
                        "Pardonne-leur car ils ne savent pas ce qu'ils font"
                        "Perdónalos porque no saben que lo que hacen"
                        "Oprosti im, jer ne znaju što čine"
                        "Forgive them as they know not what they do"





                        Comment


                          #13
                          hi!
                          I ported your ROM 1.4 for N101 to N70, with your credits of course. And i encountered the same problem with sd-card corruption when making backup from CWM. But when i fully formatted sd-card (2gb) with block size 8192 and ran three full backups from cwm, still no corruption at all. Can you investigate this issue? Thanks!
                          PS Sorry for my bad english

                          Comment


                            #14
                            Hmmm OK I will try that myself! Actually that makes sense as this is how my ROMs manage file blocking.

                            Thanks for the tip and I will try.

                            FYI, your English is better than some Americans I know, so no worries there my friend!

                            Bob
                            "Pzebacz im, bo nie wiedzą, co czynią"
                            "Прости им, они не ведают, что творят"
                            "Perdona loro perché non sanno quello che fanno"
                            "Vergib ihnen, denn sie wissen nicht, was sie tun"
                            "Vergeef hen want ze weten niet wat ze doen"
                            "Pardonne-leur car ils ne savent pas ce qu'ils font"
                            "Perdónalos porque no saben que lo que hacen"
                            "Oprosti im, jer ne znaju što čine"
                            "Forgive them as they know not what they do"





                            Comment


                              #15
                              quick query can someone tell me how to get the unit to recognise the SD card in the first place

                              Originally posted by Finless View Post
                              Hmmm OK I will try that myself! Actually that makes sense as this is how my ROMs manage file blocking.

                              Thanks for the tip and I will try.

                              FYI, your English is better than some Americans I know, so no worries there my friend!

                              Bob
                              quick query can someone tell me how to get the unit to recognise the SD card in the first place

                              Michael

                              Comment

                              Working...