Date: Mon, 29 Nov 2021 23:18:39 +0100 From: infoomatic <infoomatic@gmx.at> To: questions@freebsd.org Subject: Re: mount: Operation not permitted Message-ID: <bb7b65d1-0dc0-e570-f565-36c8f7483f1d@gmx.at> In-Reply-To: <17812.1638221591@segfault.tristatelogic.com> References: <17812.1638221591@segfault.tristatelogic.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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? >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb7b65d1-0dc0-e570-f565-36c8f7483f1d>