Nope, that doesn't seem to be doing it...<br />
<br />
On Thu, 5 Feb 2009 13:28:29 -0800 (PST), Brendan Ford wrote:<br />
<blockquote style="border-left: 2px solid #1010ff; padding-left: 5px; margin-left: 5px; width: 100%">
<!-- DIV {margin:0px;} -->
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt">
<div>
Will,<br />
Depending on your shell, the colon immediately after your variable can be causing something other than what you expect. Try enclosing the HOSTNAME in curlies to avoid this confusion:<br />
<br />
<span style="font-family: Courier New,courier,monaco,monospace,sans-serif"> mount -t nfs -o hard,intr,nfsvers=2 ${HOSTNAME}:$SHARE $MOUNTPOINT</span><br />
<br />
I hope that helps,<br />
-Frd<br />
</div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt">
<br />
<div style="font-family: arial,helvetica,sans-serif; font-size: 13px">
<font face="Tahoma" size="2">
<hr />
<strong><span style="font-weight: bold">From:</span></strong> Will <br />
<strong><span style="font-weight: bold">To:</span></strong> lilug@lilug.org<br />
<strong><span style="font-weight: bold">Sent:</span></strong> Thursday, February 5, 2009 3:56:49 PM<br />
<strong><span style="font-weight: bold">Subject:</span></strong> [Lilug] NAS mounting problem<br />
</font><br />
Ok, so I've run into a bit of a problem...<br />
<br />
We're running a streaming video server at my job, and rather then pay the<br />
company we got it from for a 2 terabyte upgrade, we wanted to use a NAS. (I<br />
know, it's a very bad idea, but it beats forking over tons of money for<br />
something as simple as a hard disk)<br />
<br />
The machine is running a 2.4 kernel, with some version of Red Hat. The NAS<br />
is running windows server 2003.<br />
<br />
When I tried to mount the NAS through samba, I discovered that the kernel<br />
doesn't have smbfs support built in, so I tried using NFS instead. The<br />
problem is, whenever I use the mount command, it just hangs. Here's the<br />
relevant line from the script I wrote:<br />
<br />
mount -t nfs -o hard,intr,nfsvers=2 $HOSTNAME:$SHARE $MOUNTPOINT<br />
<br />
I tried various versions of NFS, but it still doesn't seem to work. I also<br />
tried just passing "mount $HOSTNAME:$SHARE $MOUNTPOINT", but that didn't<br />
work either. Whenever I run
the command, it just hangs, and I have to open<br />
up another terminal and run killall on my script.<br />
<br />
The NAS can be pinged from the machine, so it's accessible from the<br />
network. The variables I'm specifying are correct as well.<br />
<br />
Anybody have a clue what may be going on?<br />
<br />
_______________________________________________<br />
Lilug mailing list<br />
<a href="mailto:Lilug@lilug.org">Lilug@lilug.org</a><br />
<a href="http://lists.lilug.org/listinfo.cgi/lilug-lilug.org" target="_blank">http://lists.lilug.org/listinfo.cgi/lilug-lilug.org</a><br />
</div>
</div>
</div>
</blockquote>