Questions tagged [sd-card]

A storage medium used in mobile devices like digital cameras, tablets, smartphones, ...

317 questions
65
votes
1 answer

How can I check the condition of an SD card?

How can I check the health condition of an SD card? When I want to check a hard drive, I can use SMART, how should I check an SD card? Is there a universal approach?
Grzegorz Wierzowiecki
  • 13,865
  • 23
  • 89
  • 137
63
votes
2 answers

Running dd. Why resource is busy?

I just formatted microSD card, and would like to run a dd command. Unfortunately dd command fails: $ sudo dd bs=1m if=2016-02-26-raspbian-jessie-lite.img of=/dev/rdisk2 dd: /dev/rdisk2: Resource busy $ Everyone on the internet says I need to…
oldhomemovie
  • 1,627
  • 2
  • 13
  • 18
29
votes
5 answers

fsck won't fsck (unable to set superblock flags)

Following an unclean shutdown on an SD card based device, I took the SD card out to fsck the root filesystem. This led to variations on the following: e2fsck 1.43.1 (08-Jun-2016) /dev/sdc2: recovering journal Superblock needs_recovery flag is…
goldilocks
  • 86,451
  • 30
  • 200
  • 258
19
votes
4 answers

Stress testing SD cards using linux

I got into a little debate with someone yesterday regarding the logic and/or veracity of my answer here, vis., that logging and maintaining fs meta-data on a decent (GB+) sized SD card could never be significant enough to wear the card out in a…
goldilocks
  • 86,451
  • 30
  • 200
  • 258
17
votes
3 answers

Utility to TRIM unallocated space on drive

I have a drive (SD card) with a few ext4 partitions but also some unallocated space. The fstrim utility can only work within a filesystem. Before I reinvent the wheel and write one, is there another utility that can TRIM the unallocated space (or…
Jason C
  • 1,341
  • 3
  • 13
  • 29
16
votes
4 answers

How to fix this I/O error on a SD card?

I tried with gparted, it didn't work. I found a SDFormatter, tool for windows that did the full erase. I have a SD card and want to install Debian onto it. The dd process takes about 45 minutes, after that I quit it. In my Windows machine, it shows…
user_h1017408
  • 161
  • 1
  • 1
  • 4
14
votes
6 answers

Is it a bad idea to use an SD card for home directory?

I'm planning to make an SD card (or a flash drive) my home directory so as to be able to work on different PCs without much hassle. Is this a bad idea for some reason?
Eelvex
  • 676
  • 5
  • 13
12
votes
2 answers

Linux - couldn't mount RDWR because of unsupported optional features (400)

I try to run Android from SD-card. This card is prepared. There are partitions: boot(FAT32), rootfs(ext4), system(ext4), cache(ext4) and usedata(ext4). Boot partitions has files to run u-boot: MLO, u-boot.bin and uImage. To run it I use…
Dropper
  • 175
  • 1
  • 2
  • 10
11
votes
2 answers

Resetting MMC controller without physically removing the card?

I'm trying to rescue data from an SDHC card using ddrescue: while true ; do ddrescue -d /dev/mmcblk0p1 mmc.img mmc.log ; done The controller, I'm not sure if it's the one on the card or the one in my laptop, seems to return errors for all sectors…
pascal
  • 526
  • 1
  • 5
  • 8
11
votes
4 answers

Safely use SD cards when power can go out at any time

We're working on a small embedded Linux system (2.6.35-ish) with a smallish internal NAND device for the OS and applications (250-500Meg) and an SD card with 8Gb SDHC SD cards for data. The unit's power can be cut at any time. The system must store…
darron
  • 393
  • 4
  • 9
11
votes
2 answers

Finding a unique identifier for SD cards

I have dozens of SD cards that I need to keep track of for a project. Right now, they each have a number physically written with permanent marker on the outside. This is OK, but I want to see if there is something unique that's built into each SD…
hpy
  • 4,517
  • 8
  • 53
  • 73
10
votes
1 answer

USB mmcblk support (realtek or others)

Can a USB card-reader ever appear as /dev/mmcblk0 and support the MMC ioctl commands? I see there are some kernel driver modules such as: rtsx_usb_sdmmc.ko (rtsx-usb-sdmmc) rtsx_usb.ko (rtsx-usb) Can these make a realtek card reader, attached to…
Gregor
  • 1,219
  • 10
  • 16
9
votes
3 answers

How can one force a re-scan of an SDIO bus from Linux user space?

On an embedded Linux platform, I have a network adapter attached to an SDIO interface. There is no Card Detect signal on this particular bus. If for instance, I turn the network adapter power on or off, is there any way I can force a re-scan of the…
Peter S. Housel
  • 191
  • 1
  • 4
9
votes
2 answers

File system that never breaks (data loss acceptable)

There're several existing topics revolving around this issue, but what I seek is slightly different. I have an SD card on an embedded Linux and it suffers from power loss. I might be able to modify the hardware at some point, close down properly and…
Illishar
  • 263
  • 2
  • 6
8
votes
3 answers

mmc0: error -110 whilst initialising SD card

I have an issue with my Arch.I insert the SD I can't detect it. Also I find the following error kernel log: uname -a Linux localhost.localdomain 4.9.6-1-ARCH #1 SMP PREEMPT Thu Jan 26 09:22:26 CET 2017 x86_64 GNU/Linux dmesg [ …
Micael André
  • 345
  • 2
  • 7
  • 14
1
2 3
21 22