You are not logged in.
Pages: 1
I have an LVM over multiple usb drives, and I would like them to be automounted.
Right now, I have the following lines in my rc.local:
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
sleep 10 && \
vgchange -ay && \
mount /dev/data/movies /export/movies && \
mount /dev/data/public /export/public && \
mount /dev/data/photo /export/photo && \
mount /dev/data/music /export/music && \
mount /dev/data/projects /export/projects &
what works quite well for mounting everything at startup. But when the usb drives are not plugged in at startup, this does not work. I would like the drives to be automounted, too, when the computer has already started and I plug them in later on...
Any ideas?
Thanks already...
Offline
you'll probably have to mess around with hal rules...unfortunately i dont have much experience with that but there is info on it if you google
Offline
Actually, I'm not using hal at all. I thought about something like udev, but is there no easyer way?
Offline
that's true you probably could make udev rules, but I can't remember if those rules work in realtime or only when 'udevadm trigger && udevadm settle' is issued
Offline
No, I think it should work. I did something similar to automagically start a backup when I plug in a certain drive.
But it is cumbersome to do it for so many different drives...
Offline
Pages: 1