Live data from Hacker News

SD Memory Card Formatter for Linux

sdcard.org

31–40 of 60 posts

Re: SD Memory Card Formatter for Linux

#31

Earlier quoted context omitted.

It may be proprietary but it's developed by Tuxera, the same lads who created and maintain the NTFS drivers for Linux.

SD Cards have computers inside of them. Security conscious users will be really worried using a blob for their stuff.

Are there any open source sd card firmwares?

Would be an interesting project, I have no idea how you could reprogram them though.

Re: SD Memory Card Formatter for Linux

#33
Late April fools??? "Protected area" but not protected against formatting? (Unspecified) performance issues? But each and every camera, OS, or other device will happily format and use SD cards w/o problems? Sounds VERY strange to me...

Re: SD Memory Card Formatter for Linux

#34
post #22

How is this better than dd(1)? Does it "format" the card with any specific filesystem or just overwrite/erase its contents?

The answer is in the third paragraph.

> SD/SDHC/SDXC Cards have a “Protected Area” for SD Card security purposes. The SD Memory Card Formatter does not format the protected area in the SD/SDHC/SDXC Cards. The protected area shall be formatted by an appropriate PC application or SD host devices that provide SD security function.

Re: SD Memory Card Formatter for Linux

#35
post #19

I've always formatted SD cards like any other block device. This page mentions a secure section of the card that can somehow reduce performance if you don't treat it specially? What is this security section for, and do standard UNIXy partitioning tools have the ability to handle them properly, or do I have to use this proprietary(?) tarball if I want good SD performance?

IIRC there is a reserved area in the beginning of th SD cards flash which is used for internal housekeeping. When this area is overwritten/formatted the card is bricked. [add] The size depends on the size of the card. I think it is around 32KB on cards with a capacity under 2GB.

The reserved areas are managed by the ARM cores running inside the SD cards. Your host machine doesn't see them.

In some SD cards you can use proprietary magical commands to communicate with the firmware and update it or ask it to mess with the hidden sections for you, but those options aren't exposed to any disk copy tool I know of.

Re: SD Memory Card Formatter for Linux

#36
post #19

Earlier quoted context omitted.

IIRC there is a reserved area in the beginning of th SD cards flash which is used for internal housekeeping. When this area is overwritten/formatted the card is bricked. [add] The size depends on the size of the card. I think it is around 32KB on cards with a capacity under 2GB.

I'm dubious about this claim, I have completely destroyed the partition table and mkfs on the raw device...

Unless that was an mtd device then you weren't really writing to the raw device

Re: SD Memory Card Formatter for Linux

#37

Console hacking forum users such as gbatemp stress the use of "Panasonic SD formatter" when formatting SD cards as FAT32 and guiformat for exFAT, I don't know if there is a reason behind this advice or if it's just cargo culting.

My experience is that both of these tools do something for aligning partitions or file systems that a regular right click+format won't do. I've had SD cards fail to boot in a Raspberry Pi because of these small details.

I don't think they do anything that other formatting tools can't do, but they do make the alignment much easier by defaulting to the right options.

Re: SD Memory Card Formatter for Linux

#38
post #34
post #22

How is this better than dd(1)? Does it "format" the card with any specific filesystem or just overwrite/erase its contents?

The answer is in the third paragraph. > SD/SDHC/SDXC Cards have a “Protected Area” for SD Card security purposes. The SD Memory Card Formatter does not format the protected area in the SD/SDHC/SDXC Cards. The protected area shall be formatted by an appropriate PC application or SD host devices that provide SD security function.

If this "protected area" even exists [1], both dd(1) and this thing seem not to touch it. So no difference here.

[1] Never heard of it and I've erased and recreated partition tables on SD cards multiple times with no "bricking"; maybe it's a feature of cards supplied with "encryption software"?

Re: SD Memory Card Formatter for Linux

#40

I am betting this came out because of Valve steam deck popularity. A linux based device that uses sdcards

Not many smartphones or cameras run Windows either, if this being for Linux is what you're talking about. I'm also not sure why they'd bother with multiple cpu architectures in such a case. Sdcards are so widespread, I really don't think Steamdeck is what made them think they might need a raspberry pi, arch linux, and debian 10(!) release.
Post reply on HN