How can I automount my drives in Debian?
If I try to access my USB drives, Windows partition or external HDD, I get a 'Not Authorized' message in pcmanfm. I can sudo mount /dev/sda2 /media/Windows and it works fine, but how can I make it do this automatically?
there are at least two ways to achieve this. The first would be to include the drives into your /etc/fstab file. Read the manpage for fstab, you will find the necessary information there (I've never used this feature and cannot help here).
The second way would be to use udev-rules. I have an udev-rule for my USB-memory-sticks
I normally put them in fstab.
This is the best explanation I've found on fstab: http://www.tuxfiles.org/linuxhelp/fstab.html
It's easier if you use the UUID, which I think post-dates that article. That ensures that they always mount to the same mountpoint.
Here's a good explanation of how to use the UUID to mount a device in fstab: http://www.cyberciti.biz/faq/linux-f...-update-fstab/
|All times are GMT -5. The time now is 04:15 AM.|