Saturday, 22 June 2024

Mounting an external FAT32 USB drive with FreeNAS

Mount the FAT32 disk

dmesg | grep da1
mkdir /mnt/usbhdd
mount_msdosfs -o large /dev/da1s1/ /mnt/usbhdd

rsync -recursive --ignore-existing --human-readable --progress "/mnt/usbhdd/Matthew Potts iPhone 12 Photo Backup/" "/mnt/Data/My Media/Matthew/Photo Backup/"

To copy a file pattern:

rsync --include='**/*.MOV' -recursive --ignore-existing --human-readable --progress "/mnt/usbhdd/Matthew Potts iPhone 12 Photo Backup/" "/mnt/Data/My Media/Matthew/Photo Backup/"

To count files:

find . -maxdepth 1 -type f -print | wc -l

No comments:

Post a Comment