We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

SD-Card stuck in programming mode

asked 2015-05-19 12:54:05 +0300

Keeper-of-the-Keys gravatar image

Since the update to 1.1.4 I am suffering from severe instability of programs that need to access the SD-card.

I have a 64GB SDXC card formatted btrfs with a subvolume for android and one for some parts of home.

Symptoms:

  • During playback of songs from the sd-card the media player can get stuck and becomes unkillable (no kill -9) for a prolonged period and at some point either it dies or the phone resets (or I reboot the phone to kill it). This seems to happen more often if I pauze the song and only resume playback later, but I have also had it happen during continues playback.

  • Android program stored on the SD-card hung for prolonged period before starting (this I only observed once).

In the logs (journalctl) I have found messages like this:

Jolla kernel: mmc1: Card stuck in programming state! mmcblk1 mmc_blk_err_check

Jolla kernel: end_request: I/O error, dev mmcblk1, sector #

Jolla kernel: btrfs: bdev /dev/mmcblk1 errs: wr 1, rd 0, flush 0, corrupt 0, gen 0

Jolla kernel: mmcblk1: timed out sending SET_BLOCK_COUNT command, card status 0x400f00

Jolla kernel: mmcblk1: command error, retrying timeout

I have tried 'btrfs check' but it shows no errors, not really sure where to go from here search engines haven't helped me so far either....

edit retag flag offensive close delete

Comments

Sounds like your SD card is dying.

Philippe De Swert ( 2015-05-19 13:00:39 +0300 )edit

It's a brand new card which has only 6.6GB used and most access is read and not write so there should be no reason for that to be the case....

This behavior only started after 1.1.4.29.

Keeper-of-the-Keys ( 2015-05-19 13:04:33 +0300 )edit

What brand is the card, and where did you buy it?

There have been reports of fake cards that have lesser capacity than what the card advertises, and access to the unexisting area either fail or fold back to real access space... :(

juiceme ( 2015-05-19 13:30:02 +0300 )edit

Transcend 64GB, the serial checks out...

I don't think it's something like that since I haven't really added anything to the memorycard recently...

Keeper-of-the-Keys ( 2015-05-19 14:28:02 +0300 )edit

I had a brandnew transcend 64G die on me about a month ago. (Bought from verkkokauppa.com)

Exchanged it to another in the shop, and the new one is ok so far.

beeki ( 2015-05-19 14:54:26 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-05-19 18:15:54 +0300

sargas gravatar image

updated 2015-05-19 18:16:52 +0300

I had the same thing happening to me. Modrana, configured to store maps on the sdcard would take a long time to load or just hang, media would not play, filetug would show nothing on the sdcard and so on. If i mount again the sdcard it works for a few minutes than it fails again. In dmesg i discovered that the sdcard gets stuck in programming mode. I have tried to reformat it both in Jolla and on my laptop, but the filesystem seems to be imortal, it is always recognised as btrfs. The failure happened a few days before upgrading to 1.1.4.29.

edit flag offensive delete publish link more

Comments

I would recommend to first try to wipe is with wipefs and if that doesn't help, then maybe try shred. And when even that does not help, you are most probably experiencing some kind of hardware failure (write commands being ignored/old read only data resurfacing ?).

As for filesystem for the card - I would recommend EXT4. I have been using it on my 64 GB uSD card for ~1.5 years without any issues.

MartinK ( 2015-05-19 18:52:27 +0300 )edit

wipefs didn't help and neither did fdisk. I even tried dd if=/dev/zero of=/dev/sdb command, btrfs is just there after each attempt. I didn't try shred, yet. In order to use ext4 safely, should journaling be disabled?

sargas ( 2015-05-19 19:01:02 +0300 )edit
1

@sargas I have just used the defaults when creating it with mkfs.ext4 (on Fedora FWIW) and as I said earlier, no issues so far. Even after quite a few random restarts before I got rid of them with a piece of paper jammed behind the battery. :)

MartinK ( 2015-05-19 19:40:47 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2015-05-19 12:54:05 +0300

Seen: 1,671 times

Last updated: May 19 '15