3

I have a Toshiba Class 10 64GB microSD that I want to use in a tablet (Cyanogenmod 11) by formatting it ext4.

So I did the usual thing (under Fedora 20): created a single Linux partition with sfdisk, then created the ext4 partition with mkfs.ext4 /dev/sdf1 without problems. Then, I just tried to mount it with mount -t ext4 /dev/sdf1 /mnt/sd/, but I got a journal error:

 JBD2: no valid journal superblock found
 EXT4-fs (sdf1): error loading journal 

Tried googling this, but didn't find anything useful.

Any ideas?

Thanks!

L.

Luis A. Florit
  • 181
  • 2
  • 9
  • If you have Windows handy, I suggest checking the card with [h2testw](http://www.heise.de/download/h2testw.html). It might simply be broken. Yes, this can also occur with new devices. – Daniel B Aug 17 '14 at 19:44
  • 1
    @DanielB: `mkfs.ext4 -c` shows no errors. – Luis A. Florit Aug 17 '14 at 19:46
  • 1
    Additionally please understand, that ext4 is an extremely poor fit for an SD card - it has a static journal, and SD cards typically have static block mapping - this means, that you will wear out the card in no time. – Eugen Rieck Aug 17 '14 at 20:04
  • @EugenRieck: My SD card was formatted exfat, but exfat has a nasty bug with caching files (acknowledge by Microsoft) that prevents to copy many small files on it in reasonable time. I've 55000 files to load to it, and failed many times because of this. I've my pen drives formatted ext3/4 for a long time now, without problems. Which problem are you referring to? Thanks. – Luis A. Florit Aug 17 '14 at 20:29
  • He’s referring to repeated writes to the same block(s). Because SD cards don’t do wear leveling, this block will be destroyed in no time. Buuut you can also use ext4 without journaling. :) – Daniel B Aug 17 '14 at 21:11
  • A memory pen ("USB Stick") typically has a dynamic block map, an SD card typically a static mapping. This means, that wearout of an SD card is higher (by orders of magnitude) than of an USB stick. YMMV, but I recommend something like YAFFS. – Eugen Rieck Aug 17 '14 at 21:38
  • I see. Anyway, I think I won't have the problem anymore since I had to disable the journaling to be able to format the SD card (my original problem), and now I can mount it. No idea what happens. – Luis A. Florit Aug 17 '14 at 22:38
  • *"SD cards don’t do wear leveling"* -- Contradicted by these answers: http://electronics.stackexchange.com/questions/27619/is-it-true-that-a-sd-mmc-card-does-wear-levelling-with-its-own-controller – sawdust Aug 18 '14 at 06:57

1 Answers1

3

Try formatting without journaling and it should work:

mke2fs -t ext4 -O ^has_journal /dev/sdf1

Being an SD card, you probably don't want journaling enabled.

victorbrca
  • 31
  • 3
  • 1
    Welcome, and thanks for answering this question. Would you consider adding a few sentences to your answer to explain why journaling would not be desirable on an SD card? – fixer1234 Nov 27 '14 at 04:40
  • I already said this in a comment to my original post. Anyway it seems it is a hardware problem. – Luis A. Florit Nov 28 '14 at 10:47