On Aug 24, 2014, at 10:59 AM, Flash ROM <flashromg...@yandex.com> wrote: > > 1) Formatting and repartitioning SD card? Generally WORST IDEA EVER.
All cameras have a format function, and this function both partitions and formats (creates a filesystem/volume format). If they can get away with it, so can anyone else. > While it sounds dumb, this strange thing being done to put partition table in > separate erase block, so it never read-modify-written when FAT entries are > updated. Should something go wrong, FAR can recover from backup copy. But > erased partition table just suxx. Then, FAT tables are aligned in way to fit > well around erase block bounds. I think you seriously overestimate the knowledge of camera manufacturer's about the details of flash storage; and any ability to discover it; and any willingness on the part of the flash manufacturer to reveal such underlying details. The whole point of these cards is to completely abstract the reality of the underlying hardware from the application layer - in this case the camera or mobile device using it. Also, with SDXC exFAT is now specified. And it has only one FAT there isn't a backup FAT. So they're even more difficult to recover data from should things go awry filesystem wise. > This said, you can *try* to reformat, BUT no standard OS of firmware > formatter will help you with default settings. They can't know geometry of > underlying NAND and controller properties. There is no standard, widely > accepted way to get such information from card. No matter if you use OS > formatter, camera formatter or whatever. YOU WILL RUIN factory format (which > is crafted in best possible way) and replace it with another, very likely > suboptimal one. It's recommended by the card manufacturers to reformat it in each camera its inserted into. It's the only recommended way to "erase" the sd card for re-use, they don't recommend selectively deleting images. And it's known that one camera's partition table and formatting can irritate another camera make/model if the card isn't reformatted by that camera. > So once you trashed factory filesystem, you're really on your own and > proceeding on your own risk. Absurd. It's recommended *by* both device manufacturers (cameras and mobile devices) that consume such cards, as well as the cards' manufacturers. The workflow you're proposing for SD Cards is as a write once device with no practical way of deleting the files on it. Chris Murphy -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html