|
fstab update code?
OK; this is what I want my debian system to do: when a new USB-storage device is plugged in, I want fstab to be updated in a very simple manner. I don't want any icons on the desktop, nor any automounting; just an fstab-update. If, for example, a USB- or firewire device is plugged in with two partitions, I want these additions to fstab:
/dev/sdf1 /mnt/sdf1 auto defaults 0 0
/dev/sdf2 /mnt/sdf2 auto defaults 0 0
or something like that...
I've been looking for a tool which would do this everywhere ever since I started using debian, but with no result. Can anyone give me directions? If there's no such tool (which would be very suprising), does anyone know what I should use as a base and then program something like that myself - it shouldn't be too hard to do, should it?
Thanks.
|