Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

7 May, 2024: fms is rebuilding. Don't expect much in that section for quite a few days, maybe longer.


computers / alt.os.linux.mint / Re: Mounting a samba share

SubjectAuthor
* Mounting a samba sharepinnerite
+* Re: Mounting a samba sharePaul
|`* Re: Mounting a samba sharepinnerite
| +* Re: Mounting a samba sharepinnerite
| |`* Re: Mounting a samba sharePaul
| | `- [SOLVED] Re: Mounting a samba sharepinnerite
| `- Re: Mounting a samba shareDan Purgert
`- Re: Mounting a samba shareDan Purgert

1
Mounting a samba share

<20230727215454.dc0298771761da5e85a77ac0@gmail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6576&group=alt.os.linux.mint#6576

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinnerite@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Mounting a samba share
Date: Thu, 27 Jul 2023 21:54:54 +0100
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <20230727215454.dc0298771761da5e85a77ac0@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="0dcb7686ffdc9fad44adbf1e989352a4";
logging-data="2084132"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9Q2jo2ZMiBcqXq0zKxOGSOoaTXcH/nnQ="
Cancel-Lock: sha1:YbUf/Wo3OQKHGzhDXw7l2tG9Rno=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Thu, 27 Jul 2023 20:54 UTC

For ten years regularly backed up the data partition of my work machine to a backup machine. Then the backup machine had to be mothballed prior to a downsizing move.

Two years later I want to deploy the same script.

First it mounts the remote shares and then runs a series of rsync commands. Except that it now no longer works. It fails at the mpint stage.

After reading man pages and searching the www I cannot fathom why.

This is the first mount line.:

sudo mount -t cifs -o rw,noperm,credentials=/home/alan/.smbcredentials,vers=1.0 //192.168.1.66/alan/ /spare/churchill/alan/

When I try to run it, it returns:

mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

dmesg returns:

[34663.775002] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
[34663.775010] CIFS: Attempting to mount \\192.168.1.66\alan
[34674.119607] CIFS: VFS: Error connecting to socket. Aborting operation.
[34674.119626] CIFS: VFS: cifs_mount failed w/return code = -115

TIA

--
Linux Mint 21.1 kernel version 5.15.0-76-generic Cinnamon 5.6.8
AMD Phenom II x4 955 CPU 16Gb Dram 2TB Barracuda

Re: Mounting a samba share

<ua0613$27nee$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6584&group=alt.os.linux.mint#6584

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Mounting a samba share
Date: Fri, 28 Jul 2023 06:41:37 -0400
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <ua0613$27nee$1@dont-email.me>
References: <20230727215454.dc0298771761da5e85a77ac0@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 28 Jul 2023 10:41:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c78d672343c8497bc499b7a983792e8a";
logging-data="2350542"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1RXlnMMTMv1GybTaSqTbGNxUiU9EkVoU="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:BTLN4qYMpgFAH8b5Qj2YnnN+Qik=
In-Reply-To: <20230727215454.dc0298771761da5e85a77ac0@gmail.com>
Content-Language: en-US
 by: Paul - Fri, 28 Jul 2023 10:41 UTC

On 7/27/2023 4:54 PM, pinnerite wrote:
> For ten years regularly backed up the data partition of my work machine to a backup machine. Then the backup machine had to be mothballed prior to a downsizing move.
>
> Two years later I want to deploy the same script.
>
> First it mounts the remote shares and then runs a series of rsync commands. Except that it now no longer works. It fails at the mpint stage.
>
> After reading man pages and searching the www I cannot fathom why.
>
> This is the first mount line.:
>
> sudo mount -t cifs -o rw,noperm,credentials=/home/alan/.smbcredentials,vers=1.0 //192.168.1.66/alan/ /spare/churchill/alan/
>
> When I try to run it, it returns:
>
> mount error(115): Operation now in progress
> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
>
> dmesg returns:
>
> [34663.775002] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
> [34663.775010] CIFS: Attempting to mount \\192.168.1.66\alan
> [34674.119607] CIFS: VFS: Error connecting to socket. Aborting operation.
> [34674.119626] CIFS: VFS: cifs_mount failed w/return code = -115
>
> TIA

sudo mount -t cifs -o rw,noperm,credentials=/credentials,vers=3 //192.168.2.102/shared /smurf

You're connecting to Windows 10, so vers=3 might be a start.

Paul

Re: Mounting a samba share

<slrnuc775r.f45.dan@djph.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6585&group=alt.os.linux.mint#6585

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dan@djph.net (Dan Purgert)
Newsgroups: alt.os.linux.mint
Subject: Re: Mounting a samba share
Date: Fri, 28 Jul 2023 10:46:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <slrnuc775r.f45.dan@djph.net>
References: <20230727215454.dc0298771761da5e85a77ac0@gmail.com>
Injection-Date: Fri, 28 Jul 2023 10:46:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cec5aefcdeab8440ba344eee3434903a";
logging-data="2350051"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+agVLkxT+SeJ0ooVruAuU9q4amQk2DyGY="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:pcL2iryAHaDbf3tKO+BfZvWAU1o=
 by: Dan Purgert - Fri, 28 Jul 2023 10:46 UTC

On 2023-07-27, pinnerite wrote:
> [...]
> First it mounts the remote shares and then runs a series of rsync
> commands. Except that it now no longer works. It fails at the mpint
> stage.
>
> This is the first mount line.:
>
> sudo mount -t cifs -o
> rw,noperm,credentials=/home/alan/.smbcredentials,vers=1.0
> //192.168.1.66/alan/ /spare/churchill/alan/
> [...]
> dmesg returns:
>
> [34663.775002] CIFS: VFS: Use of the less secure dialect vers=1.0 is
> not recommended unless required for access to very old servers
> [34663.775010] CIFS: Attempting to mount \\192.168.1.66\alan
> [34674.119607] CIFS: VFS: Error connecting to socket. Aborting operation.
> [34674.119626] CIFS: VFS: cifs_mount failed w/return code = -115
>

Looks like an incompatibility in SMB/CIFS versions.

That being said -- why bother? Is the backup target (*66) not capable
of accepting SSH connections?

--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

Re: Mounting a samba share

<20230728202057.b379eceb1e9e6f937bf3f5c2@gmail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6592&group=alt.os.linux.mint#6592

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinnerite@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Re: Mounting a samba share
Date: Fri, 28 Jul 2023 20:20:57 +0100
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <20230728202057.b379eceb1e9e6f937bf3f5c2@gmail.com>
References: <20230727215454.dc0298771761da5e85a77ac0@gmail.com>
<ua0613$27nee$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="c10018202f76ef2e5ba1591214cc28d2";
logging-data="2440503"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lObe1zS/LmvmU6bVZb9N9uF+Vi5rt6aI="
Cancel-Lock: sha1:IiZAegTZ78rxA9duK2EW6oN1tMA=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Fri, 28 Jul 2023 19:20 UTC

On Fri, 28 Jul 2023 06:41:37 -0400
Paul <nospam@needed.invalid> wrote:

> On 7/27/2023 4:54 PM, pinnerite wrote:
> > For ten years regularly backed up the data partition of my work machine to a backup machine. Then the backup machine had to be mothballed prior to a downsizing move.
> >
> > Two years later I want to deploy the same script.
> >
> > First it mounts the remote shares and then runs a series of rsync commands. Except that it now no longer works. It fails at the mpint stage.
> >
> > After reading man pages and searching the www I cannot fathom why.
> >
> > This is the first mount line.:
> >
> > sudo mount -t cifs -o rw,noperm,credentials=/home/alan/.smbcredentials,vers=1.0 //192.168.1.66/alan/ /spare/churchill/alan/
> >
> > When I try to run it, it returns:
> >
> > mount error(115): Operation now in progress
> > Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
> >
> > dmesg returns:
> >
> > [34663.775002] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
> > [34663.775010] CIFS: Attempting to mount \\192.168.1.66\alan
> > [34674.119607] CIFS: VFS: Error connecting to socket. Aborting operation.
> > [34674.119626] CIFS: VFS: cifs_mount failed w/return code = -115
> >
> > TIA
>
> sudo mount -t cifs -o rw,noperm,credentials=/credentials,vers=3 //192.168.2.102/shared /smurf
>
> You're connecting to Windows 10, so vers=3 might be a start.
>
> Paul
>
>

No, I am not connecting to Windows on the target machine, just use the settings on my work machine's smb.conf that provides access to both Win-XP and Win-10.
This is what smb.conf on both machines includes:

client min protocol = NT1
client max protocol = SMB3

server min protocol = NT1
server max protocol = smb3

It works fine on the work machine.

And Dan, I can ping and ssh to the backuo machine. I just want use a script that until two years ago, ran virtually unchanged for nigh on 15 - 20 years.
I am a bit long in the tooth so never change for change sake.

ATB Alan

--
Linux Mint 21.1 kernel version 5.15.0-76-generic Cinnamon 5.6.8
AMD Phenom II x4 955 CPU 16Gb Dram 2TB Barracuda

Re: Mounting a samba share

<20230803205522.e0afb28631ea369ad6990786@gmail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6610&group=alt.os.linux.mint#6610

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinnerite@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Re: Mounting a samba share
Date: Thu, 3 Aug 2023 20:55:22 +0100
Organization: A noiseless patient Spider
Lines: 74
Message-ID: <20230803205522.e0afb28631ea369ad6990786@gmail.com>
References: <20230727215454.dc0298771761da5e85a77ac0@gmail.com>
<ua0613$27nee$1@dont-email.me>
<20230728202057.b379eceb1e9e6f937bf3f5c2@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="2df7a63e7d3e85b2cb25dda6da9b94b9";
logging-data="953830"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+m8iFJrBhKK3+qX4RqUsjuVNx05JQ+0Zs="
Cancel-Lock: sha1:YdsVLmsr3qtFTawRTDF1gKZN958=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Thu, 3 Aug 2023 19:55 UTC

On Fri, 28 Jul 2023 20:20:57 +0100
pinnerite <pinnerite@gmail.com> wrote:

> On Fri, 28 Jul 2023 06:41:37 -0400
> Paul <nospam@needed.invalid> wrote:
>
> > On 7/27/2023 4:54 PM, pinnerite wrote:
> > > For ten years regularly backed up the data partition of my work machine to a backup machine. Then the backup machine had to be mothballed prior to a downsizing move.
> > >
> > > Two years later I want to deploy the same script.
> > >
> > > First it mounts the remote shares and then runs a series of rsync commands. Except that it now no longer works. It fails at the mpint stage.
> > >
> > > After reading man pages and searching the www I cannot fathom why.
> > >
> > > This is the first mount line.:
> > >
> > > sudo mount -t cifs -o rw,noperm,credentials=/home/alan/.smbcredentials,vers=1.0 //192.168.1.66/alan/ /spare/churchill/alan/
> > >
> > > When I try to run it, it returns:
> > >
> > > mount error(115): Operation now in progress
> > > Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
> > >
> > > dmesg returns:
> > >
> > > [34663.775002] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
> > > [34663.775010] CIFS: Attempting to mount \\192.168.1.66\alan
> > > [34674.119607] CIFS: VFS: Error connecting to socket. Aborting operation.
> > > [34674.119626] CIFS: VFS: cifs_mount failed w/return code = -115
> > >
> > > TIA
> >
> > sudo mount -t cifs -o rw,noperm,credentials=/credentials,vers=3 //192.168.2.102/shared /smurf
> >
> > You're connecting to Windows 10, so vers=3 might be a start.
> >
> > Paul
> >
> >
>
> No, I am not connecting to Windows on the target machine, just use the settings on my work machine's smb.conf that provides access to both Win-XP and Win-10.
> This is what smb.conf on both machines includes:
>
> client min protocol = NT1
> client max protocol = SMB3
>
> server min protocol = NT1
> server max protocol = smb3
>
> It works fine on the work machine.
>
> And Dan, I can ping and ssh to the backuo machine. I just want use a script that until two years ago, ran virtually unchanged for nigh on 15 - 20 years.
> I am a bit long in the tooth so never change for change sake.
>
> ATB Alan
>

I can now mount samba shares but cannot see why my backup command is sending the data to the mount point rather than to the share mounted there.

The mount statement is:

sudo mount -vvv -t cifs //192.168.1.66/alan/ /spare/churchill/alan/ -o rw,noperm,username=alan,password=<my_password>,vers=1.0,uid=alan

The test backup command is:

rsync -rlptD /home/alan/Scripts /spare/churchill/alan/

I can't get my head round it.

--
Linux Mint 21.1 kernel version 5.15.0-78-generic Cinnamon 5.6.8
AMD Phenom II x4 955 CPU 16Gb Dram 2TB Barracuda

Re: Mounting a samba share

<uah859$u9bd$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6611&group=alt.os.linux.mint#6611

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Mounting a samba share
Date: Thu, 3 Aug 2023 18:02:19 -0400
Organization: A noiseless patient Spider
Lines: 80
Message-ID: <uah859$u9bd$1@dont-email.me>
References: <20230727215454.dc0298771761da5e85a77ac0@gmail.com>
<ua0613$27nee$1@dont-email.me>
<20230728202057.b379eceb1e9e6f937bf3f5c2@gmail.com>
<20230803205522.e0afb28631ea369ad6990786@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 3 Aug 2023 22:02:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b7594f98ac1b3a0ff2929ae6dcab5241";
logging-data="992621"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19p5Phe4FS8VH4A40tizDwtitmXNvoZ6k0="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:KMih1e27g5JhGrDrluvOFxlPqhI=
In-Reply-To: <20230803205522.e0afb28631ea369ad6990786@gmail.com>
Content-Language: en-US
 by: Paul - Thu, 3 Aug 2023 22:02 UTC

On 8/3/2023 3:55 PM, pinnerite wrote:
> On Fri, 28 Jul 2023 20:20:57 +0100
> pinnerite <pinnerite@gmail.com> wrote:
>
>> On Fri, 28 Jul 2023 06:41:37 -0400
>> Paul <nospam@needed.invalid> wrote:
>>
>>> On 7/27/2023 4:54 PM, pinnerite wrote:
>>>> For ten years regularly backed up the data partition of my work machine to a backup machine. Then the backup machine had to be mothballed prior to a downsizing move.
>>>>
>>>> Two years later I want to deploy the same script.
>>>>
>>>> First it mounts the remote shares and then runs a series of rsync commands. Except that it now no longer works. It fails at the mpint stage.
>>>>
>>>> After reading man pages and searching the www I cannot fathom why.
>>>>
>>>> This is the first mount line.:
>>>>
>>>> sudo mount -t cifs -o rw,noperm,credentials=/home/alan/.smbcredentials,vers=1.0 //192.168.1.66/alan/ /spare/churchill/alan/
>>>>
>>>> When I try to run it, it returns:
>>>>
>>>> mount error(115): Operation now in progress
>>>> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
>>>>
>>>> dmesg returns:
>>>>
>>>> [34663.775002] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
>>>> [34663.775010] CIFS: Attempting to mount \\192.168.1.66\alan
>>>> [34674.119607] CIFS: VFS: Error connecting to socket. Aborting operation.
>>>> [34674.119626] CIFS: VFS: cifs_mount failed w/return code = -115
>>>>
>>>> TIA
>>>
>>> sudo mount -t cifs -o rw,noperm,credentials=/credentials,vers=3 //192.168.2.102/shared /smurf
>>>
>>> You're connecting to Windows 10, so vers=3 might be a start.
>>>
>>> Paul
>>>
>>>
>>
>> No, I am not connecting to Windows on the target machine, just use the settings on my work machine's smb.conf that provides access to both Win-XP and Win-10.
>> This is what smb.conf on both machines includes:
>>
>> client min protocol = NT1
>> client max protocol = SMB3
>>
>> server min protocol = NT1
>> server max protocol = smb3
>>
>> It works fine on the work machine.
>>
>> And Dan, I can ping and ssh to the backuo machine. I just want use a script that until two years ago, ran virtually unchanged for nigh on 15 - 20 years.
>> I am a bit long in the tooth so never change for change sake.
>>
>> ATB Alan
>>
>
> I can now mount samba shares but cannot see why my backup command is sending the data to the mount point rather than to the share mounted there.
>
> The mount statement is:
>
> sudo mount -vvv -t cifs //192.168.1.66/alan/ /spare/churchill/alan/ -o rw,noperm,username=alan,password=<my_password>,vers=1.0,uid=alan
>
> The test backup command is:
>
> rsync -rlptD /home/alan/Scripts /spare/churchill/alan/
>
> I can't get my head round it.

On my mount command, I didn't use trailing slashes.

I suspect some amount of "slash testing" might be needed.

You know how picky syntax can be for stuff like this.

Paul

[SOLVED] Re: Mounting a samba share

<20230804083706.155d3deae54276723e743581@gmail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6612&group=alt.os.linux.mint#6612

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinnerite@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: [SOLVED] Re: Mounting a samba share
Date: Fri, 4 Aug 2023 08:37:06 +0100
Organization: A noiseless patient Spider
Lines: 99
Message-ID: <20230804083706.155d3deae54276723e743581@gmail.com>
References: <20230727215454.dc0298771761da5e85a77ac0@gmail.com>
<ua0613$27nee$1@dont-email.me>
<20230728202057.b379eceb1e9e6f937bf3f5c2@gmail.com>
<20230803205522.e0afb28631ea369ad6990786@gmail.com>
<uah859$u9bd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="b950f0cf193a3b9f52187e138da1f0f9";
logging-data="1262858"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QBSYM/OshBNUvGRZ5bg9wb0PfkHCbTmg="
Cancel-Lock: sha1:SOGz282Ne8GjcjanY9mJss87K/M=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Fri, 4 Aug 2023 07:37 UTC

On Thu, 3 Aug 2023 18:02:19 -0400
Paul <nospam@needed.invalid> wrote:

> On 8/3/2023 3:55 PM, pinnerite wrote:
> > On Fri, 28 Jul 2023 20:20:57 +0100
> > pinnerite <pinnerite@gmail.com> wrote:
> >
> >> On Fri, 28 Jul 2023 06:41:37 -0400
> >> Paul <nospam@needed.invalid> wrote:
> >>
> >>> On 7/27/2023 4:54 PM, pinnerite wrote:
> >>>> For ten years regularly backed up the data partition of my work machine to a backup machine. Then the backup machine had to be mothballed prior to a downsizing move.
> >>>>
> >>>> Two years later I want to deploy the same script.
> >>>>
> >>>> First it mounts the remote shares and then runs a series of rsync commands. Except that it now no longer works. It fails at the mpint stage.
> >>>>
> >>>> After reading man pages and searching the www I cannot fathom why.
> >>>>
> >>>> This is the first mount line.:
> >>>>
> >>>> sudo mount -t cifs -o rw,noperm,credentials=/home/alan/.smbcredentials,vers=1.0 //192.168.1.66/alan/ /spare/churchill/alan/
> >>>>
> >>>> When I try to run it, it returns:
> >>>>
> >>>> mount error(115): Operation now in progress
> >>>> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
> >>>>
> >>>> dmesg returns:
> >>>>
> >>>> [34663.775002] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
> >>>> [34663.775010] CIFS: Attempting to mount \\192.168.1.66\alan
> >>>> [34674.119607] CIFS: VFS: Error connecting to socket. Aborting operation.
> >>>> [34674.119626] CIFS: VFS: cifs_mount failed w/return code = -115
> >>>>
> >>>> TIA
> >>>
> >>> sudo mount -t cifs -o rw,noperm,credentials=/credentials,vers=3 //192.168.2.102/shared /smurf
> >>>
> >>> You're connecting to Windows 10, so vers=3 might be a start.
> >>>
> >>> Paul
> >>>
> >>>
> >>
> >> No, I am not connecting to Windows on the target machine, just use the settings on my work machine's smb.conf that provides access to both Win-XP and Win-10.
> >> This is what smb.conf on both machines includes:
> >>
> >> client min protocol = NT1
> >> client max protocol = SMB3
> >>
> >> server min protocol = NT1
> >> server max protocol = smb3
> >>
> >> It works fine on the work machine.
> >>
> >> And Dan, I can ping and ssh to the backuo machine. I just want use a script that until two years ago, ran virtually unchanged for nigh on 15 - 20 years.
> >> I am a bit long in the tooth so never change for change sake.
> >>
> >> ATB Alan
> >>
> >
> > I can now mount samba shares but cannot see why my backup command is sending the data to the mount point rather than to the share mounted there.
> >
> > The mount statement is:
> >
> > sudo mount -vvv -t cifs //192.168.1.66/alan/ /spare/churchill/alan/ -o rw,noperm,username=alan,password=<my_password>,vers=1.0,uid=alan
> >
> > The test backup command is:
> >
> > rsync -rlptD /home/alan/Scripts /spare/churchill/alan/
> >
> > I can't get my head round it.
>
> On my mount command, I didn't use trailing slashes.
>
> I suspect some amount of "slash testing" might be needed.
>
> You know how picky syntax can be for stuff like this.
>
> Paul
>
There is an old joke about a drunk looking for a sixpence (remember those) near a lamp post. A kindly policeman joins him. After a fruitless search, the copper asks "Are you sure you lost it over here?"

"No" says the drunk. "I lost it in that dark alley but its lighter over here".

That sums up what I have been doing. Because I could see the contents of the copy at the mount point, I assumed that it wasn't getting to the target but of course it had. Last night I discovered that I could see it apparently in both places and the penny dropped.

Sorry to be such a pain and yes Paul, you are right about the trailing slashes. I kept changing things round but I will test back later today.

Thank you.

--
Linux Mint 21.1 kernel version 5.15.0-76-generic Cinnamon 5.6.8
AMD Phenom II x4 955 CPU 16Gb Dram 2TB Barracuda

Re: Mounting a samba share

<slrnud1vmu.f45.dan@djph.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6624&group=alt.os.linux.mint#6624

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dan@djph.net (Dan Purgert)
Newsgroups: alt.os.linux.mint
Subject: Re: Mounting a samba share
Date: Mon, 7 Aug 2023 14:24:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <slrnud1vmu.f45.dan@djph.net>
References: <20230727215454.dc0298771761da5e85a77ac0@gmail.com>
<ua0613$27nee$1@dont-email.me>
<20230728202057.b379eceb1e9e6f937bf3f5c2@gmail.com>
Injection-Date: Mon, 7 Aug 2023 14:24:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="465d10a9ee2256edb098d66133e039ce";
logging-data="3047173"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ijWJ1pMZtw86zlrwLf+MTFPo6zzMb/uI="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:tM3Tqo+edLJuWMCgZRzlhamAaBw=
 by: Dan Purgert - Mon, 7 Aug 2023 14:24 UTC

On 2023-07-28, pinnerite wrote:
> [...]
> And Dan, I can ping and ssh to the backuo machine. I just want use a
> script that until two years ago, ran virtually unchanged for nigh on
> 15 - 20 years.
> I am a bit long in the tooth so never change for change sake.

Well, it's "change for the sake of not needing CIFS mounts" moreso than
"...for the sake of change".

Personally, I've found that just letting rsync use ssh is overall easier
and less error-prone as computers change over time -- have had this
particular one for near on a decade now, with only minor changes,
generally due to learning more about rsync options.

Long story short, instead of the script needing to handle:

(1) mount -t cifs [...] /spare/churchill/user
(2) rsync [opts] /source /spare/churchill/user

it just has to run the one command:

(1) rsync [opts] /source user@host:/path/to/dest

Well, with the following caveats:

- "user" on the remote host has write permissions to "/path/to/dest"
- you're okay with either
(A) inputting the password for "user" when the script runs OR
(B) setup an ssh key (with or without passphrase, at your
discretion)

That being said, since I think I saw a post with '[solved]' in the
title, I guess you figured out whatever oddness SMB/CIFS was
introducing, and you're good to go now.

--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor