Re: automatically mount removable devices

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

 



Carlo Nyto wrote:
I have a system with four removable drives (in USB enclosures). I want
them to be mounted automatically in the same location every time. I
want this to happen at bootup. I also want this to happen if the
system is booted without the drives and they are plugged in later,
regardless of the order.

Is this possible?


Udev rules still work ok.

I made a rules file: /etc/udev/rules.d/65-local.rules that contains lines like this:

# Western Digital 320GB External
SYSFS{idVendor}=="1058", SYSFS{idProduct}=="0404", SYMLINK+="big%n"

The values for Vendor and Product are the values listed by lsusb.

You will notice that I created a different designator other than sd to use. This allows easier to read /etc/fstab entries. I name the drives and use those names in /etc/fstab.

/dev/big1        /big            ext3    defaults    0 0

As has been mentioned, this is just one way to do it, and there may be a 'right' way that is quite different.

For my purposes, this works well.

Good Luck!

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux