On Tue, 2020-06-02 at 20:24 +0800, Ed Greshko wrote:
> On 2020-06-02 20:07, Ed Greshko wrote:
> > On 2020-06-02 19:29, Patrick O'Callaghan wrote:
> > > Doesn't seem to do anything. I've tested with this line in /etc/fstab:
> > > 
> > > UUID=6cb66da2-147a-4f3c-a513-36f6164ab581  /raid   ext4    
> > > rw,x-systemd.automount,x-systemd.device-timeout=1,x-systemd.idle-timeout=60
> > >      0 0
> > > 
> > > followed by 'mount -a' (using a 60-second timeout for testing) but it's
> > > not unmounting. I also ran 'journalctl -f' but it doesn't show
> > > anything.
> > It works fine for non USB connected file systems.
> > 
> > [egreshko@f31k ~]$ grep raid /etc/fstab
> > /dev/md0        /raid   ext4    
> > rw,x-systemd.automount,x-systemd.device-timeout=1,x-systemd.idle-timeout=60 
> >       1 1
> > 
> > [egreshko@f31k ~]$ date ; df --exclude-type=tmpfs --exclude-type=devtmpfs ; 
> > ls /raid ; df --exclude-type=tmpfs --exclude-type=devtmpfs ; sleep 65 ; 
> > date ; df --exclude-type=tmpfs --exclude-type=devtmpfs
> > 
> [...]

> Oh, and journal should these (abbreviated output)
> 
> Jun 02 20:05:08 f31k.greshko.com systemd[1]: raid.automount: Got automount 
> request for /raid, triggered by 1308 (ls)
> Jun 02 20:05:08 f31k.greshko.com systemd[1]: Mounting /raid...
> Jun 02 20:05:08 f31k.greshko.com systemd[1]: Mounted /raid.
> Jun 02 20:06:09 f31k.greshko.com systemd[1]: Unmounting /raid...
> Jun 02 20:06:09 f31k.greshko.com systemd[1014]: raid.mount: Succeeded.
> Jun 02 20:06:09 f31k.greshko.com systemd[1066]: raid.mount: Succeeded.
> Jun 02 20:06:09 f31k.greshko.com systemd[1]: raid.mount: Succeeded.
> Jun 02 20:06:09 f31k.greshko.com systemd[1]: Unmounted /raid.

No, still not working:

$ grep raid /etc/fstab
UUID=6cb66da2-147a-4f3c-a513-36f6164ab581               /raid   ext4    
rw,x-systemd.automount,x-systemd.device-timeout=1,x-systemd.idle-timeout=60     
1 1

$ findfs UUID=6cb66da2-147a-4f3c-a513-36f6164ab581
/dev/md127p1

(the only change is in the last two fields, where you had 1 1 rather
than my 0 0, but it made no difference, not that I thought it would). I
also did the daemon-reload thing just in case.

This is a USB system, so maybe that's at the root of the problem.

poc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to