Re: How to NOT automatically mount a specific partition of an external device?
- To: Debian User <debian-user@lists.debian.org>
- Subject: Re: How to NOT automatically mount a specific partition of an external device?
- From: l0f4r0@tuta.io
- Date: Wed, 1 Dec 2021 09:26:00 +0100 (CET)
- Message-id: <[🔎] Mpp5Qd2--3-2@tuta.io>
- In-reply-to: <YZ9JEySMnfxjZ8CH@paros.maison.mrs>
- References: <YZ3+c690a77wfye1@paros.maison.mrs> <20211124202919.48e0b53e@asus3> <YZ9JEySMnfxjZ8CH@paros.maison.mrs>
Hi,
25 nov. 2021, 09:28 de dlist@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/577321
* https://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 to: