Fix gthumb Hanging When USB Devices Are Connected
When gthumb hangs during startup after connecting an iPhone, external drive, or other USB device, the issue typically stems from gthumb attempting to enumerate mounted storage devices during initialization. Certain filesystem states, permissions misconfigurations, or slow I/O can cause the process to block indefinitely.
Quick fix: unmount the device
The most straightforward solution is to unmount the problematic device before launching gthumb.
Using the GUI:
- Open Nautilus (Files)
- Press
F9to toggle the sidebar if needed - Locate the USB device in the sidebar
- Right-click and select “Unmount” or click the eject icon
Using the command line:
umount /media/$USER/device-name
gthumb should start normally once the device is unmounted.
Why gthumb hangs on startup
gthumb’s thumbnail generation and file discovery routines query all mounted volumes at initialization. A hang typically occurs when a USB device has:
- Corrupted filesystem metadata
- Permission restrictions requiring root access
- Non-standard or damaged partition tables
- High-latency I/O (slow USB connections, failing drives)
gthumb waits indefinitely for responses from the device, blocking the entire application startup.
Permanent solutions
Add your user to the disk group
This allows gthumb to access USB devices without blocking on permission checks:
sudo usermod -a -G disk $USER
newgrp disk
Log out and back in for the change to take full effect. Note that adding users to the disk group grants broad filesystem access—only do this for trusted users.
Configure mount options in fstab
For regularly connected external drives, configure /etc/fstab to prevent automatic enumeration:
UUID=your-device-uuid /mnt/external ext4 defaults,noauto,user,nofail 0 0
The noauto flag prevents mounting at boot, and nofail prevents boot delays if the device is absent. The user option allows non-root mounting.
To find your device UUID:
sudo blkid
Disable media enumeration in gthumb
If you primarily use gthumb for local directories, disable automatic removable media scanning:
- Open gthumb
- Go to Edit → Preferences → General
- Uncheck “Automatically import photos” or similar media detection options
This reduces startup overhead significantly.
Switch to lighter alternatives
If gthumb continues causing issues, consider:
- feh — fast, lightweight command-line image viewer with no external device enumeration
- eog (Eye of GNOME) — minimal image viewer with quick startup
- Nautilus — file manager with solid thumbnail and preview support
- swayimg or imv — modern, fast image viewers for Wayland or X11
Troubleshooting stuck mounts
If a device won’t unmount normally:
Find which processes are using the mount:
lsof +D /media/$USER/device-name
Kill non-essential processes accessing the mount, then try unmounting again.
Force a lazy unmount:
sudo umount -l /media/$USER/device-name
The -l flag performs a lazy unmount, severing the connection without waiting for I/O completion. The device remains inaccessible until truly disconnected.
Check device health:
If the device still doesn’t respond, run a filesystem check on another system:
sudo fsck -n /dev/sdX1
The -n flag performs a read-only check without modifications. Persistent unresponsiveness suggests hardware failure—try a different USB port, cable, or device before investing further troubleshooting time.
2026 Comprehensive Guide: Best Practices
This extended guide covers Fix gthumb Hanging When USB Devices Are Connected with advanced techniques and troubleshooting tips for 2026. Following modern best practices ensures reliable, maintainable, and secure systems.
Advanced Implementation Strategies
For complex deployments, consider these approaches: Infrastructure as Code for reproducible environments, container-based isolation for dependency management, and CI/CD pipelines for automated testing and deployment. Always document your custom configurations and maintain separate development, staging, and production environments.
Security and Hardening
Security is foundational to all system administration. Implement layered defense: network segmentation, host-based firewalls, intrusion detection, and regular security audits. Use SSH key-based authentication instead of passwords. Encrypt sensitive data at rest and in transit. Follow the principle of least privilege for access controls.
Performance Optimization
- Monitor resources continuously with tools like top, htop, iotop
- Profile application performance before and after optimizations
- Use caching strategically: application caches, database query caching, CDN for static assets
- Optimize database queries with proper indexing and query analysis
- Implement connection pooling for network services
Troubleshooting Methodology
Follow a systematic approach to debugging: reproduce the issue, isolate variables, check logs, test fixes. Keep detailed logs and document solutions found. For intermittent issues, add monitoring and alerting. Use verbose modes and debug flags when needed.
Related Tools and Utilities
These tools complement the techniques covered in this article:
- System monitoring: htop, vmstat, iostat, dstat for resource tracking
- Network analysis: tcpdump, wireshark, netstat, ss for connectivity debugging
- Log management: journalctl, tail, less for log analysis
- File operations: find, locate, fd, tree for efficient searching
- Package management: dnf, apt, rpm, zypper for package operations
Integration with Modern Workflows
Modern operations emphasize automation, observability, and version control. Use orchestration tools like Ansible, Terraform, or Kubernetes for infrastructure. Implement centralized logging and metrics. Maintain comprehensive documentation for all systems and processes.
Quick Reference Summary
This comprehensive guide provides extended knowledge for Fix gthumb Hanging When USB Devices Are Connected. For specialized requirements, refer to official documentation. Practice in test environments before production deployment. Keep backups of critical configurations and data.

Hey, that worked for me and got Nemo back working, which seemed to randomly not starting anymore (or needing 5 mins to start with 0% CPU usage). Thx a lot for this!
Do have any idea, why Gthumb is depending on which phone is plugged in?
(in my case it’s my Honor 10, not an iPhone)