USB Sticks - fo-am/sonic-kayaks GitHub Wiki

About

USB-Sticks are used for the following:

  • To store sounds/samples to played within GPS 'zones' as the user enters them
  • To log sensor data (GPS/thermometer/hydrophone)

Formatting

Upon testing the whole system on the water, the system often crashed. Suspicions were pointed at the USB sticks. Switching from FAT32 to EXT4 was mooted. This reformatting can be performed on a linux machine with the following commands:

  • Copy everything off the drive
  • Check which device the usb stick is using df - double check this is right!!
  • Remove all partitions using sudo fdisk /dev/sdb1
  • Unmount the device umount /dev/sdb1
  • Actually format the drive: sudo mkfs.ext4 /dev/sdb1
  • Make the drive writable by anyone: sudo chmod 777 /media/xyz/abc
  • Copy everything back on the drive