This is difficult to fix in userspace, since you cannot just unmount every USB device right before sleep (applications may still have open files on it). Ideally, after resuming, the (re-)detected USB devices would have the same ordering as before. I. e. sda would stay sda, instead of becoming invalid, and sdb popping up for the device.
This is difficult to fix in userspace, since you cannot just unmount every USB device right before sleep (applications may still have open files on it). Ideally, after resuming, the (re-)detected USB devices would have the same ordering as before. I. e. sda would stay sda, instead of becoming invalid, and sdb popping up for the device.