Install error - check disk
Date: July 2nd 2016
Last updated: July 2nd 2016
I just bought two new RaspberryPi 3's along with two preloaded 8 GB sandisk micro sd cards. Unfortunately, when I booted up the Pi I got an error stating that the file allocation tables (FAT) did not match.
The error message provides the answer (use check disk), but as a NOOB I had to do a little research to figure out how to fix the problem. I followed the steps provided in the following thread: http://ubuntuforums.org/archive/index.php/t-1005398.html.
# connect sd card reader and insert card
df -h
#Filesystem Size Used Avail Use% Mounted on
#udev 982M 12K 982M 1% /dev
#tmpfs 200M 1.6M 198M 1% /run
#/dev/sda6 42G 26G 14G 65% /
#none 4.0K 0 4.0K 0% /sys/fs/cgroup
#none 5.0M 0 5.0M 0% /run/lock
#none 997M 1.1M 996M 1% /run/shm
#none 100M 28K 100M 1% /run/user
#/dev/sdd1 7.4G 1.0G 6.4G 14% /media/ray/3061-6130
# -----> note the media id (/dev/sdd1)
# unmount
umount /dev/sdd1
# run file system checker
sudo fsck -a /dev/sdd1
#fsck from util-linux 2.20.1
#fsck.fat 3.0.26 (2014-03-07)
#FATs differ but appear to be intact. Using first FAT.
#Performing changes.
#/dev/sdd1: 87 files, 32737/242304 clusters