Setting up automounting on the Raspberry PI
Post date: Sep 27, 2012 12:6:4 PM
So the non-optimised debian setup hasn't been working for me, so I'm using the raspbian distro now.
So I'll be using the udisks-glue package.
Just add a line with udisks-glue into /etc/rc.local just before the "exit 0" line
Then edit /etc/udisks-glue.conf to look (something like) this:
--- Start File ---
filter disks {
optical = false
partition_table = false
usage = filesystem
}
match disks {
automount = true
automount_options = { sync, noatime, "dmask=0", "fmask=0" }
}
filter optical {
optical = true
usage = filesystem
}
match optical {
automount = true
automount_options = { ro, "mode=0444", "dmode=0555" }
}
--- End File ---
Notes:
udisks-glue is running as root.
To see optical devices as a regular user you require the mode/dmode automount options for non-root users to read them.
As per the optical drives, VFAT disks need the dmask/fmask options. The rule probably won't work for non-VFAT drives.