Questions tagged [sd-card]

SD (Secure Digital) cards and their associated SC/HC/XC technologies are the primary storage medium for the Raspberry Pi. The Pi Models A and B use SD Cards, and new models use Micro SD. SD cards are non-volatile flash memory.

Filter by
Sorted by
Tagged with
308
votes
17answers
426k views

How do I backup my Raspberry Pi?

I have been writing programs for my Raspberry Pi (running Raspbian) for a few weeks now and would like to make sure I protect the work I have done. How can I backup the files I have created? Can I ...
28
votes
6answers
179k views

Kernel panic-not syncing: VFS: unable to mount root fs on unknown- block(179,6) running Raspbian on top of NOOBS

When booting, the sequence stops at the following: Kernel panic-not syncing: VFS: unable to mount root fs on unknown-block(179,6) What can I do to get my Raspberry Pi 2 to boot again using the ...
263
votes
14answers
158k views

How can I extend the life of my SD card?

I'm not all that keen to buy a USB hard disk, but I'm aware that SD cards aren't suitable for many repetitions of reading and writing. Are there any steps I can take to extend the life of my SD card ...
176
votes
5answers
349k views

How can I resize my / (root) partition?

Even though my SD card is 16GB, the image I flashed onto it was only 2GB and now I can only see 2GB of storage space on the disk. How can I resize the image so that I have more space on my root ...
5
votes
2answers
4k views

Why is it necessary to “expand the file system”?

I'm new to RPi and and confused about why a step to "expand the file system" is frequently listed as part of the standard instructions for setting up a RPi (using a downloaded OS image). Why is it ...
24
votes
11answers
33k views

How can I copy the same image to many SDs?

So finally I can place that bulk order for Raspberry Pis! However, configuring them is going to be a chore. What I'd like to do is: Download a stock image, and tinker with it on a single Pi Save/...
6
votes
2answers
11k views

Permanent Fix “error in check_disks” on reboot

I have a Raspberry Pi B+ installed on a local store and when power goes randomly off, SD card tends to get corrupted: ***Error in check_disks:could not repair filesystem, dropping to debug shell, try ...
7
votes
1answer
2k views

Netbooting multiple “workers” RPi from a “master” RPi

My question is, I believe, a little bit complex, and I think it would be better to fully describe what I have and what I want to achieve, with what I am able to do. What I have I have a group of ...
3
votes
1answer
713 views

Detect an SD card that became read-only

Recently my SD card died, becoming permanently locked in a read-only state. I realized it a few weeks after the fact, when I saw that files I would create disappeared after a reboot. Of course, all ...
126
votes
8answers
756k views

How can I reformat my SD card to use it normally again?

I wish to reformat my SD card to use normally again (it currently has one 78 MB FAT32 partition and one 3.9 GB Linux partition). How do I do this (on Windows/Mac/*nix)?
20
votes
6answers
24k views

Running on read-only SD card

I have setup the Raspberry Pi to run XBMC, and I want it to boot up to always play a playlist and files on the SD card. I have turned off the Raspbmc automatic update. It still runs okay when I ...
15
votes
2answers
19k views

How to gain remote access without a Monitor or TV? [duplicate]

Possible Duplicate: Prepare for ssh without a screen I just booted my Raspberry Pi for the first time and can not gain remote access. My Pi runs the recommended Debian image found at the ...
50
votes
11answers
66k views

How can I prevent my Pi's SD card from getting corrupted so often?

I get an I/O error at boot and then get this 'error': (I am running the latest version of Raspbian) Entering kdb (current=0xca82ac80, pid 1) due to keyboard entry kdb> _ And I have seen it before,...
50
votes
6answers
145k views

How do I install an OS image onto an SD card?

I have just ordered my Raspberry Pi, and I want to prepare my SD card. How do I install an OS image onto an SD card?
4
votes
3answers
14k views

How can I backup my whole SD to an img file usable with Etcher to restore later?

My question is related to the part towards the end of this short article ("SD card image"): https://www.raspberrypi.org/documentation/linux/filesystem/backup.md My question is how can I backup ...
9
votes
5answers
30k views

How can I reduce the writing to log files

A common worry of Raspberry Pi users is the wearing out and destruction of their SD card (which have limited write cycles) by too many writes. The experience reported by users supports this assumption....
26
votes
4answers
25k views

Why is my SD card slow?

My SD card seems to be running slow. I have an ADATA 16 GB SDHC Class 10 card. I checked the compatibility list which lists a card with similar specifications, and it states that it is "working". Even ...
20
votes
3answers
17k views

Filesystem corruption on the SD card

If I use the Pi a bit, filesystem corruption soon appears. For instance, this file was changed to another one: $ ls -alt /etc/apt/apt.conf.d total 16 lrwxrwxrwx 1 root root 13 Oct 2 22:18 ...
19
votes
7answers
40k views

Raspberry Pi 2 - Are 64GB UHS-I Class 1 SDXC cards supported?

Raspberry Pi 2 - Are 64GB UHS SDXC cards supported? I'm using a 64GB Hama UHS-I SDXC card formatted with the SD Card Formatter 4.0 with NOOBS 1.4 on it. It doesn't seem to want to boot. I have both ...
7
votes
3answers
3k views

How can a read-only SD card get corrupted repeatedly?

I have a Raspberry Pi in a remote location running from a battery charged by a solar panel and having Sleepy Pi starting it in every hour to run for a few minutes to snap some pictures, make some ...
11
votes
5answers
16k views

How can I wire this SD card reader to RaspberryPi?

I need to add a second SD card reader to my Raspberry Pi for the project www.samplerbox.org (the RPi will be embedded in a box, so I need a user-SD-card reader). Here is what I would like to use: ...
14
votes
6answers
66k views

How to install Raspbian without an SD card reader

I'm new to the Raspberry Pi platform and I just bought one! I downloaded Raspbian from the download location and then realized that I don't have a card reader to install the ISO. How can I install it ...
16
votes
8answers
66k views

Read a file from the Raspberry Pi's SD card with Windows

I have a couple of files on the Raspberry Pi's file system that I need to get. I have the Pi's SD card and an SD card reader. How can I read files off my Raspberry Pi's SD Card on a Windows PC?
0
votes
1answer
4k views

Trouble cloning an SD card with Recovery partition, so that it boots

I've been having trouble cloning an SD card so that it boots on the Pi. I'm wondering if having a recovery partition on the source card is an issue or not. The cloning process seems to work fine, but ...
20
votes
1answer
7k views

How can I use a USB HDD to extend the life of my SD Card?

How can I set up a USB HDD to extend the life of my SD Card and maximize the performance of my Raspberry Pi? Related: How can I extend the life of my SD card?
18
votes
4answers
38k views

Image of a 16Gb card containing unpartitioned space at the end: Truncating possible?

I wanted to prepare a distro for some friends. As I didn't have anything else lying around, I used a 16Gb SD card. I started with the default Debian Weezy 2Gb image and did not do any resizing. Now, ...
68
votes
2answers
131k views

Which SD cards are compatible?

The site http://www.raspberrypi.org/quick-start-guide says: You will need an SD card with an operating system preloaded before you can boot the Raspberry Pi. A brand-name (not generic) Class 4 ...
23
votes
2answers
89k views

How to get remaining memory in SD Card?

I have 16 GB SD card where I installed Raspbian using Win32 Disk Imager. After burning the image in Windows it shows only around 40+ MB of free space. Since Raspbian image is around 2 GB where is ...
47
votes
5answers
83k views

What's the maximum SD card size that the Raspberry Pi will accept? Do larger cards give slower performance?

On my digital camera, I noticed a performance decrease when I used a larger card; will this happen with the Raspberry Pi too? What's the maximum sized SD card it can handle? I see there is ...
20
votes
5answers
47k views

How to make an image (.img) from what's on the SD card (but as compact as the original one)?

I tried: sudo dd bs=4k if=/dev/mmcblk0 of=/media/1BAB47551C66A42B/raspbian_migs2.gz It creates an .img file with 7.6 GB (card size, BUT what's on the card has 700 MB). And: sudo dd bs=4k ...
16
votes
1answer
21k views

How do I create and mount a partition using the remainder of my SD card?

I have seen instructions for resizing the partition here, but how do I create a whole new partition using the remaining space, and then mount it?
21
votes
4answers
23k views

Easiest way to return to a known good state when overclocking

If I try to overclock my Pi, I want to go up to the point where the Pi won't boot anymore, or won't be stable enough. At this point, I want to come back to the latest known good settings for the /...
10
votes
1answer
3k views

Where is the space in my SD card?

I just got a raspberry pi. It came with an 8GB SD card (actually an SD adapter + microsd card) with the RPi logo on it. It supposed to have 8Gb, but "parted" command says something different ... $ ...
8
votes
3answers
9k views

Benchmarking SD cards, read speed is identical

I'm testing a pair of sd cards this way: http://elinux.org/RPi_SD_cards#Performance The first card I did this on (sandisk class 4) gave a write speed of 5.4 MB/s, which is about what I expected ...
5
votes
5answers
19k views

SD Card Showing as 30 MB on a 32 GB Card. Can't Format, Can't create a partition table

A couple of days ago I received a new 32 GB SD card from Sandisk. Upon arrival, I flashed the Retropie 4.1 image for the Pi Zero onto it. I then put the card into my Pi, and plugged it in. Nothing. It ...
3
votes
4answers
7k views

Raspberry breaks SD card -> 31 MB RAW

I was configuring and running 2016-02-09-raspbian-jessie-lite on my Raspberry Pi 1 Model B+. Everything was fine and I used to shut it down using sudo shutdown -h now But there are circumstances ...
0
votes
3answers
619 views

Restore backup failed (using rsync)

I backuped my RPI following goldilock's answer (Can a Raspberry Pi be used to create a backup of itself?). Running this: rsync -axHv --delete --exclude-from=rsync-exclude.txt --rsh="ssh" root@...
3
votes
1answer
5k views

Reading from SD card all day long, risks?

I've seen several posts about SD card lifespan, however I'm still a bit confused about it. In my case, I have Raspberry Pi B+ running slideshow from image and HD video (~40MB) in OpenELEC/Kodi, all ...
41
votes
4answers
15k views

Is it possible to dual boot from the SD card?

Say I wished to have Debian Squeeze and Arch Linux ARM on my SD card. Would it be possible to dual boot from Grub?
26
votes
5answers
52k views

Is my Raspberry Pi permanently damaging SD cards?

My Raspberry Pi was running fine for two months. Then some files in /usr/bin got corrupted and there were many errors on reboot. I tried to write a fresh image but dd would block and do nothing. ...
43
votes
5answers
21k views

How can I determine when an SD card needs replacement?

Is there a way to estimate the lifetime of a SD card? If not, is there a utility I can use that monitors its integrity and reliability so I know when to use a new SD card?
12
votes
2answers
21k views

Can I record a 24 hour video on the Raspberry Pi with camera module?

Given that I have an SD card with sufficient capacity, is it theoretically possible to record a 24 hour video with a camera module or is the recording duration limited? Has anyone tried this? Do you ...
22
votes
2answers
15k views

How do I transfer my setup between SD cards?

I started out with a 2GB SD card, but I'm finding this a bit cosy, so I've bought a 16GB card to replace it. With a single Pi, can I transfer all my work between the cards, or do I need to start from ...
15
votes
4answers
37k views

Won't boot after removing and inserting the SD Card?

I've installed Arch Linux on my SD Card with Win32DiskImager. If I shut down the RPi, remove the card, insert it, and start the RPi again, everything works fine. But if I do full system update in ...
16
votes
5answers
62k views

Raspberry Pi 3 micro SD card speed

With the new Raspberry Pi 3 out, is the speed of the bus still limited to around 20 MB a second? I am looking to purchase a micro SD card in it and I am not sure if I should spend the extra amount ...
16
votes
5answers
2k views

Strategies to deal with unpredictable power supply

I want to install a Pi in my car and use it to record GPS data. What strategies (in my program) can I follow to minimize problems due to power being interrupted when writing to the SD card? So far I ...
18
votes
3answers
126k views

How can I reset to the factory settings?

I was playing around with my Raspberry Pi and I accidentally bricked it! How can I restore it back to the factory defaults?
6
votes
1answer
3k views

Are the BIOS and firmware located on the SD card?

Reading this answer I get the impression both the Raspberry Pi BIOS and firmware are located on the SD card. Is that correct? What is exactly located on the SD card? There's nothing stored on the Pi ...
6
votes
1answer
6k views

kernel panic not syncing: VFS unknown-block 179,6 after cloning SD

I have set up my Raspbian and need to clone the SD Card to about 20 other Raspberry Pis now. I used the following command (on OS X) to clone the SD Card: sudo dd if=/dev/rdisk3 of=~/Desktop/pi.img ...
6
votes
3answers
6k views

Clone Raspberry Pi SDCard to file on Mac OS X?

Is there a simple way using Mac OS X (shell preferred) to clone an entire SDCard from the SDCard slot (byte-for-byte)), to a file? I would then want to reverse the process and restore the image from ...