
Originally Posted by
Nattereri
mattydee:
Yes I want it to automagically mount after pluggin it in. I did not read about fstab and maybe I should investigate it. I knew about the drives failing on boot and that is why I went with the udev route. But maybe I could use a combination of the two to eliminate the root mounting problem and just execute mount -a. A more elegant solution and less files laying around to secure.
You could probably use a combination of the udev rules that detect and then execute the mount command, based on the UUID. Then in your fstab, you would have the proper entry for that device with an option like "user" which allows users to mount that particular device. I would stay away from a mount -a (mount all)command, since that could very well lead to unforeseen problems!!!
EDIT:
So an overview
1. your fstab would have an entry of the form
Code:
UUID=1234 /folder/mydevice ntfs-3g nofail,user,{other options} 0 0
2. You would have udev rules that detects a device that has UUID 1234 being plugged in to execute "mount /folder/mydevice"
EDIT2:
You might not even have to use the UUID in your udev rule. Only in the fstab