Tip of the Day: Know what process is running on a device

To get process id running on a device, execute:

root@localhost ~]# fuser -m /dev/sdb1

and then:

root@localhost ~]# ps -p <pid>

2 Responses to “Tip of the Day: Know what process is running on a device”

  1. Steve T

    wow — great tip! I just ran
    fuser -m /dev/snd/controlC0
    and the process was kmix
    and then
    fuser -m /dev/nvidia0
    to see kwin as the process
    but next time I try to use my gps I’ll be able to tell if gpsd is even using it thanks to fuser (I’d never heard of this command before)

Leave a Reply