In which zone of ​​a flash memory could a write that will not get erase by formatting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gilberto Gil
    New Member
    • Jun 2011
    • 14

    In which zone of ​​a flash memory could a write that will not get erase by formatting

    Hello, I'm new here, english is not my native language, but I'm gonna do my best.

    I need to know in wich zone or byte(s) could I write a few lines (in flash memory) that do not get erase after format the flash.......

    I really apreciate any help...thanks in advance
  • mac11
    Contributor
    • Apr 2007
    • 256

    #2
    What are you trying to accomplish exactly?

    In general, if your program can write to some flash you (or somebody else/the OS) can erase it later.

    Also "flash" is a really general concept. What specific "flash" are you dealing with? SD card, thumb drive, etc?

    Comment

    • Gilberto Gil
      New Member
      • Jun 2011
      • 14

      #3
      Sorry,, i've not been exact at all...

      I have a group of flash memories, not sd, just the common memories that we use to transport information all the time. the problem is that i need to mark this flash and asociate this mark with some password that the user of the flash could has.. I could do this encripting some file and copying it like normal data into the flash memory, but the problem is that it is a common file that any user could see and erase as you said, i need to achieve that in a low level(I guess) that the common user could not see the mark and even could not erase it by normal ways.........

      I apreciate you are helping me up......sorry my english

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        There's nothing that will prevent the formatting of a disk, one way or another. Especially not in C#.

        Comment

        • Gilberto Gil
          New Member
          • Jun 2011
          • 14

          #5
          Exactly, so i need to write my little thing in a part of the memory that doesn't erase by formating....do you know what I mean. the thing is to keep whatever i'v writen even after formating...
          The question is...when a disk is formated is writen all it's sapace of the partition? or is there any part that is not writen?.....aga in, sorry my english

          Comment

          • Rabbit
            Recognized Expert MVP
            • Jan 2007
            • 12517

            #6
            There's no way of doing it without creating custom firmware to replace what's on the USB. Much akin to what the U3 platform does on the SanDisk drives.

            Comment

            • Gilberto Gil
              New Member
              • Jun 2011
              • 14

              #7
              But i have different types of memories, from diferents manufacturer,st ill could i do this?

              Comment

              • Rabbit
                Recognized Expert MVP
                • Jan 2007
                • 12517

                #8
                I'm not sure what you mean. You can hack and crack almost anything. But we're talking about custom firmware here, it's not a simple task. We are talking about technical knowledge well beyond a vast majority of the population.

                There's always option two, which is fabrication, but if the first option is difficult, option two will be near impossible for most people.

                Do yourself a favor and just buy some encrypted flash drives. The work is already done for you.

                Comment

                • Curtis Rutland
                  Recognized Expert Specialist
                  • Apr 2008
                  • 3264

                  #9
                  And there's no way that you can do this with C#, or .NET period. If it is even possible, you're looking at Assembler or C.

                  Comment

                  • johny10151981
                    Top Contributor
                    • Jan 2010
                    • 1059

                    #10
                    To understand what you want and what you can do, you need to know some issues. Like

                    What is Disk Format?

                    do you think format erase the disk?

                    No. Not completely. Format create the definition of the storage. i.e. How data will be stored, how they will be read and write, etc..

                    Do you know what is the format of your flash drive?

                    I can guess FAT32 or may be NTFS

                    To protect your specific data........ You better design your own FORMAT. Cause in typical formatting system like FAT, FAT32, NTFS, EXT or other file format they don't protect special memory portion.

                    Comment

                    • Gilberto Gil
                      New Member
                      • Jun 2011
                      • 14

                      #11
                      Thanks a lot everyone..
                      I can format all my flash mamories using FAT32, then a need to know if after i've formated the flash is there any part in wich could write my thing and where is this...
                      I could create my own format table(that is not an easy task, a think) or simply i could use FAT32 format if i really know if this format do not use some part of the memory then i could use it, that unused part.
                      Don't you think?

                      johny10151981.. you are rigth, but i need to mark the flash not simply to protect the data. But to protect the data is another that i've to do. and i've been thinking on your proposition.. to create my own format based on some format's architecture like some FATs formats

                      Comment

                      • Curtis Rutland
                        Recognized Expert Specialist
                        • Apr 2008
                        • 3264

                        #12
                        You're not going to be able to protect it from low level formatting. Basically, if your USB is seen as a disk, disk-editing programs can do whatever they want to it. They can erase your allocation table and anything else on the disk. Without your own custom firmware to prevent disk access, there's simply no way to do this. Just because you come up with your own format doesn't mean that someone else can't just wipe it out.

                        Comment

                        • Gilberto Gil
                          New Member
                          • Jun 2011
                          • 14

                          #13
                          Curtis.....it doesn't matter to me. because if the memory is formated at a low level the information will be a little more dificult to recover. doesn't matter if the information inside the memory is lost.. it will be just one more security level to mantain my information far from the people outside... :)

                          Comment

                          • Rabbit
                            Recognized Expert MVP
                            • Jan 2007
                            • 12517

                            #14
                            I don't think you're understanding what we're trying to say. What you want to do can not be done without writing custom firmware. Or fabricating custom hardware.

                            Comment

                            • Gilberto Gil
                              New Member
                              • Jun 2011
                              • 14

                              #15
                              O.K...then we can't definitly write the memory without writing custom firmware or etc.. ok then I can't mark in that way my flash memories....... but....Sorry..a re you saying that we can't write the flash memory in any way? neither at any hight level? if so... it's frustrating for me...i'm saying that for the other that i've to, create my own format and implement: copy, delete etc etc..do not forget that I don't care if the momery after my formating is formated again using for example FAT32 format.... i don't care if it happends. it will be just another security level, that common users couldn't using a FAT32 reader like windows to see what is inside the memory.

                              Comment

                              Working...