Questions tagged [sd-card]

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

Filter by
Sorted by
Tagged with
25
votes
2answers
37k views

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 ...
20
votes
3answers
20k views

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?
19
votes
4answers
10k views

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 ...
14
votes
6answers
3k views

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?
10
votes
2answers
7k views

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 ...
10
votes
3answers
42k views

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, ...
10
votes
4answers
6k views

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 ...
9
votes
2answers
4k views

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 ...
9
votes
2answers
7k views

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 ...
8
votes
2answers
10k views

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-...
8
votes
2answers
12k views

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: ...
8
votes
2answers
1k views

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 ...
7
votes
1answer
6k views

/dev/mmcblk0 partitions limit

I've just mounted a microSD card which has 17 partitions in my laptop and I'm getting the following error in the YaST partitioner: Your disk /dev/mmcblk0 contains 17 partitions. The maximum number of ...
7
votes
2answers
4k views

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 ...
7
votes
2answers
909 views

Best file system for removable media

Recently I had a SD card destroyed ( software wise ) on me. Basically as well as I can figure it out, all the metadata was wiped (ext4 card). This happened when I was working and suddenly had to write ...
6
votes
1answer
1k views

Defining a state of a failed SD cards by kernel tracing?

I'm having a series of failing/sometimes failing SD cards. They either give one of the following dmesg outputs: The completely dead ones (don't list at /dev/mmcblk0): [ +0,000010] mmc0: error -110 ...
6
votes
1answer
1k views

dd, seek with one block size, write with another block size

Background Info: Copying some .bin files to an SD card (to be read by an embedded device, no filesystem) Commissioning the card requires some segments to be wiped (i.e. zero'd), and others to have ...
6
votes
1answer
11k views

Formatting an sdcard with mkfs hangs indefinitely

I am trying to format an sdcard following this guide. I am able to successfully create the partition table, but attempting to format the Linux partition with mkfs yields the following output: mke2fs ...
6
votes
1answer
2k views

Eye-FI SD Card not working with inbuilt card reader

I am tring to get my cardreader to work with and eye-fi SD card. My System is as follow: #uname -a Linux computer 3.2.0-0.bpo.2-amd64 #1 SMP Thu Mar 15 20:46:44 UTC 2012 x86_64 GNU/Linux Debian ...
5
votes
2answers
21k views

Trouble getting busybox switch_root to work

I'm working on an embedded ARM Linux system that boots using initramfs. (Here's some background from a couple earlier questions, if you're interested.) So far, thanks in part to help received here, I ...
5
votes
1answer
4k views

Realtek RTS5209 PCI-E Card Reader only work if card is inserted before boot

Hardware Info Laptop Model: Sony Vaio Pro 13 Problematic Hardware: Bulti-in Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader Problem description Here is the problem, if I boot with ...
5
votes
1answer
267 views

How does swappiness affect the longevity of SDHC memory cards in embedded computers?

In this question over at superuser several answers report SDHC card failures in Raspberry Pi single-board computers and other embedded devices over the course of periods varying from weeks to years. ...
5
votes
2answers
5k views

SD card not accessible (works in an old Nokia though)

Background I have two visually same 2GB microSD cards, both labeled "SD-C02G JAPAN", under the "2GB microSD" logo. My problem is that I can't read one of them in any device except an old Nokia 5310 "...
5
votes
1answer
2k views

Cannot reformat Micro SD Card

I need to reformat my micro SD card, however I am having some issues with it. When I go the card on my computer, it displays the following message: The folder contents could not be displayed Sorry,...
5
votes
1answer
605 views

card reading killing my battery, on macbook pro running Debian

I am currently using a macbook pro but the operating system is debian 8.2 not os x I am using a macbook pro but there's this one device that's just draining a lot of power. This USB device: Card ...
5
votes
1answer
22k views

Installing Ubuntu/Debian on 16 GB SD Card

Is it possible to install Ubuntu/Debian on my 16 GB SD Card ? Do I just during installation process chose my SD Card partition and install it (that doesn't work if we have USB) or do I need to install ...
5
votes
2answers
6k views

How to make sd card as default boot in uboot?

U-Boot 2013.07 (Nov 21 2013 - 18:12:40) Memory: ECC disabled DRAM: 1 GiB MMC: zynq_sdhci: 0 SF: Detected N25Q128A with page size 64 KiB, total 16 MiB In: serial Out: serial Err: serial Net: ...
4
votes
3answers
820 views

Why does a gunzip to dd pipeline slow down at the end?

my command: gunzip -c serial2udp.image.gz | sudo dd of=/dev/mmcblk0 conv=fsync,notrunc status=progress bs=4M my output: 15930949632 bytes (16 GB, 15 GiB) copied, 1049 s, 15.2 MB/s 0+331128 ...
4
votes
1answer
18k views

extending a partition by resize2fs

I have a 4 GB SD card. Before the image load root@ubuntu# fdisk -l Disk /dev/sdb: 3965 MB, 3965190144 bytes 49 heads, 48 sectors/track, 3292 cylinders, total 7744512 sectors Units = sectors of 1 * ...
4
votes
1answer
2k views

SD card reader on Linux: SPI or SD protocol underneath

I've a notebook with a SD card reader and I was wondering if the GNU/Linux driver is using the SPI protocol or the proprietary SD protocol (one or four bits). I'm asking this because I'm testing a SPI ...
4
votes
2answers
4k views

dd to clone to smaller sdcard

One of my Raspberry Pi's is using a 4GB SDcard for the root/boot filesystem. As seen when mounted on another system: Disk /dev/sdc: 3904 MB, 3904897024 bytes 121 heads, 62 sectors/track, 1016 ...
4
votes
2answers
1k views

Why does my SD card need authentication to access?

I'm running Ubuntu 14.04 on a Toshiba Chromebook 2 via crouton. I recently reformatted a 256GB SD card that I keep in my chromebook at all times. My problem is that every time I try to access my SD ...
4
votes
1answer
580 views

SD card “broken” - changes in files do not persist over reboot

I have a Raspberry Pi which is run from a micro SD card. It boots fine and dandy, but there's something peculiar going on. If I for instance create a new file and reboot, the file is not there. For ...
4
votes
1answer
7k views

mounting a SD card without a partition

I try to mount a SDHC card under GNU/Linux. Unlike what happens usually, /var/log/syslog doesn't mention sdb1, just: Jul 26 16:07:53 xvii kernel: [ 159.404842] scsi 6:0:0:0: Direct-Access Singim ...
4
votes
1answer
3k views

Risks involved with lazy_itable_init=1 for ext4 fs on SD card

My setup is the following: Linux kernel 2.6.28 e2fsprogs 1.42.7 64 GB class 10 SD card I am attempting to speed up the time it takes to format the entire card to an ext4 filesystem. My research ...
4
votes
2answers
2k views

Unable to access/(auto)-mount SD card on Fedora 28

I am trying to access SD cards on Fedora 28, but do not have any success. System info is as follows: $ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:...
4
votes
0answers
268 views

Stress testing storage media — file vs block?

While looking for ways to stress an SDcard, I've noticed there are two ways one can approach this. One is to stress it by reading/writing blocks directly to the device file. For example: sudo ...
4
votes
0answers
1k views

Grub 2 does not access /dev/mmcblk0p1, the SD Card

I am running Ubuntu 16.04 (64 bit Desktop) and would like to have one of the boot partitions to be on the SD Card, which is formatted as ext4, and is /dev/mmcblk0p1. Grub boots from the hard drive and ...
4
votes
1answer
3k views

Make an SD card to boot the distribution image created with Yocto

I have managed to build images for my own compiled Linux kernel source code using Yocto. Yocto has produced image files according to: http://www.crashcourse.ca/wiki/index.php/...
4
votes
0answers
1k views

How to check/test internal card reader speed

I got new SD card claimed to be 10 class of speed, but internal Disk utility in linux after test showed up only 6th class of speed. How can I check my card reader speed to be sure that it's not the ...
3
votes
3answers
32k views

How to format write protected SD card

I want to format my SD card using Ubuntu, for this I follow this tutorial After typing df command , I got list of storage devices.From here I can see my SD card name is /dev/sdb5 so I replace /dev/...
3
votes
2answers
109 views

Replicating an SD card

BACKGROUND An SD card has been configured for a Raspberry pi. The goal is to replicate the SD card exactly (OS, apps, data) so that the replica will function in a rPi exactly like the original \ ...
3
votes
1answer
1k views

What actually happens when the checksum fails for a file using btrfs?

I'm testing using btrfs on my embedded Linux system. It uses a uSD card for the rfs. This system is remotely deployed so there's no human sysadmin to take care of it. My question is what happens ...
3
votes
1answer
2k views

btrfs on SD card, what does “Btrfs detected SSD devices, enabling SSD mode” mean exactly?

I'm experimenting with using btrfs on my Debian Linux armhf system. The rfs is on a micro SD card. On bootup I get the message "Btrfs detected SSD devices, enabling SSD mode". What features does ...
3
votes
1answer
3k views

mmcqd hangs and burns the CPU on the embedded device

On my embedded system I'm writing an intensive video stream to SD. I don't mount partitions, just write to /dev/mmcblk0p1. After a while my writing process hangs. I get [16952.240000] INFO: task vrec:...
3
votes
1answer
776 views

Improve SD Card Write Speed

I'm using ARM boxes running Linux 2.6 (I'm stuck with this kernel version unfortunately). The boxes boot off of an SD card, and use a secondary SD card for storage. The boxes have approximately 256MB ...
3
votes
2answers
290 views

Backing up SD card filesystem-only to image file

EDIT: For some reason only part of my post got saved. I have updated it now to its full content Although this topic circles around the Raspberry Pi it is applicable to basically all SD cards that ...
3
votes
1answer
9k views

(ubuntu 16.04) .rules file /etc/udev/rules.d/ does not seem to do job

What I plan to achieve: I am trying to automatically run a script when a certain SD card is inserted. FACTS: a. Script I plan to run is in /home/vivek/Desktop/Message.sh and has the following ...
3
votes
1answer
715 views

How do I mount an external SD card without using sudo?

I wrote a bash-script with the intention to back up a specific (truecrypt-)file onto a SD-card (and a folder shared over the cloud) using the rsync command. The problem was that the SD-card usually ...
3
votes
1answer
546 views

Wear leveling of SD card because of swap file in embedded linux

I need to enable a swap file on my embedded linux product. The problem is that the file is located on an SD card. At the moment I'm using 15MB swap and about 120MB RAM because of temporary increases ...