Re: How to mount a external USB drive automatically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Wed, May 8, 2013 at 9:53 PM, Anthony <lists@xxxxxxxxxxxxxxx> wrote:
I have an external USB drive that is always connected to my computer.
When I log in, it shows up on my desktop (unmounted) and all I have to
do is click on it to mount it. It mounts to

/run/media/anthony/Storage

But I want to have it mount automatically for both me (the system admin)
and any other users that login to their accounts. I'll then change
individual folder permissions for access control.

How can I make it mount automatically since it's already showing in its
unmounted state on my desktop?

Thanks,
Anthony
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Hi Anthony,

1. Mount the drive from your desktop.
2. Check what device was created for the drive. (/var/log/messages, dmesg, mount, /dev/...)
3. Check the UUID of that device, e.g

(example from my system)
# blkid /dev/sdd1
/dev/sdd1: LABEL="WD10EAVS-EXT4" UUID="960c3a40-2079-4fff-aebb-85f0337f924a" TYPE="ext4"
# blkid /dev/sdd2
/dev/sdd2: LABEL="WD10EAVS-NTFS" UUID="7EE42C26E42BDF61" TYPE="ntfs"
(I have two partitions on mine)

4. Create a folders for the mount points and make sure they have proper permissions for the users.
5. Modify the /etc/fstab, e.g.

# Manually added
UUID="960c3a40-2079-4fff-aebb-85f0337f924a" /mnt/WD10EAVS-EXT4    ext4    defaults    1 2
UUID="7EE42C26E42BDF61" /mnt/WD10EAVS-NTFS     ntfs    defaults    1 2

6. See man fstab and man mount - if you want to find out more details and options
7. You could mount them with acl option and use ACLs for more granular access control.
8. Unmount previously mounted device(s) and run
# mount -a
# mount
to see if the device(s)/partitions will be mounted with no problem from the /etc/fstab.
9. Check the access to the folder(s).
10. If all above is good reboot the system to test.

You could create a LUKS device or partition first on that external disk to make it password/key protected, so in case you would lose it no one will be able to mount it without the password/key.
I hope this will help.
All the best.

Kindest regards,
Grzegorz
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux