Hi,
I would like to increase the speed of my machine by putting some swap on a fast pendrive. It is working manually by starting a script swapon -s swapon -p -1 /dev/sdb1 swapoff /dev/sda6 swapon -p -2 /dev/sda6 swapon -s but, I would like to make it automatic by creating an udev rule, so when I plug in that device the swap space is automatically activated and the priority is changed. I've tried to google for a solution like this, but I did not find. Maybe you already have some script at hand :) can you please share this with me? Thanks Laszlo