From nobody Mon Nov 29 22:18:39 2021 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B234618CFF89 for ; Mon, 29 Nov 2021 22:18:48 +0000 (UTC) (envelope-from infoomatic@gmx.at) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J309z4QTcz3Q9c for ; Mon, 29 Nov 2021 22:18:47 +0000 (UTC) (envelope-from infoomatic@gmx.at) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1638224320; bh=j4f7ovm4GZ3rRb4WIZ+AZx58o5tZgdY7j9ybvAVzmjs=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=CEc8FBQMraIvhIiRwM2ejqBGpJyjnGKka5WaNWYWI3EEnQVw8uR7XhWmGSvDezurq osbM0T63XigwWMovBR/pB/vrSn4i4O2D9OQSn3QuGst5fU5G/CowPv5rug3BG0ifZz hwoPhMzOp1tuDP5iSrEJd7Om0D7JkcI3wp6aez4Y= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.0.1.209] ([178.114.237.81]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Ml6mE-1mB6lH3Ol2-00lWtb for ; Mon, 29 Nov 2021 23:18:39 +0100 Message-ID: Date: Mon, 29 Nov 2021 23:18:39 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: mount: Operation not permitted Content-Language: en-US To: questions@freebsd.org References: <17812.1638221591@segfault.tristatelogic.com> From: infoomatic In-Reply-To: <17812.1638221591@segfault.tristatelogic.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:LAdiRZOS7yhqe5VR/06ziFq7mj3UkIwhqaRHmcIaMQLO0m88no8 rgPDdPOvgBYBn751hxmys/tCM9hQulKrx1c3/gBKnTqc8GVHsm4/ZXts8o4mTiwpJ7SQHny dOhVemTcMorQID6xVL8OSufhudPlWiuC/8e4Y+jsaIEwAKzVA25VJW2ds2ppBEJp5oEI1nA r0I6X6PlgtlzSN5ACiJ2A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:DIPN/g74Ax8=:Gu7W7JlHAK0oAy67lUIsUo yeMM1APaMfMDT1Sr6QZe/WQgDAMQs41rwoZ1LX3FidPRkPhFk1yEbnuv8TF72NjiRGdEfB8vK zFM0Jz7X9aq7ZSBwAeCtR5loA3IIci2Ryy5OY9pcXrUIg7yozUzc8uzmnGncf4pctqLO/DKkP ziJ7Sjhrax8LrxVGN8dVSmuwbppr/BBlz09Wbg3tuvMzcxXFEzvBfS9fbTVfRTvwMPi5K0C3a Fgl0wy9cikUfjgN40LQG/1mu/NV01m5G4YjMOEQ7HCB06e3E1t94oepLL1WC/3BMgjXvXHRGs NvD7cJ3lHx0Sav6dE+E4mEV4FziY+ag2FwK/ExqPGt9fZ9w6VNTHL2kU+wKLudrNAOmwObrR/ Ps3UGFZnm8hVwSKL8FhrZvH5Dnwx2UzpVmMf1a8ZiGp/EbW0CoHnprCUtHfuItrSCXy2XXlGL Td1kVmxs9otYT0Pas+zpqLgFFJFBbAsGyTM6p+puZRUJpsgDlFo6NcpbmIa7+eLe4bRxXlv1n UcMPO3mvsk0awMu5fsSLZoREA8zVM2q/4BabWD71j6r1ASe2bRcuLUAlcBo9ogNS3mgyd7TZ4 oEtYtOWoiDYrvAF4jaSuROsTQMLeWn6ioSTKnptPsQmePaWjJzmk/1gPzZRfbev5RK01ADbjG R90qXpHwaqztXDsBLzvWesXiZ6Q+cQdrMqg2hw1HzovFhiITEqf45tKfmla8KO45e0BB9hfI4 +3uSrcoM0vp2SWHYtSg50S61xRH5lGBnOF327gjLRz4zdISY0MDMTFQWx2davQSGViTpsdf5N kczEBGeMByc2NRZcWyrlRi1FtkZoQLguWVy4rZhbFWolhf8p8VnlaN50v06fcHAfvTOiOZ+v9 ycZWruvMGFUKnzrSNElX3MFejxSNvP09HLSruKFU7g9GmVLekANu+orHRmGn5VHvV/dRuRbij gP/agXy1QD3NQzIE4sINRA96F0uhmUaCIZX8npqqpctbcY40LYIbU0NMP1gKzITytuJQYQ9gV FwIPzseY2TqZGtZChv7xLiI29E8YbZlQerROtQHM7+c2zpgvgKtuGoS4LDi0DEF9+6rrzr/Ov KrpqIe+QB9w9ks= X-Rspamd-Queue-Id: 4J309z4QTcz3Q9c X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=CEc8FBQM; dmarc=pass (policy=none) header.from=gmx.at; spf=pass (mx1.freebsd.org: domain of infoomatic@gmx.at designates 212.227.15.18 as permitted sender) smtp.mailfrom=infoomatic@gmx.at X-Spamd-Result: default: False [-4.33 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmx.at]; R_SPF_ALLOW(-0.20)[+ip4:212.227.15.0/25]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; DMARC_POLICY_ALLOW(-0.50)[gmx.at,none]; NEURAL_HAM_SHORT(-0.23)[-0.230]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmx.at]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.18:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[gmx.net:dkim]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.15.18:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N could it be that the script is already running when it tries to run a second time? are you running the script with root privileges? On 29.11.21 22:33, Ronald F. Guilmette wrote: > I have a shell script that uses rsync to make backups of all of the > several partitions on my main drive to a second removable drive. > The script goes one-by-one through the partitions, mounting each > corresponding backup partition in turn, running rsync, and then > umount'ing that backup partition. > > Mostly this script works well, but every so often, seemingly at random, = the > mount command for one or more of the backup partitions fails for no appa= rently > good reason, and I get the message "mount: Operation not permitted". If= I > retry the same thing a little later it invariably works. > > What am I doing wrong and how can I fix it? >