[SOLVED] Auto Mount 2 Hard Drives attached by USB to Router
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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The second field in an fstab line is the place where things get mounted into the existing filesystem. And as you noticed correctly if you mount two things in the same place you only see the last added one. So you need a second directory for the second hdd. Did you make the directory /media1/public1 allready?
I don't think that UUID will help much here due to you mounting network drives.
To see why things fail you have to take a look at the /var/log/syslog file or the message file. Or hit dmesg|less and search for smb, samba or cifs errors. Or try to mount them by hand and see what it errors out. Or have a second terminal with tail -f /var/log/messages.
Thanks Zhjim... you are correct in the behavior of the mount point being the same - the last mount only shows as mounted as you said. I also did make the directory /media1/public1 for the second mount and prior to testing assumed it would work, but oddly it did not and neither drive mounted.
At any rate I did get it working. For me, the problem seemed to be the area in the filesystem in which I placed the mount point. After trying various scenarios any place I placed the mount points before my /home directory I could only get one drive to mount, even when setting up 2 separate directories in the case of /media/public and /media1/public1 I couldn't get any to mount.
I changed my mount points to the Public folder in my home directory /home/vcandy/Public/HDD1 and /home/vcandy/Public/HDD2 and it resolved the issue.
I wouldn't be surprised if this is a permissions issue, for the small amount of time I have been tinkering with Linux many of the issues seem to stem from my ignorance of permissions.
Great you have it solved. Please mark thread as appropiate.
I'd wonder if the culprit really is the mount point within the filesystem hierachry but if the new path suites all should be good.
Normaly all binds that happen due to /etc/fstab are done with root permission so there should be no problem. At least when it comes to mounting. User access sure uses the permissions of the according directories.
If you have some time, maybe dig into logs some more to see what might be the error with the old mount path