Page 9 of 15

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Sun Sep 29, 2013 7:54 pm
by castalla
It's also dependent on the shared device - I can get mounting if I use username-guest,password=

We're struggling here - so chip in if you have any insights!

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 6:09 pm
by Error
castalla wrote:When you open with Start \\ and the explorer window opens - do you only see the Muziek folder ?
No, when I click the Win7 start button and I type "\\" then I see 192.168.0.13. That's all.

I re-setup my NAS, disabled public access (so you have to login).
I noticed the volume is called 'DATA'.
I also noticed the datatype=called 'span'??

I think this might just be the problem?? this has also to do with ntfs right? which the joggler can't read

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 7:16 pm
by castalla
Okay - in Win \\192.168.0.13 plus return - does the command open an explorer windows showing a DATA folder ? If, so double click on that - what's in it?

Try

/bin/busybox.new mount -v -t cifs //192.168.0.13/Muziek /media/media/media-share1 -o user=Joggler,password=Joggler,_netdev,noperm

... as a test to get some output

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 7:35 pm
by castalla
Here's the intructions for setting up NFS - just change to NFS to CIFS to set ensure that CIFS is set up

We need to be sure CIFS is enabled.

It also seems that the Joggler has to be authorised (point 3). This probably means the Joggler has to have a fixed IP address (?) - unless there's an option for any other PCs. Let's see what happens if you use the 0.12 address which you mentioned earlier.

1. Access the management page of the BlackArmor.
Get the IP address from the LCD of your BlackArmor.
Open a web browser and enter the IP.

2. Ensure the share you want to access is setup for NFS.
Go to the Network section and then to Shares.
If NFS is enabled for a particular share, there will be a green checkmark on it.
If it is not, check on the modify and make sure to check the NFS box.

3. Setup the NFS Service
Go to the Network section and then to Services.
Under NFS Service, ensure that it is set to Enable.
Make sure to enter the IP Addresses of your Linux computers.
When adding them, do it one at a time, clicking Add each time.
Click Submit once you are finished.

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 9:24 pm
by Error
castalla wrote:Okay - in Win \\192.168.0.13 plus return - does the command open an explorer windows showing a DATA folder ? If, so double click on that - what's in it?
No it returns an exploer window with folders Music, DVDs, Photos and Uploads, these are the four folders I created on the NAS.

I reset the NAS so a user has to login. When I fill in the IP-address, Share, User and passw the weel keeps turning (as it does each time)
So I'm almost certain it has something to do with LMS not getting access to the files. It's a pity I can't see why that is..
I'm looking into the "security" tab of the shared folder now.

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 9:34 pm
by Error
castalla wrote:Here's the intructions for setting up NFS - just change to NFS to CIFS to set ensure that CIFS is set up

We need to be sure CIFS is enabled.

It also seems that the Joggler has to be authorised (point 3). This probably means the Joggler has to have a fixed IP address (?) - unless there's an option for any other PCs. Let's see what happens if you use the 0.12 address which you mentioned earlier.

1. Access the management page of the BlackArmor.
Get the IP address from the LCD of your BlackArmor.
Open a web browser and enter the IP.

2. Ensure the share you want to access is setup for NFS.
Go to the Network section and then to Shares.
If NFS is enabled for a particular share, there will be a green checkmark on it.
If it is not, check on the modify and make sure to check the NFS box.

3. Setup the NFS Service
Go to the Network section and then to Services.
Under NFS Service, ensure that it is set to Enable.
Make sure to enter the IP Addresses of your Linux computers.
When adding them, do it one at a time, clicking Add each time.
Click Submit once you are finished.
NFS was already enabled and I already added the IP-address of LMS.

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 9:36 pm
by castalla
No - check that CIFS is enabled NOT NFS

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 9:42 pm
by castalla
You say Music folder - not Muziek ??? Which is it?

Please try:

/bin/busybox.new mount -v -t cifs //192.168.0.13/Muziek /media/media/media-share1 -o user=Joggler,password=Joggler,_netdev,noperm 0 0

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 9:48 pm
by castalla
LMS will never see the NAS until it gets a successful mount

We have to try the PuTTy route to see what is happening.

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 9:49 pm
by Error
yes it is "Muziek" :D sorry

Code: Select all

# /bin/busybox.new mount -v -t cifs //192.168.0.13/Muziek /media/media/media-share1 -o user=Joggler,password=Joggler,_netdev,noperm 0 0
BusyBox v1.16.1 (2010-04-30 10:35:46 BST) multi-call binary.

Usage: mount [OPTIONS] [-o OPTS] DEVICE NODE

Mount a filesystem. Filesystem autodetection requires /proc.

Options:
        -a              Mount all filesystems in fstab
        -f              Dry run
        -r              Read-only mount
        -w              Read-write mount (default)
        -t FSTYPE       Filesystem type
        -O OPT          Mount only filesystems with option OPT (-a only)
-o OPT:
        loop            Ignored (loop devices are autodetected)
        [a]sync         Writes are [a]synchronous
        [no]atime       Disable/enable updates to inode access times
        [no]diratime    Disable/enable atime updates to directories
        [no]relatime    Disable/enable atime updates relative to modification time
        [no]dev         (Dis)allow use of special device files
        [no]exec        (Dis)allow use of executable files
        [no]suid        (Dis)allow set-user-id-root programs
        [r]shared       Convert [recursively] to a shared subtree
        [r]slave        Convert [recursively] to a slave subtree
        [r]private      Convert [recursively] to a private subtree
        [un]bindable    Make mount point [un]able to be bind mounted
        bind            Bind a file or directory to another location
        move            Relocate an existing mount point
        remount         Remount a mounted filesystem, changing flags
        ro/rw           Same as -r/-w

There are filesystem-specific -o flags.

#

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 9:50 pm
by Error
castalla wrote:No - check that CIFS is enabled NOT NFS
Hm sorry. But they're both enabled. (CIFS, NFS and FTP in fact)

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Mon Sep 30, 2013 10:01 pm
by castalla
edited

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Thu Oct 03, 2013 5:24 pm
by castalla
SUCCESS!!!!!

Ignore all above!!!!

Here's the command you need to mount the fileshares .....

mount -t cifs Muziektest /media/media/media-share1 -o user=Joggler,password=Joggler,unc=//192.168.0.13/Muziek

This should just return the command prompt. No errors or confirmation. Then you type command below to see the listing:

ls /media/media/media-share1

NOW, this is just a test to see if we can actually mount the share. We need to figure out how to get the mounting to work whenever you switch on the Joggler.

I need to think about that.

@offbeatdave

Any ideas on how to get this command (assuming it works for Error) to autorun

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Thu Oct 03, 2013 6:22 pm
by offbeatdave
Wow. Hope this works! I'll find the script to mount it on boot when it's confirmed!

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Thu Oct 03, 2013 7:14 pm
by castalla
It doesn't work as a usual mount in fstab.

Could it be addedd to the rc.init scripts?

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Thu Oct 03, 2013 7:46 pm
by offbeatdave
Will have a probe either later or tomorrow evening.

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Thu Oct 03, 2013 8:46 pm
by castalla
Created a rc.local file including the command - didn't work either.

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Thu Oct 03, 2013 9:17 pm
by offbeatdave
By my reckoning it should go in the /etc/init.d/boot.d/S57boot.cifs file on a PnP III Joggler. My first line of this file is

Code: Select all

insmod /lib/modules/2.6.24-19-lpia/kernel/fs/cifs.ko CIFSMaxBufSize=130048
The mount line goes in afterwards.

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Thu Oct 03, 2013 9:24 pm
by castalla
Cheers.

I'll try it tomorrow ... and report back

Re: PNPIII - trying to get NAS mounted for LMS

Posted: Thu Oct 03, 2013 9:28 pm
by offbeatdave

Code: Select all

mount -t cifs Muziektest /media/media/media-share1 -o user=Joggler,password=Joggler,unc=//192.168.0.13/Muziek
I've just tested this command on my set-up and it appears to work nicely. I've not tried it in the file noted above, but there's no reason why it shouldn't work that I can see.

If this proves to be more compatible then I can change the script in the PnP share mounting option. What's the significance of the Muziektest?

Edit - it works when popped in the file noted above, so if it works for this situation I may alter PnP build to work this way instead. I'll also try and update first post and guide if necessary.