Sometimes I plug in a USB drive, but no icon appears on the desktop. The LED on the drive flashes, so it is getting recognised, and Pmount sees it okay.
What I found is that 'pup_event_frontend_d' scans /sys/block periodically to look for drives added or removed, and if a new one then reads /proc/partitions. However, sometimes the kernel updates /sys/block but then takes a bit to long to update /proc/partitions. My script reads /proc/partitions a bit too soon. I found that the delay can be over half a second sometimes.
I fixed it, not with a fixed sleep but with a little loop that waits for /proc/partitions to be updated.
Comments:Posted on 11 Jul 2009, 11:47 by wombat01
Barry this sometimes happens with the 18.104.22.168 kernel, both in Puppy 4.1.2 and 4.2.