Hard Coded Method – fstab file
Files to modify:
# device-spec mount-point fs-type options dump pass
proc /proc proc defaults 0 0 /dev/mmcblk0p6 /boot vfat defaults 0 2 /dev/mmcblk0p7 / ext4 defaults,noatime 0 1 # a swapfile is not a swap partition, no line here # use dphys-swapfile swap[on|off] for that UUID=BCF3-B0C0 /media/pi/TRANSCEND vfat defaults 0 0
- The thumbdrive is identified by its UUID.
- UUID can be found using any of the following commands:
> sudo blkid (block device) > ls -l /dev/disk/by-uuid (list the symlinks)
- using defualts options, the system will not boot up properly if the USB is not available at boot. To solve this, change defualts to
and mutually trigger the mount using
> mount -a
Note: It appears that fstab is automatically called even without mount -a, when USB is inserted.
Inserted > lsusb (list USB device) Mounted > lsblk (list all available block devices)
> umount /dev/sda1
Timestamp Offset Issue
Please refer to [Debian Bug] FAT32 Timestamp Offset Issue