Hi,

25 nov. 2021, 09:28 de dl...@bluewin.ch:

> Le 24-11-2021, à 20:29:19 +1100, Keith Bainbridge a écrit :
>
>> I use a line in /etc/fstab like this for just this purpose:
>>
>> UUID=      /mount/point/you/want       ext4    defaults,noexec,noauto  0
>> 2
>>
>
> Well, the partition still mounts to /media/steve/Samsung_T5 when plugged in.
> I put this in /etc/fstab:
>
> UUID="ACDE12A6DE1268BA" /media/win_ext vfat     defaults,noexec,noauto 0 2
>
> The logs say:
>
> Nov 25 09:20:30 box ntfs-3g[1133900]: Version 2017.3.23AR.3 integrated FUSE 28
> Nov 25 09:20:30 box ntfs-3g[1133900]: Mounted /dev/sda1 (Read-Write, label 
> "Samsung_T5", NTFS 3.1)
> Nov 25 09:20:30 box udisksd[1098]: Mounted /dev/sda1 at 
> /media/steve/Samsung_T5 on behalf of uid 1000
> Nov 25 09:20:30 box ntfs-3g[1133900]: Cmdline options: 
> rw,nodev,nosuid,uid=1000,gid=1000,windows_names,uhelper=udisks2
> Nov 25 09:20:30 box ntfs-3g[1133900]: Mount options: 
> nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,rw,default_permissions,fsname=/dev/sda1,blkdev,blksize=4096
> Nov 25 09:20:30 box ntfs-3g[1133900]: Global ownership and permissions 
> enforced, configuration type 7
>
> It seems like /etc/fstab in not read when plugging in the device.
>

I know you've solved your issue with another way but, just out of curiosity, 
could the following command help your system to read your modified /etc/fstab 
file?

systemctl daemon-reload

Sources:
* 
https://unix.stackexchange.com/questions/477794/how-to-force-os-reload-of-fstab/577321https://www.systutorials.com/how-to-force-systemd-to-refresh-or-reloaded-a-changed-fstab-on-linux/https://www.suse.com/support/kb/doc/?id=000018576


l0f4r0

Reply via email to