Hello,
Comp Specs:
Dell Laptop
OpenSuSE 11.4
GNOME
2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 i686 i686 i386 GNU/Linux
Drive Specs:
Kingston External SSD Drive 128GB
Ok, so for the last couple of weeks I have been playing with trying to configure auto-mounting my SSD drive. But it seems SO confusing trying to get this configured correctly. Between HAL, udev, autofs, automount, auto.master file, etc I feel like I am getting more confused the more I read about it… Not really sure how these work or how they are interconnected if at all?
First:
At first when I plug in my USB SSD Drive it automatically mounts to “/media/SSD” (but this is not where I want it mounted, for a few reasons). “SSD” → is the volume label as well.
Second:
Then I tried adding this line to fstab:
LABEL=SSD /mnt/SSD ext3 defaults 1 2
When I add that line I can see during the boot message/log that it is waiting for me to plug it in so that it can mount it. Which is nice but I don’t always need it plugged in at that moment. Also, after adding that line, when I plug the SSD in, it no longer automatically mounts it anywhere.
Third:
Then I tried using the auto.master file to automount the drive (used this tutorial to do that → Configuring Autofs). Added the following lines to auto.master (Not at the same time though, tried each separately):
#File: auto.master
/mnt/SSD /etc/auto.SSD --timeout=10
/mnt /etc/auto.SSD --timeout=10
SSD /etc/auto.SSD --timeout=10
#File: auto.SSD
SSD -rw :/dev/sdb1
After doing the above and then restarting autofs I saw the following as the last line of the mount command (which seems VERY strange):
> mount
/etc/auto.SSD on /mnt type autofs (rw,relatime,fd=6,pgrp=11202,timeout=600,minproto=5,maxproto=5,indirect)
Which also will not allow me to umount it??? Tells me it’s busy.
So basically I would just like to be able to plug in the USB SSD and have it automatically mount to “/mnt/SSD”. Could anybody give me a hand with this?
Also, I would LOVE to know how these things work or how they work together (HAL, udev, autofs, etc…) if anyone could explain?
Thanks in Advance,
Matt