Files
nas-tools/fix_usb_copy.sh
T

80 lines
2.1 KiB
Bash
Executable File

#!/bin/bash
# Fix Synology USB Copy Issue
# Based on diagnosis findings
set -e
echo "=== Fix Synology USB Copy ==="
echo ""
echo "Diagnosis found:"
echo " - USB connection errors (cable/device issue)"
echo " - USB device was unmounted"
echo " - No USB device currently mounted"
echo ""
echo "🔧 Solutions:"
echo ""
echo "1. **Physical USB Connection Issue**"
echo ""
echo " The logs show: 'Cannot enable. Maybe the USB cable is bad?'"
echo ""
echo " Try:"
echo " a) Unplug USB device from front port"
echo " b) Wait 10 seconds"
echo " c) Plug back in firmly"
echo " d) Wait for it to be recognized (check Control Panel → External Devices)"
echo ""
echo "2. **USB Device Format Issue**"
echo ""
echo " The device was exFAT and got unmounted due to errors."
echo ""
echo " Try:"
echo " a) Format USB device on your Mac to FAT32 or exFAT"
echo " b) Reconnect to Synology front port"
echo " c) Wait for recognition"
echo ""
echo "3. **Unmount and Remount USB Device**"
echo ""
echo " Via DSM:"
echo " a) Control Panel → External Devices"
echo " b) If USB device shows, click 'Unmount'"
echo " c) Wait 5 seconds"
echo " d) Click 'Mount' or reconnect device"
echo ""
echo "4. **Check USB Copy Service**"
echo ""
echo " Via DSM:"
echo " a) Package Center → USB Copy"
echo " b) Make sure it's 'Started' (not stopped)"
echo " c) If stopped, click 'Start'"
echo ""
echo "5. **Check USB Copy Task Settings**"
echo ""
echo " Via DSM:"
echo " a) USB Copy → Select your task"
echo " b) Task Settings → Verify source is '[USB]'"
echo " c) Make sure no other tasks conflict"
echo ""
echo "=== Quick Fix Steps ==="
echo ""
echo "1. Unplug USB device from Synology"
echo "2. Wait 10 seconds"
echo "3. Plug USB device into FRONT USB port (not rear)"
echo "4. Wait 30 seconds for recognition"
echo "5. Check Control Panel → External Devices"
echo "6. If device appears, try USB Copy again"
echo ""
echo "If still not working, check:"
echo " - USB device format (FAT32/exFAT recommended)"
echo " - USB device not mounted as shared folder"
echo " - USB Copy service is running"
echo ""