Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

mounted directories on OS X
I cannot cd into directories that are mounted from the network, the
error message being

??? Error using ==> cd
Cannot CD to /data (Name is nonexistent or not a directory

even though I cd cd into /data in the X11-shell. Any Idea what to do?
Thanx,
B

Report this thread to moderator Post Follow-up to this message
Old Post
Benjamin Staude
05-20-05 09:02 PM


Re: mounted directories on OS X
In article <ef06a22.-1@webx.raydaftYaTP>,
"Benjamin Staude" <staude@neurobiologie.fu-berlin.de> wrote:

> I cannot cd into directories that are mounted from the network, the
> error message being
>
> ??? Error using ==> cd
> Cannot CD to /data (Name is nonexistent or not a directory
>
> even though I cd cd into /data in the X11-shell. Any Idea what to do?
> Thanx,
>     B

Use...

cd '/Volumes/data'

(i.e., /Volumes is the mount point)

HTH,

Ken P.

Report this thread to moderator Post Follow-up to this message
Old Post
Ken Prager
05-21-05 02:00 AM


Re: mounted directories on OS X
Benjamin Staude <staude@neurobiologie.fu-berlin.de> wrote:

> I cannot cd into directories that are mounted from the network, the
> error message being
>
> ??? Error using ==> cd
> Cannot CD to /data (Name is nonexistent or not a directory

 
Filesystem              512-blocks      Used      Avail Capacity
Mounted on
/dev/disk0s3             489972528  55231312  434229216    11%    /
devfs                          192       192          0   100%    /dev
fdesc                            2         2          0   100%    /dev
<volfs>                       1024      1024          0   100%    /.vol
automount -nsl [115]             0         0          0   100%
/Network
automount -fstab [143]           0         0          0   100%
/automount/Servers
automount -static [143]          0         0          0   100%
/automount/static
141.44.50.56:/home1     1562257336 278679104 1283578232    18%
/private/Network/Servers/141.44.50.56/home1 


Tschau - Robert
--
vertrau
voraus voraus

Report this thread to moderator Post Follow-up to this message
Old Post
Robert W. Kuhn
05-23-05 01:59 PM


Re: mounted directories on OS X
Benjamin Staude wrote:
> ??? Error using ==> cd
> Cannot CD to /data (Name is nonexistent or not a directory

I get the exact same failure message on my /home, which is not NFS
mounted. It is a completely normal ext3 drive. df says:

/dev/hda4 ... ... ... 96% /home

I wondered whether the 96% fill might be a problem. But I have no
problem creating files and browsing through the file system with
other programs.

The really mysterious thing is, that cd actually changes directory
the way I ask it to. And ls shows the correct list of directory
content. But the graphical directory listing doesn't work, and Matlab
refuses to run any scripts in the directory.

The problem only arises on my /home drive. There is no problem on /
or on my plenty of NFS mounted drives.

By the way: Fedora Core 2 running Linux 2.6.5. Matlab 7.0.1.24704.

Report this thread to moderator Post Follow-up to this message
Old Post
Mac Wendelboe
05-27-05 09:04 PM


Re: mounted directories on OS X
I had the exact same problem as below:

> Benjamin Staude wrote: 
>
> The really mysterious thing is, that cd actually changes directory
> the way I ask it to. And ls shows the correct list of directory
> content. But the graphical directory listing doesn't work, and
> Matlab refuses to run any scripts in the directory.

This was on Mac OS X 10.3.9, using R14, both SP1 and SP2.
This was running from my home directory, mounted at /home from a Mac
OS X Server 10.3.9 machine.

The half-fix was to make a softlink from /automount/static/home to
/automount/home. This works sometimes. However, I still have the
problem when Matlab randomly decides to pre-pend /private to the
path: 
ans =
/automount/home/ianfasel/SCTL/MPTX/Flonk

Things here work normally, however if the file is in a subdirectory:
 
/private/automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/bootstr
ap.m
(notice /private here but not above)
Then matlab won't notice changes to files in this directory and it is
necessary to type 
to get it to run the files as they exist on disk rather than run them
from cache.

-Ian

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Fasel
05-30-05 01:58 AM


Re: mounted directories on OS X
Here's another weird example:
 
ans =
/automount/home/ianfasel/SCTL/MPTX/Flonk 
/private/automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/bootstr
ap.m 
/automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/bootstrap.m

Notice that when I change into the directory where the file is
located, /private is no longer part of the pathname. If I run
'bootstrap' from the original directory, matlab does not notice
changes to the file. However if I cd into the directory, it now
notices changes.

Perhaps it has something to do with the pathnames I used when I added
the path?

-Ian

Ian Fasel wrote:
>
>
> I had the exact same problem as below:
> 
> directory 
>
> This was on Mac OS X 10.3.9, using R14, both SP1 and SP2.
> This was running from my home directory, mounted at /home from a
> Mac
> OS X Server 10.3.9 machine.
>
> The half-fix was to make a softlink from /automount/static/home to
> /automount/home. This works sometimes. However, I still have the
> problem when Matlab randomly decides to pre-pend /private to the
> path: 
> ans =
> /automount/home/ianfasel/SCTL/MPTX/Flonk
>
> Things here work normally, however if the file is in a
> subdirectory:
> 
>
/private/automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/boots
> tr
> ap.m
> (notice /private here but not above)
> Then matlab won't notice changes to files in this directory and it
> is
> necessary to type 
> to get it to run the files as they exist on disk rather than run
> them
> from cache.
>
> -Ian

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Fasel
05-30-05 01:58 AM


Re: mounted directories on OS X
One more observation... There is a difference between R14 and R14sp2
apparently. In R14, if I add a path, the relative pathname is used
when I type 'which'. In R14sp2, the full pathname is used when I use
which.

Example 1: (This works correclty -- i.e., changes to files are
noticed)...
% /Applications/MATLAB7/bin/matlab -nojvm -nosplash
Xlib: extension "GLX" missing on display "localhost:10.0".
??? Not able to create a render context.

Warning: Error occured while loading OpenGL

< M A T L A B >
Copyright 1984-2004 The MathWorks,
Inc.
Version 7.0.0.19901 (R14)
May 06, 2004


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
 
RNDerivatives/bootstrap.m 

-----------------

Example 2: (The following does not work, i.e., changes to files are
not noticed)...

% /Applications/MATLAB7sp2/bin/matlab -nojvm -nosplash

< M A T L A B >
Copyright 1984-2005 The MathWorks,
Inc.
Version 7.0.4.352 (R14) Service Pack 2
January 29, 2005


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
 
/private/automount/home/ianfasel/SCTL/MPTX/Boosting/RNDerivatives/boot
strap.m 

I hope this information can be useful to someone trying to find a
workaround.

-Ian

Ian Fasel wrote:
>
>
> Here's another weird example:
> 
> ans =
> /automount/home/ianfasel/SCTL/MPTX/Flonk 
>
/private/automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/boots
> tr
> ap.m 
> /automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/bootstrap.m
>
> Notice that when I change into the directory where the file is
> located, /private is no longer part of the pathname. If I run
> 'bootstrap' from the original directory, matlab does not notice
> changes to the file. However if I cd into the directory, it now
> notices changes.
>
> Perhaps it has something to do with the pathnames I used when I
> added
> the path?
>
> -Ian
>
> Ian Fasel wrote: 
> directory 
> directory 
> and 
a 
> to 
> the 
the 
>
/private/automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/boots
> 
> it 
run 

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Fasel
05-30-05 01:58 AM


Re: mounted directories on OS X
One more observation... There is a difference between R14 and R14sp2
apparently. In R14, if I add a path, the relative pathname is used
when I type 'which'. In R14sp2, the full pathname is used when I use
which.

Example 1: (This works correclty -- i.e., changes to files are
noticed)...
% /Applications/MATLAB7/bin/matlab -nojvm -nosplash
Xlib: extension "GLX" missing on display "localhost:10.0".
??? Not able to create a render context.

Warning: Error occured while loading OpenGL

< M A T L A B >
Copyright 1984-2004 The MathWorks,
Inc.
Version 7.0.0.19901 (R14)
May 06, 2004


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
 
RNDerivatives/bootstrap.m 

-----------------

Example 2: (The following does not work, i.e., changes to files are
not noticed)...

% /Applications/MATLAB7sp2/bin/matlab -nojvm -nosplash

< M A T L A B >
Copyright 1984-2005 The MathWorks,
Inc.
Version 7.0.4.352 (R14) Service Pack 2
January 29, 2005


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
 
/private/automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/bootstr
ap.m 

I hope this information can be useful to someone trying to find a
workaround.

-Ian

Ian Fasel wrote:
>
>
> Here's another weird example:
> 
> ans =
> /automount/home/ianfasel/SCTL/MPTX/Flonk 
>
/private/automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/boots
> tr
> ap.m 
> /automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/bootstrap.m
>
> Notice that when I change into the directory where the file is
> located, /private is no longer part of the pathname. If I run
> 'bootstrap' from the original directory, matlab does not notice
> changes to the file. However if I cd into the directory, it now
> notices changes.
>
> Perhaps it has something to do with the pathnames I used when I
> added
> the path?
>
> -Ian
>
> Ian Fasel wrote: 
> directory 
> directory 
> and 
a 
> to 
> the 
the 
>
/private/automount/home/ianfasel/SCTL/MPTX/Flonk/RNDerivatives/boots
> 
> it 
run 

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Fasel
05-30-05 01:58 AM


Re: mounted directories on OS X
Now I see, that when I am actually standing in /home/macw, Matlab
thinks I am standing in /usr/local/macw:
 

ans =

/usr/local/macw

This probably has something to do with the installation path of
Matlab (/usr/local/matlab14). May it could also have something to do,
with the way I installed Matlab. Since I was short of space on my
/usr/local, I installed Matlab in /home/matlab14 and symlinked that
to /usr/local/matlab14.

I have no idea about how to work around this problem.

Report this thread to moderator Post Follow-up to this message
Old Post
Mac Wendelboe
05-31-05 02:14 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Matlab archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:29 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.