[SOLVED] CIFS mount problem
#1
As I am new here first I wish a lot of joy to all Snakeoil music lovers.
But, I have a problem with mounting shared drives which reside on Win 7 computer.
I have another box with Volumio where I need to enter vers=2.1 to be able to access the shared folders. In Snakeoil when I enter vers parameter either from GUI or when I try to mount shared folders from the terminal response is 'mount error(22).Invalid argument'.
Even I got the error, folder is created in /media/music but is empty. Shared folders are password protected.
If I try to connect without username/password when clicking on Save button, nothing happens but in the terminal is displayed the message:

Password entry required for 'Password for root@//192.168.1.25/Muzika:' (PID 4069).
Please enter a password with the systemd-tty-ask-password-agent tool!

If I try vers=1.0 there is no complaint about the invalid argument but share failed with error 'mount error(121): Remote I/O error'.

Is there any way to enable vers=2.1?
 Go to solution Reply

#2
(23-Feb-2019, 06:41 AM)nas963 Wrote: As I am new here first I wish a lot of joy to all Snakeoil music lovers.
But, I have a problem with mounting shared drives which reside on Win 7 computer.
I have another box with Volumio where I need to enter vers=2.1 to be able to access the shared folders. In Snakeoil when I enter vers parameter either from GUI or when I try to mount shared folders from the terminal response is 'mount error(22).Invalid argument'.
Even I got the error, folder is created in /media/music but is empty. Shared folders are password protected.
If I try to connect without username/password when clicking on Save button, nothing happens but in the terminal is displayed the message:

Password entry required for 'Password for root@//192.168.1.25/Muzika:' (PID 4069).
Please enter a password with the systemd-tty-ask-password-agent tool!

If I try vers=1.0 there is no complaint about the invalid argument but share failed with error 'mount error(121): Remote I/O error'.

Is there any way to enable vers=2.1?
I hit this issue recently as well - when FreeNAS deprecate SMBv1. For my case I had to reenable v1 in the NAS to get things to work.

Now that you posted about this, I investigated deeper, and founod out the reason why:
[Image: oJWqINn.png]
The Snakeoil kernel only supports SMBv1!! [Image: bad_atmosphere.gif]

SMBv1 as you know is no longer secure and Microsoft and other NAS makers are slowly phasing this out. I'd rebuild a new kernel with SMBv2/v3 support. You will find this in the kernels section soon. You Windows share would work once you upgrade to this kernel.

There must be a reason why I chose to use SMBv1 only - This has to be AQ related. But AFAICT, I didn't document this, so could also be an oversight. We'd see.
Snakeoil Operating System - Music, your way!
Reply

#3
Go here and download the filesystems upgrade kernel. Reboot and try to mount the Windows share again, it should work.

Edit: Should work coz I havn't test this myself yet :shy:. I'm going out soon so unfortunately has run out of time.
Snakeoil Operating System - Music, your way!
Reply

#4
Yes... hoping this is available in the Pi port of Snakeoil as I still can't access Samba shares there....
Reply

#5
(23-Feb-2019, 09:21 AM)agent_kith Wrote: Go here and download the filesystems upgrade kernel. Reboot and try to mount the Windows share again, it should work.

Edit: Should work coz I havn't test this myself yet Shy. I'm going out soon so unfortunately has run out of time.

In meantime, I forced my Win 7 server to use SMB1 and was able to mount Windows share, but like you, sad SMB1 is not recommended to use because of security reasons.

If somebody needs to enable SMB1 command from PowerShell is:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 1 –Force

to disable SMB1 command is:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 0 –Force
 
I try to install the upgraded kernel, but installation failed with the last two lines:

/cow format specified
stdin: Not a typewriter 
as aufs and not support found
Reply

#6
(23-Feb-2019, 07:20 PM)nas963 Wrote: I try to install the upgraded kernel, but installation failed with the last two lines:

/cow format specified
stdin: Not a typewriter 
as aufs and not support found 
That's an interesting one. Are you still using Snakeoil OS in liveCD mode, or have you already installed this on a SSD/HDD/USB?
Snakeoil Operating System - Music, your way!
Reply

#7
(24-Feb-2019, 07:15 PM)agent_kith Wrote:
(23-Feb-2019, 07:20 PM)nas963 Wrote: I try to install the upgraded kernel, but installation failed with the last two lines:

/cow format specified
stdin: Not a typewriter 
as aufs and not support found
That's an interesting one. Are you still using Snakeoil OS in liveCD mode, or have you already installed this on a SSD/HDD/USB? 

I'm unable to install Snakeoil with new vmlinuz. I replaced the original vmlinuz with the new one on my USB stick and try to install it. Installation hangs with last two lines. When I return to the original vmlinuz installation passed normally.
Reply

#8
(24-Feb-2019, 08:28 PM)nas963 Wrote: I'm unable to install Snakeoil with new vmlinuz. I replaced the original vmlinuz with the new one on my USB stick and try to install it. Installation hangs with last two lines. When I return to the original vmlinuz installation passed normally. 
You need to install the Snakeoil with an install kernel (this is why it requires aufs, for cow - copy on write). Once installed, Snakeoil will be running on a fully fledged file system (EXT4), that is when you use the upgrade kernels (no longer require aufs).

So to install, use the install kernels, once that is done, use the upgrade kernels.

Hope this make sense Confused ?
Snakeoil Operating System - Music, your way!
Reply

#9
(24-Feb-2019, 08:37 PM)agent_kith Wrote:
(24-Feb-2019, 08:28 PM)nas963 Wrote: I'm unable to install Snakeoil with new vmlinuz. I replaced the original vmlinuz with the new one on my USB stick and try to install it. Installation hangs with last two lines. When I return to the original vmlinuz installation passed normally. 
You need to install the Snakeoil with an install kernel (this is why it requires aufs, for cow - copy on write). Once installed, Snakeoil will be running on a fully fledged file system (EXT4), that is when you use the upgrade kernels (no longer require aufs).

So to install, use the install kernels, once that is done, use the upgrade kernels.

Hope this make sense Confused

My mistake. I follow instructions 'How to modify Snakeoil LiveUSB'.
Now I install the new kernel, disable SMB1 on my Win7 and have access to shared folders without any problem. 
Thanks.
[-] The following 1 user Likes nas963's post:
  • agent_kith
Reply

#10
(24-Feb-2019, 09:00 PM)nas963 Wrote: My mistake. I follow instructions 'How to modify Snakeoil LiveUSB'.
Now I install the new kernel, disable SMB1 on my Win7 and have access to shared folders without any problem. 
Thanks. 
No problem. It's understandable, coz the way the kernels work are pretty confusing. Hopefully I can find ways to improve on that in the future.
Snakeoil Operating System - Music, your way!
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rpi4+AlloDigiOne sig. Snakeoil os installation problem Luke 38 13 1,921 06-Sep-2023, 07:36 AM
Last Post: agent_kith
  Problem to install Upmdpcli on Raspberry Pi 4 kees1000 6 1,007 16-Jul-2023, 06:54 PM
Last Post: agent_kith
  Problem running MPD with 1.2.9 firmware koko6969koki 1 437 09-Mar-2023, 05:33 PM
Last Post: agent_kith
  add ram mount on SO machine as a share? cpcat 7 895 10-Feb-2023, 07:50 AM
Last Post: cpcat
  [SOLVED[split] Problem Starting MPD in Gear Isolation U2 hkphantomgtr 5 912 15-Feb-2022, 10:53 AM
Last Post: hkphantomgtr



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
ZimaBoard 2x NIC, 2x SATA, 2x USB, 1x PC...
Last Post: agent_kith
26-Mar-2024 12:04 PM
» Replies: 13
» Views: 612
LMS Upgrade ?
Last Post: uglymusic
15-Mar-2024 09:14 PM
» Replies: 7
» Views: 149
Squeezebox shutdown
Last Post: TripleX
13-Mar-2024 07:34 AM
» Replies: 4
» Views: 70
MP3 Not Playing
Last Post: Coacharnold
10-Mar-2024 10:25 AM
» Replies: 3
» Views: 52
Fail to install myMPD
Last Post: hkphantomgtr
03-Mar-2024 08:45 PM
» Replies: 9
» Views: 195
Intel HFI Driver Can "Save Tons Of CPU C...
Last Post: hkphantomgtr
28-Feb-2024 09:15 PM
» Replies: 0
» Views: 41
Announcing Snakeoil Measurements 1.3.0
Last Post: agent_kith
26-Feb-2024 10:02 PM
» Replies: 94
» Views: 4137
More Problems with Squeezelite in 1.3
Last Post: Coacharnold
17-Feb-2024 09:47 PM
» Replies: 2
» Views: 69
Snakeoil Music server & Snakeoil its own...
Last Post: Snoopy8
17-Feb-2024 11:20 AM
» Replies: 8
» Views: 365
RoonBridge (64 bit only)
Last Post: scrarfussi
15-Feb-2024 08:26 PM
» Replies: 3
» Views: 4125

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.