Mount another network drive

Share your awesome tips and tricks here.
sdemills
Posts: 18
youtube meble na wymiar Warszawa
Joined: Tue Jul 01, 2014 10:45 pm
Location: Nottingham UK

Mount another network drive

Post by sdemills »

I would like to write a CRON script that will regularly backup certain data from another NAS (of another brand) onto a USB drive attached to my A202T.

The problem is that I can't see how to mount the other NAS.

I've tried things like:-

Code: Select all

mount -t cifs -o rw //192.168.11.52 /media/lanstore
and it always says: mounting //192.168.11.52 on /media/lanstore failed

Can anyone suggest how this can be done? Or another viable alternative?

The end game is to copy selected folders from the other NAS into a datestamped folder (e.g. 20141119) and keep 4 rolling weekly backups.
Kind Regards
Steve
Using AS-202T with 2 x Western Digital 6TB drives as RAID1
glide
Posts: 20
Joined: Sun Dec 22, 2013 7:27 am

Re: Mount another network drive

Post by glide »

I believe you need to specify credentials for CIFS to successfuly mount it.
I would try to create a "cred" file, with username= and password= and then pass it to mount via -o credentials= (check man for proper syntax)

You can try to pass -o username=,password= to mount directly, but my experience is, that credentials file works best.
AS-204TE
sdemills
Posts: 18
Joined: Tue Jul 01, 2014 10:45 pm
Location: Nottingham UK

Re: Mount another network drive

Post by sdemills »

Thank you - that tip helped - in the end I did it like this...

Code: Select all

mount -t cifs -o user=<userId>,pass=<password> //192.168.11.2/share /mnt/shares/ls-chlb05
having first created the destination directory.

Then I can

Code: Select all

cd /mnt/shares/ls-chlb05
and from in there I can see all the files on the other share

Thanks again for your valuable help.

Kind Regards
Steve
Kind Regards
Steve
Using AS-202T with 2 x Western Digital 6TB drives as RAID1