Googling doesn’t seem to yield anything useful. The mount command itself yields “Invalid argument”, but that message doesn’t show what’s amiss:
$ sudo mount -t cifs //{server}/{share} {mount} -o rw,username={name},password={password},uid={me},gid={group},domain={domain}
mount error(22): Invalid argument
$ dmesg | tail -n2
[13928.636167] CIFS: Attempting to mount \\{server}\{share}
[13928.713489] CIFS: VFS: cifs_mount failed w/return code = -22
I’ve not seen any information on what to look for on the Mac server for connection failures, but it is returning “-22” as a result code.
P.S.
sudo smbclient -L {server} -U {name}Password for {domain}\{user}:
Sharename Type Comment
--------- ---- -------
IPC$ IPC
Macintosh HD Disk
RAID5-21TB Disk
{user} Disk
Only the “RAID5-21TB” is supposed to be shared, according to the Mac “system preferences”.
I keep trying over and over to make the last two code segments be one segment, but the web page insists on inserting the “CODE” and “/CODE” markers after the word “smbclient”. There’s a bug in this Javascript.
I tried vers= all of 1.0, 2.0, 2.1 and 3.0 – to no avail. Likewise ntlm and ntlmv2. I probably need to see what my Mac is thinking about this, but debugging Mac problems isn’t as readily available on the net.
**bach:/home/Pictures/Exports #** mount -t cifs -o $opts //172.16.16.115/Volumes/RAID5-21TB /mnt/imac
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
**bach:/home/Pictures/Exports #** mount -t cifs -o ${opts}v2 //172.16.16.115/Volumes/RAID5-21TB /mnt/imac
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
**bach:/home/Pictures/Exports #** for v in 1.0 2.0 2.1 3.0 ; do mount -t cifs -o ${opts}v2,vers=$v //172.16.16.115/Volumes/RAID5-21TB /mnt/imac ; slee
p 8 ; done
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
PPS: I can make it work by plugging the RAID5 into my Linux box and exporting it, but I don’t always want to run my power hungry Linux tower while editing photos on the Mac. I am wanting to see the edited photos when I bring up Linux. I may be forced to give up.
You’re not gonna like that I tested on my Macbook Pro and sharing a single directory everything worked on 15.4 using simple mount -t cifs -o username=my.macuser //xxx.xxx.xxx.xxx/Share /mnt
You should completely drop the opts and just try without any additional parameters and go from there.
I did. I added options as I went along seeing if they’d fix anything. I think OS/X doesn’t like exfat very well, but I can’t tell how to tell. Thank you for trying to help, tho. I do appreciate it.
P.S. I could try changing the file system, but that would entail copying 3TB of data off and back onto the RAID array. Nope.
PPS: different behavior this time. Still doesn’t mount, but instead of saying “invalid argument” it instead says nothing and never comes back. I suppose I’ll get an eventual timeout, but it’s been gone for over 10 minutes now.