Skip to content

Instantly share code, notes, and snippets.

View Bra1nsen's full-sized avatar

Diplomat Bra1nsen

  • WORLDENERGY.COM
  • DRESDEN
View GitHub Profile
@germanviscuso
germanviscuso / rpi_boot_fix
Last active November 25, 2023 18:44
Fix for RPi: "Volume was not properly unmounted. Some data may be corrupt. Please run fsck."
# dmesg | grep corrupt
[ 21.280705] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
# umount /boot
# git clone http://daniel-baumann.ch/git/software/dosfstools.git
# cd dosfstools
# make
cc -O2 -fomit-frame-pointer -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers -Wmissing-prototypes -Wstrict-prototypes -g -c -o fatlabel.o src/fatlabel.c
.