NASLite Network Attached Storage

www.serverelements.com
Task-specific simplicity with low hardware requirements.
It is currently Fri Apr 19, 2024 3:03 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Dec 29, 2004 1:31 am 
Offline

Joined: Wed Dec 29, 2004 1:21 am
Posts: 6
I've been using NASLite on a home network for several months now and am very pleased. I've recently set up a Linux box (Debian). I can browse the drives using Konqeror (e.g., by using smb://naslite-smb/drive-1, etc.). But it takes a while to connect. I can also mount the NASLite drives for each session using komba. However, I lose the mounts each time I shut down.

Can anyone help me with a fstab command that would permanently mount these drives? The NAS ip address is 192.168.0.2.

Thanks.
Bill


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 31, 2004 7:44 am 
Offline

Joined: Tue Aug 03, 2004 4:24 pm
Posts: 12
I use

//192.168.1.20/disk-1 /home/e-smith/files/primary/files/mp3disk smbfs username=a
dmin,password=nas 0 0

on my linux sme 6 server


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 31, 2004 4:02 pm 
Offline

Joined: Wed Dec 29, 2004 1:21 am
Posts: 6
Nope. That didn't work for me. But, I did find a solution. It has to do with putting a script in the rc.d file. From what I understand (just a newbie here) the rc.d file contains startup scripts that are run after the operating system (including network) are up and running.

Here's what I did: First I create my mount points: /mnt/nasdisk1 and mnt/naskisk3

Then I used a text editor to created a script file (I called it xmount.sh) that consists of the following :

#! /bin/sh
#
#
smbmount //naslite-smb/disk-1 /mnt/nasdisk1 -o username=admin,password=nas
smbmount //naslite-smb/disk-3 /mnt/nasdisk3 -o username=admin,password=nas


I placed this file in "/etc/init.d". Then I compiled it using the the following command in terminal:
chmod +x /etc/init.d/xmount.sh

I then add it to the rc.d file by running the following in terminal:
update-rc.d xmount.sh defaults 20

A bit complicated, but that did it. Now my NAS disks mount at startup.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 31, 2004 5:12 pm 
Offline

Joined: Tue Aug 03, 2004 4:24 pm
Posts: 12
Well i am no linux expert, it works for me. Mount points also have to be created and a mount -a or a reboot to set it away.

I have the nas BLOCKED_WORD into the anonymous ftp area of the SME server, a few mates can get in but the SME security prevents file modification of the nas files.

I have also used this to map one sme server to another.

I am sure you know my example was ment to be on one line.

Happy new year.

Steve.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 31, 2004 5:35 pm 
Offline

Joined: Wed Dec 29, 2004 1:21 am
Posts: 6
Thanks, Steve. Yeah, I don't know why it didn't work on my box the way you suggested. Doing a "google" on the web found other sites (at least 1 specifically dealing with an NASLite server) that suggested the same thing you did. Weird. I can't figure out what I'm doing wrong there. But, the solution I eventually found - though pretty complicated - is working. So, I guess that's good enough for now.

Thanks again for the help. Happy New Year to you, too.


Top
 Profile  
 
 Post subject: smbmount & /etc/fstab
PostPosted: Sun Jan 30, 2005 6:21 pm 
Offline

Joined: Sun Aug 01, 2004 2:58 pm
Posts: 5
I've been having the similar troubles.. I am currently setting up a MythTV box, based on the KnoppMyth distro (Debian). In my case, I am unable to mount any of the folders on my NASLite box. Here's one example:

[code]
root@mythtv:/myth/video # smbmount //harrier/Disk-1/Video /myth/video/harrier
Password: [enter]
934: tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)
SMB connection failed
[/code]
- OR -
[code]
root@mythtv:/myth/video # smbmount //192.168.0.10/Disk-1/Video /myth/video/harrier
Password: [enter]
943: tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)
SMB connection failed
[/code]

I've tried various combinations of capitalization in the NAS path name to no avail. Also, putting in an entry in my fstab seems to have no effect. (haven't checked the logs yet to see what the precise error is yet, though.) From the error message, it looks like the samba client is able to contact the box (asking for password), but is having trouble with the path I specify.

Any ideas about what I'm missing here?

Thanks!

~ D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 30, 2005 9:00 pm 
Offline
Site Admin

Joined: Tue Jul 13, 2004 4:11 pm
Posts: 1771
Location: Server Elements
You are trying to mount a directory rather than a share. NASLite exports Disk-1 and not Disk-1/Video. Try this:

Code:
root@mythtv:/myth/video# smbmount //harrier/Disk-1 /myth/video/harrier


Top
 Profile  
 
 Post subject: That did it!
PostPosted: Sun Jan 30, 2005 10:15 pm 
Offline

Joined: Sun Aug 01, 2004 2:58 pm
Posts: 5
Tony,

Many thanks. That did the trick!

~ D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group