I'm trying to set up my Raspberry Pi with a 64GB micro-SD card using the image file
Every time I try to update or install software on the card, the system gives me the following error message:
dpkg: unrecoverable fatal error, aborting: unable to sync directory '/var/lib/dpkg/updates/': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2) W: Problem unlinking the file /var/cache/apt/pkgcache.bin - pkgDPkgPM::Go (30: Read-only file system)
When running the program out of ssh and directly into my tv, I also get the following line:
EXT4-fe error (device mmcblk0p7): ext4_journal_check_start:61: Detected aborted journal EXT4-fe (mmcblk0p7): Remounting filesystem read-only
The system then refuses to run any more programs and I cannot access the system again after I log out. (I normally access my Raspberry Pi via SSH.) I've checked the filesystem on the card, as per this article, and Disk Utility is telling me the card is FAT32, so that doesn't seem to be the issue; and besides the article says the card shouldn't even boot up the first time if I was using the wrong filesystem.
I have tried installing Raspbian on two different 64GB cards now and have got the same result on both. Additionally, I tried doing the same thing on a 16GB card and it worked normally.
The process which I normally take is as follows.
- I use Etcher in order to flash the image onto the SD card.
- I then add a blank
sshfile so that I can access it from ssh without a monitor.
- I run
sudo apt update && sudo apt upgrade, which produces the error in the middle of the install phase. There doesn't seem to be any particular package that sets this off.
I have followed these steps with 16GB cards and have got no such error. I have also tried to install Raspbian using NOOBS (Both full and Minimal versions) and have got the same result.