Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RPI3 sd lockups?



michael.cheponis%gmail.com@localhost said:
> Is there a preferred way to determine which sectors are bad on the old SD
> card? 

My reading is that's not the right question.

There is a layer of firmware between what looks like a real disk and the 
hardware where the bits live.  You can't erase/rewrite a block.  You have to 
erase huge chunks.  There is a table that tells it where each block lives.  
When you write a block, it appends your data to the end of the currently 
active chunk and updates the slot in the table.  That requires a garbage 
collection mechanism.  ...

The card starts with some extra space and kicks out bad blocks as it find 
them.  Those bad blocks are in an address space that you can't get to.  The 
blocks you can read/write are the address to the table.  The blocks that go 
bad are the contents of the slots in that table.


For an interesting read, try this:
   https://www.bunniestudios.com/blog/?page_id=1022


-- 
These are my opinions.  I hate spam.






Home | Main Index | Thread Index | Old Index