[SOLVED] Mounting 2 identical USB drives to different mount points
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/etc/fstab contains records for /dev/sdb1 -> /mount_point_A and /dev/sdc1 -> mount_point_B.
However, sometimes they got mounted other way round, /dev/sdb1 -> mount_point_B. I have to reboot the system (maybe even several times) to make things right.
Is there a way to ensure that mounting goes to right point every time? I read about using UUID for that, but, as I said, that is not an option with identical UUIDs.
At the moment the first drive found will be assigned to /dev/sdb1. You will need to write udev rules based on any other unique identifier like serial number or manufacture. You can find their attributes via the udevadm utility
It's quite easy to change the label from the command line. I've done it several times, mostly to make the label (e. g., MY PASSPORT, which becomes "MY\ PASSPORT" on the Linux command line) easier to work with (e.g., "passport")
It appeared easier to boot into Windows and change label for NTFS drives from there.
Thanks for the hint anyway.
I now changed fstab records to look like
Code:
LABEL=my_label /mountpoint ntfs-3g 0 0
All mounts right. However, command mount still refers to /dev/... path, not to the label.
Code:
/dev/sdb1 on /mountpoint type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.