Re: Can't umount; fuser and fstat don't say why

2025-04-09 Thread TSS
On Wed, Apr 09, 2025 at 07:03:01AM +0200, Jan Stary wrote: > > For now I've set up my backup script to sync, sleep for a bit, then use > > umount -f. > > Meaning, sync(8) before the umount? > Everything else being the same? > And that works? In this case, it's the -f on umount that does the trick

Re: Can't umount; fuser and fstat don't say why

2025-04-08 Thread Jan Stary
> For now I've set up my backup script to sync, sleep for a bit, then use > umount -f. Meaning, sync(8) before the umount? Everything else being the same? And that works? > It seems brash to ask, but is there a chance that there could > be a bug elsewhere in the system? No idea, but I have had

Re: Can't umount; fuser and fstat don't say why

2025-04-08 Thread TSS
On Tue, Apr 08, 2025 at 08:43:00AM +0200, Jan Stary wrote: > Right, "fstat /home" just treats /home as a named file arg > (which is not "open" by anything). Thanks all for the thoughts on this problem. I can discuss some of the troubleshooting issues mentioned, unfortunately with no relief for the

Re: Can't umount; fuser and fstat don't say why

2025-04-08 Thread Stuart Henderson
On 2025-04-07, Peter N. M. Hansteen wrote: > On Mon, Apr 07, 2025 at 10:09:29PM +0100, TSS wrote: >> Everything is just fine until step 4, when the backup drive refuses to >> unmount. If you try to do it yourself, you see: >> >> umount: /my_backup_mount_point: Device busy > > This invariably mean

Re: Can't umount; fuser and fstat don't say why

2025-04-08 Thread Dan
Sorry, be aware that the displaied proc works on /etc before to try anything !! Dan -- Blog: http://bsd.gaoxio.com - Repo: https://code.5mode.com Please reply to the mailing-list, leveraging technical stuff. Apr 8, 2025 11:27:43 Dan : > 1) an error handled ~ error prone unmounting proc: >

Re: Can't umount; fuser and fstat don't say why

2025-04-08 Thread Dan
As I also work heavy on usb disks as well, as per my own statistics I also have to denunce to often encouter an overwhelming quantity of "disk busy errors" , but it seems to happen more often after dealt on disks by gui software like Thunar or Caja. For what concern your script maybe you can

Re: Can't umount; fuser and fstat don't say why

2025-04-08 Thread Jan Stary
On Apr 08 06:56:53, sema...@kapouay.eu.org wrote: > TSS writes: > > > Greetings, > > > > I've been using this gimmick for backing up some OpenBSD 7.6 systems: > > https://github.com/thexhr/openbsd-timemachine > > For the purposes of this discussion, it: > > > > 1. uses hotplugd to run a script wh

Re: Can't umount; fuser and fstat don't say why

2025-04-07 Thread Jan Stary
On Apr 08 08:34:16, o...@drijf.net wrote: > On Tue, Apr 08, 2025 at 08:14:34AM +0200, Jan Stary wrote: > > > On Apr 08 06:56:53, sema...@kapouay.eu.org wrote: > > > TSS writes: > > > > > > > Greetings, > > > > > > > > I've been using this gimmick for backing up some OpenBSD 7.6 systems: > > > >

Re: Can't umount; fuser and fstat don't say why

2025-04-07 Thread Otto Moerbeek
On Tue, Apr 08, 2025 at 08:14:34AM +0200, Jan Stary wrote: > On Apr 08 06:56:53, sema...@kapouay.eu.org wrote: > > TSS writes: > > > > > Greetings, > > > > > > I've been using this gimmick for backing up some OpenBSD 7.6 systems: > > > https://github.com/thexhr/openbsd-timemachine > > > For the

Re: Can't umount; fuser and fstat don't say why

2025-04-07 Thread Sebastien Marie
TSS writes: > Greetings, > > I've been using this gimmick for backing up some OpenBSD 7.6 systems: > https://github.com/thexhr/openbsd-timemachine > For the purposes of this discussion, it: > > 1. uses hotplugd to run a script when you plug in a USB backup drive > 2. this script mounts the backup

Re: Can't umount; fuser and fstat don't say why

2025-04-07 Thread Peter N. M. Hansteen
On Mon, Apr 07, 2025 at 10:09:29PM +0100, TSS wrote: > Everything is just fine until step 4, when the backup drive refuses to > unmount. If you try to do it yourself, you see: > > umount: /my_backup_mount_point: Device busy This invariably means some process has one or more files open in the file

Re: Can't umount; fuser and fstat don't say why

2025-04-07 Thread Steve Williams
On 4/7/2025 2:09 PM, TSS wrote: Greetings, I've been using this gimmick for backing up some OpenBSD 7.6 systems: https://github.com/thexhr/openbsd-timemachine For the purposes of this discussion, it: 1. uses hotplugd to run a script when you plug in a USB backup drive 2. this script mounts the