LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Quick mountscript question? (https://www.linuxquestions.org/questions/linux-newbie-8/quick-mountscript-question-86015/)

Newman_SCO 08-26-2003 04:41 PM

Quick mountscript question?
 
Hi there.

I used LinNeighborhood to make a mount script.
Which is:
#! /bin/sh

# SMB mount script
# created by LinNeighborhood

smbmount //AOL083/Full\040Albums /networkbrowse/AOL083/Full\040Albums/ -o username=admin%,fmask=644,dmask=755,uid=502,gid=502,ip=192.168.1.253,debug=0,workgroup=TITAN
smbmount //AOL083/Mp3\040Singles /networkbrowse/AOL083/Mp3\040Singles/ -o username=admin%,fmask=644,dmask=755,uid=502,gid=502,ip=192.168.1.253,debug=0,workgroup=TITAN
smbmount //AOL083/new\040so\040sort /networkbrowse/AOL083/new\040so\040sort/ -o username=admin%,fmask=644,dmask=755,uid=502,gid=502,ip=192.168.1.253,debug=0,workgroup=TITAN


(underRoot)whenever I:
$sh mountscriptextra

I get:
Could not resolve mount point /networkbrowse/AOL083/Full040Albums/
Could not resolve mount point /networkbrowse/AOL083/Mp3040Singles/
Could not resolve mount point /networkbrowse/AOL083/new040so040sort/

-The folder/s and path are chmod 777

-Whenever I use LinNeighborhood manually with out using the script. It works.

-Firstly I query my machine ip. Right click on my machine name and click browse as user admin. It displays my folders. Then I right click on the folder I want to mount and select mount.

This then works perfectly.

Why does it not work using the script?

(I watched the log and compared when using LinNeighborhood. It is using the same commands)

Thank you!

DrOzz 08-26-2003 05:20 PM

just try by putting the directorys in spaces in quotes " " ...
instead of using the \ slash..
so you will have something like AOL083/"new 040so 040sort"/

Newman_SCO 08-26-2003 05:37 PM

DrOzz,

Thanks for the response

I hope you are stilll on browsing the forums.

Just to say the 040 in the paths were made by LinNeighborhood.

I think it is the same sort of syntax used on websites for spaces in filenames. Which is %20 . e.g. something like blah%20blah.htm

Should I just leave out the 040's??

Just about to try it.

Thanks

Newman_SCO 08-26-2003 07:12 PM

I have changed the script.
to:
#! /bin/sh
# Working down to DrOzz's help , well lol

smbmount //AOL083/"Full Albums" /networkbrowse/AOL083/"Full Albums"/ -o username=admin%,fmask=644,dmask=755,uid=502,gid=502,ip=192.168.1.253,debug=0,workgroup=TITAN
smbmount //AOL083/"Mp3 Singles" /networkbrowse/AOL083/"Mp3 Singles"/ -o username=admin%,fmask=644,dmask=755,uid=502,gid=502,ip=192.168.1.253,debug=0,workgroup=TITAN
smbmount //AOL083/"new so sort" /networkbrowse/AOL083/"new so sort"/ -o username=admin%,fmask=644,dmask=755,uid=502,gid=502,ip=192.168.1.253,debug=0,workgroup=TITAN

U should tell LinNeighborhood developers. Well if you think it is a possible common problem.

Will vote for you, through your sig

Thanks!

DrOzz 08-26-2003 09:53 PM

glad it worked d00d :D


All times are GMT -5. The time now is 01:03 PM.