View previous topic :: View next topic |
Author |
Message |
eccerr0r Watchman

Joined: 01 Jul 2004 Posts: 6585 Location: almost Mile High in the USA
|
Posted: Thu Oct 24, 2013 6:20 am Post subject: SD card (re-)formatting in Linux |
|
|
Well apparently sdcard has a special formatter for Windows/MacOS https://www.sdcard.org/downloads/formatter_4/ -- but of course this is not acceptable for Linux. Anyone took a look at what this formatter program does to SD cards?
I've heard a lot of anecdotal evidence that simply using FORMAT or mkfs has the possibility of shortening the life of SD cards... but doesn't quite make sense to me if wear levelling is working properly... _________________ Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching? |
|
Back to top |
|
 |
smartass Apprentice

Joined: 04 Jul 2011 Posts: 189 Location: right behind you ... (you did turn around, didn't you?)
|
Posted: Thu Oct 24, 2013 7:22 am Post subject: |
|
|
If the kernel driver exposed the "SD Protected area" in the block device, it could be formatted. So it might be a question of the driver used. |
|
Back to top |
|
 |
eccerr0r Watchman

Joined: 01 Jul 2004 Posts: 6585 Location: almost Mile High in the USA
|
Posted: Sun Oct 27, 2013 8:52 pm Post subject: |
|
|
Then there's still the upper layer user software, now is that available somewhere?
I suspect the card readers that show SD cards as simple block devices may have that support missing, but perhaps the ones that show up as mmcblk may have some hope...? _________________ Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching? |
|
Back to top |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2045 Location: Germany
|
Posted: Sun Oct 27, 2013 9:35 pm Post subject: |
|
|
I have formated a lot of SD cards in card readers or in my camera - and I never used special software or had problems. _________________ Study finds stunning lack of racial, gender, and economic diversity among middle-class white males
I identify as a dirty penismensch. |
|
Back to top |
|
 |
TheLexx Tux's lil' helper


Joined: 04 Dec 2005 Posts: 111 Location: Austin Tx
|
Posted: Sun Oct 27, 2013 10:44 pm Post subject: |
|
|
energyman76b wrote: | I have formated a lot of SD cards in card readers or in my camera - and I never used special software or had problems. |
Same here, I bought a 5USD device that plugs into USB and the sd card acts (and formats, mkfs...) just like a normal thumb drive. |
|
Back to top |
|
 |
eccerr0r Watchman

Joined: 01 Jul 2004 Posts: 6585 Location: almost Mile High in the USA
|
Posted: Mon Oct 28, 2013 3:41 am Post subject: |
|
|
I haven't had any problems (yet) with the SD readers but wondering what the sdformat utility does in windows that does something "magical"... and whether it can be replicated in Linux.
I've had two SD-class cards fail on me so far:
1 8GB MicroSDHC
1 1GB SD
I don't know what caused them to fail but they are completely unusable - can't write to the root block device anymore with the /dev/sd* readers... I also have an 8GB and a 16GB SDHC cards formatted ext2 that are "so far, so good"... _________________ Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching? |
|
Back to top |
|
 |
Tolstoi l33t


Joined: 20 May 2004 Posts: 670
|
Posted: Mon Oct 28, 2013 5:36 am Post subject: |
|
|
Just two or three days ago I formatted a SD card on Windows to exFAT as one partition. Taking a look at it under Linux reveales three partitions. WTF? |
|
Back to top |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2045 Location: Germany
|
Posted: Mon Oct 28, 2013 6:32 pm Post subject: |
|
|
eccerr0r wrote: | I haven't had any problems (yet) with the SD readers but wondering what the sdformat utility does in windows that does something "magical"... and whether it can be replicated in Linux.
|
why do you think it does anything 'magical' at all? Maybe it is just a wrapper to make it possible for users to format sdcards without the need to give them the admin pw? _________________ Study finds stunning lack of racial, gender, and economic diversity among middle-class white males
I identify as a dirty penismensch. |
|
Back to top |
|
 |
eccerr0r Watchman

Joined: 01 Jul 2004 Posts: 6585 Location: almost Mile High in the USA
|
Posted: Mon Oct 28, 2013 8:44 pm Post subject: |
|
|
Well we know that SD cards' wear levelling is not nearly as good as a full sized SSD. I'm pretty sure they made some shortcuts to not have to implement an extensive wear levelling system, which then allows them to make the cards cheaper.
I've never tried formatting the card in windows with Format, then again I always have admin rights. That seems to be a security hole if they can work around permissions that way. |
|
Back to top |
|
 |
|