PNPIII - trying to get NAS mounted for LMS - SUCCESS!!

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post 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!
Error
Posts: 243
Joined: Wed Sep 18, 2013 2:13 pm

Re: PNPIII - trying to get NAS mounted for LMS

Post 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
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post 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
Last edited by castalla on Mon Sep 30, 2013 7:58 pm, edited 2 times in total.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post 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.
Error
Posts: 243
Joined: Wed Sep 18, 2013 2:13 pm

Re: PNPIII - trying to get NAS mounted for LMS

Post 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.
Error
Posts: 243
Joined: Wed Sep 18, 2013 2:13 pm

Re: PNPIII - trying to get NAS mounted for LMS

Post 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.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post by castalla »

No - check that CIFS is enabled NOT NFS
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post 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
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post 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.
Error
Posts: 243
Joined: Wed Sep 18, 2013 2:13 pm

Re: PNPIII - trying to get NAS mounted for LMS

Post 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.

#
Error
Posts: 243
Joined: Wed Sep 18, 2013 2:13 pm

Re: PNPIII - trying to get NAS mounted for LMS

Post 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)
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post by castalla »

edited
Last edited by castalla on Thu Oct 03, 2013 11:37 pm, edited 1 time in total.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post 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
User avatar
offbeatdave
Posts: 1047
Joined: Wed Mar 09, 2011 10:43 pm

Re: PNPIII - trying to get NAS mounted for LMS

Post by offbeatdave »

Wow. Hope this works! I'll find the script to mount it on boot when it's confirmed!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post by castalla »

It doesn't work as a usual mount in fstab.

Could it be addedd to the rc.init scripts?
User avatar
offbeatdave
Posts: 1047
Joined: Wed Mar 09, 2011 10:43 pm

Re: PNPIII - trying to get NAS mounted for LMS

Post by offbeatdave »

Will have a probe either later or tomorrow evening.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post by castalla »

Created a rc.local file including the command - didn't work either.
User avatar
offbeatdave
Posts: 1047
Joined: Wed Mar 09, 2011 10:43 pm

Re: PNPIII - trying to get NAS mounted for LMS

Post 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.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: PNPIII - trying to get NAS mounted for LMS

Post by castalla »

Cheers.

I'll try it tomorrow ... and report back
User avatar
offbeatdave
Posts: 1047
Joined: Wed Mar 09, 2011 10:43 pm

Re: PNPIII - trying to get NAS mounted for LMS

Post 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.
Last edited by offbeatdave on Fri Oct 04, 2013 7:46 am, edited 1 time in total.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
Post Reply