LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync - problem connecting to network external drive (https://www.linuxquestions.org/questions/linux-software-2/rsync-problem-connecting-to-network-external-drive-947052/)

toothandnail 05-29-2012 02:17 AM

:) Glad it worked....

I suspect the reason it failed to work in fstab is the lack of an absolute path, but there might also be issues with network startup on boot.

Anyhow, great that you've to it working.

Paul.

toothandnail 05-29-2012 02:33 AM

Quote:

Originally Posted by Polymorph (Post 4689995)
Is there any startup script that I could put the mount statement into to get the drive mounted on startup? I have tried ~/.profile and /etc/bash.bashrc but I am just guessing

Sorry, missed this. The normal place for that type of command in a Debian based system would be /etc/rc.local The mount command requires root access, and rc.local will run with the correct access.

There may be a problem with the network layer not being fully operational when rc.local is run. I suspect that would depend mainly on whether you're using a wired or wireless connection to the router. If its wireless, the mount command in rc.local will probably not work - Network Manager will only run when you log in as a user, which will be after rc.local has run.

Quote:

Thanks for all your help
You're welcome.

Paul.

Polymorph 05-29-2012 09:35 AM

I found this - http://opensuse.swerdna.org/susesambacifs.html#fstab

I put
Quote:

//192.168.0.1/USB /USB cifs guest,_netdev 0 0
into /etc/fstab and the USB drive mounts on startup without any problem.

I will have to switch the modem on and let it boot fully so that the drive is available before starting the computers. No problem!!

Thanks again.

Alan


All times are GMT -5. The time now is 01:47 AM.