[Lilug] NAS mounting problem

Brendan Ford frd050101 at yahoo.com
Thu Feb 5 15:55:46 PST 2009


Yeah, it's never that simple :(
Have you tried it at the commandline without the variables?
EG:
    mount MyNas:/shared /nas


I kinda doubt that will do it too because if the command itself is faulty, you would expect to get an error back right away. 
Also, try running the mount with strace to hopefully see where it is hanging.
Are you able to see the share using a filemanager GUI?


________________________________
From: Will <will at psychdesigns.net>
To: LILUG Mailing List <lilug at lilug.org>
Sent: Thursday, February 5, 2009 6:08:11 PM
Subject: Re: [Lilug] NAS mounting problem

Nope, that doesn't seem to be doing it...

On Thu, 5 Feb 2009 13:28:29 -0800 (PST), Brendan Ford  wrote:

Will,
 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:

    mount -t nfs -o hard,intr,nfsvers=2 ${HOSTNAME}:$SHARE $MOUNTPOINT

I hope that helps,
-Frd




________________________________
 From: Will 
To: lilug at lilug.org
Sent: Thursday, February 5, 2009 3:56:49 PM
Subject: [Lilug] NAS mounting problem

Ok, so I've run into a bit of a problem...

We're running a streaming video server at my job, and rather then pay the
company we got it from for a 2 terabyte upgrade, we wanted to use a NAS. (I
know, it's a very bad idea, but it beats forking over tons of money for
something as simple as a hard disk)

The machine is running a 2.4 kernel, with some version of Red Hat. The NAS
is running windows server 2003.

When I tried to mount the NAS through samba, I discovered that the kernel
doesn't have smbfs support built in, so I tried using NFS instead. The
problem is, whenever I use the mount command, it just hangs. Here's the
relevant line from the script I wrote:

mount -t nfs -o hard,intr,nfsvers=2 $HOSTNAME:$SHARE $MOUNTPOINT

I tried various versions of NFS, but it still doesn't seem to work. I also
tried just passing "mount $HOSTNAME:$SHARE $MOUNTPOINT", but that didn't
work either. Whenever I run the command, it just hangs, and I have to open
up another terminal and run killall on my script.

The NAS can be pinged from the machine, so it's accessible from the
network. The variables I'm specifying are correct as well.

Anybody have a clue what may be going on?

_______________________________________________
Lilug mailing list
Lilug at lilug.org
http://lists.lilug.org/listinfo.cgi/lilug-lilug.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lilug.org/pipermail/lilug-lilug.org/attachments/20090205/884e0649/attachment-0003.htm>


More information about the Lilug mailing list