Re: mount: Operation not permitted
- In reply to: Ronald F. Guilmette: "mount: Operation not permitted"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Nov 2021 22:18:39 UTC
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 apparently > 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? >