You are not logged in.
Pages: 1
Seems that the entries for partitions I've set to automount are ignored or something else remounts them with different options. I've checked my fstab and I have no errors. Also I'm using those mounts for many years and recently I have problems with several partitions and I found that this is the problem. What changed and this started to happens?
I found about this recently because I had problems with scripts which didn't run from several partitions and I found that those partitions have been mounted with different options included noexec while I have specified exec option for those on fstab.
Last edited by zaxdan69 (Yesterday 10:44:39)
Offline
Please post your fstab and the output of 'findmnt'.
Mod note: moving to NC.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
fstab:
UUID=5fba4100-51f1-4c26-b1a1-617910d38cc1 / ext4 rw,nodev,relatime,discard,errors=remount-ro 0 1
#efi partition
UUID=1D0A-700B /boot/efi vfat defaults 0 2
# /dev/sda1 LABEL=linuxhome1
UUID=36a6d045-470c-44d3-aac6-b02f940d0bf4 /home ext4 rw,relatime,discard 0 2
# swap
#UUID=b4b41d5a-5daa-41d5-88a7-b37ac6eedfdb none swap defaults 0 0
/dev/zram0 none swap defaults,discard,pri=100 0 0
# /dev/sdb5
#UUID=1eab239f-a9ca-41f9-b334-fdfd375f5ee5
UUID=41e60c1d-a638-4caa-b91d-6a80ae2ec382 /media/linuxhome ext4 rw,relatime 0 2
#disk Datadisk
UUID=a6fdbfba-5fe5-4961-9122-1f3cb77a77c6 /media/datadisk btrfs rw,exec,noatime,ssd,autodefrag,space_cache=v2,compress=zstd,user,nofail 0 0
#datadisk2
UUID=71fd2763-9d79-4713-aa98-828013f8d870 /media/datadisk2 btrfs rw,user,exec,nofail 0 0
#datadisk3
UUID=07C5895138DD0C86 /media/datadisk3 ntfs noatime,uid=1000,gid=1000,dmask=000,fmask=0000,umask=000,rw,user,nofail,exec 0 0
#gamedisk
UUID=01D86EF1C93B4CB0 /media/gamedisk ntfs noatime,uid=1000,gid=1000,dmask=000,fmask=0000,umask=000,rw,user,nofail,exec 0 0
#gamedisk1
UUID=9962ff66-f2ce-48a3-b583-507c637793fb /media/gamedisk1 btrfs rw,user,exec,nofail 0 0
#gamedisk2
UUID=2C3363C87EF64C19 /media/gamedisk2 ntfs rw,noatime,uid=1000,gid=1000,dmask=000,fmask=0000,umask=000,user,uid=1000,gid=1000,exec,nofail 0 0
#gamedisk3
UUID=3bc67ee2-7709-4952-9d6d-af38d7566fa8 /media/gamedisk3 btrfs rw,noatime,exec,autodefrag,space_cache=v2,compress=zstd,user,nofail 00
#gamedisk4
LABEL=gamedisk4 /media/gamedisk4 btrfs rw,noatime,ssd,autodefrag,space_cache=v2,compress=zstd,exec,user,nofail 0 0
#gamedisk5
LABEL=gamedisk5 /media/gamedisk5 btrfs rw,noatime,ssd,autodefrag,space_cache=v2,compress=zstd,user,exec,nofail 0 0fndmount:
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sda3 ext4 rw,nodev,relatime,discard,errors=remount-ro
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=43,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=5637
│ └─/proc/sys/fs/binfmt_misc
│ binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime
├─/sys sys sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/firmware/efi/efivars
│ │ efivarfs efivarfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup cgroup2 cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot,memory_hugetlb_accounting
│ ├─/sys/fs/pstore none pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/bpf bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700
│ ├─/sys/kernel/config configfs configfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/fuse/connections fusectl fusectl rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/debug debugfs debugfs rw,nosuid,nodev,noexec,relatime
│ └─/sys/kernel/tracing tracefs tracefs rw,nosuid,nodev,noexec,relatime
├─/dev dev devtmpfs rw,nosuid,relatime,size=16323216k,nr_inodes=4080804,mode=755,inode64,huge=within_size
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev,inode64,huge=within_size,usrquota
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=600,ptmxmode=000
│ ├─/dev/hugepages hugetlbfs hugetlbfs rw,nosuid,nodev,relatime,pagesize=2M
│ └─/dev/mqueue mqueue mqueue rw,nosuid,nodev,noexec,relatime
├─/run run tmpfs rw,nosuid,nodev,relatime,mode=755,inode64,huge=within_size
│ ├─/run/credentials/systemd-journald.service
│ │ none tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,huge=
│ ├─/run/credentials/systemd-resolved.service
│ │ none tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,huge=
│ ├─/run/credentials/getty@tty1.service
│ │ none tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,huge=
│ └─/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=3278168k,nr_inodes=819542,mode=700,uid=1000,gid=1000,inode64,h
│ ├─/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd- rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
│ └─/run/user/1000/doc portal fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
├─/media/gamedisk4 /dev/sda4 btrfs rw,nosuid,nodev,noexec,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,autodefrag,s
├─/media/datadisk2 /dev/sde1 btrfs rw,nosuid,nodev,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/
├─/media/gamedisk5 /dev/nvme1n1p1 btrfs rw,nosuid,nodev,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,autodefrag,subvolid
├─/media/gamedisk3 /dev/nvme0n1p3 btrfs rw,nosuid,nodev,noexec,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,autodefrag,s
├─/media/datadisk3 /dev/sdd1 fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
├─/media/gamedisk /dev/sdc1 fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
├─/boot/efi /dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=r
├─/home /dev/nvme0n1p1 ext4 rw,relatime,discard
├─/tmp tmpfs tmpfs rw,nosuid,nodev,nr_inodes=1048576,inode64,huge=within_size,usrquota
├─/media/datadisk /dev/sdf1 btrfs rw,nosuid,nodev,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,autodefrag,subvolid
├─/media/gamedisk2 /dev/sdb3 fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
├─/media/linuxhome /dev/sdf2 ext4 rw,relatime
└─/media/gamedisk1 /dev/sdc2 btrfs rw,nosuid,nodev,relatime,discard=async,space_cache=v2,subvolid=5,subvol=/Offline
Don't copy and paste out of the pager, i truncates lines
The findmnt output is clearly cut off and ends in a single "s" what might hint at some subvolume being mounted there - or whatever else.
What happens if you just comment gamedisk4 and gamedisk3 (the two spurious noexec mounts)?
Are they still mounted automagically?
Offline
What does `tree /etc/systemd/` show?
Offline
@seth sorry about that, but I don't think that matters in my case because I don't use/have subvolumes, or other special futures of btrfs. I just use it as alternative to ntfs because it works fine on windows(which I barely use, but I need them for test sometimes).
If I comment out the lines of those partitions, they don't automount on reboot. Then, when I revert the change to normal in fstab, run daemon-reload and mount them with "mount -all", again system mounts them with as before and ignore my options.
@scimmia, tree gives command not found. Is on some not basic package which I need to install?
UPDATE: I installed it:
├── coredump.conf
├── homed.conf
├── journald.conf
├── journal-remote.conf
├── journal-upload.conf
├── logind.conf
├── network
├── networkd.conf
├── oomd.conf
├── pstore.conf
├── resolved.conf
├── sleep.conf
├── system
│ ├── autovt@.service -> /usr/lib/systemd/system/kmsconvt@.service
│ ├── bluetooth.target.wants
│ │ └── bluetooth.service -> /usr/lib/systemd/system/bluetooth.service
│ ├── dbus-org.bluez.service -> /usr/lib/systemd/system/bluetooth.service
│ ├── dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service
│ ├── dbus-org.freedesktop.resolve1.service -> /usr/lib/systemd/system/systemd-resolved.service
│ ├── dbus-org.freedesktop.timesync1.service -> /usr/lib/systemd/system/systemd-timesyncd.service
│ ├── default.target.wants
│ │ └── input-remapper.service -> /usr/lib/systemd/system/input-remapper.service
│ ├── getty.target.wants
│ │ └── getty@tty1.service -> /usr/lib/systemd/system/getty@.service
│ ├── getty@tty1.service.d
│ │ └── autologin.conf
│ ├── getty@tty2.service.d
│ │ └── autologin.conf
│ ├── httpd.service.d
│ │ └── hardening.conf
│ ├── libvirt-nosleep@.service
│ ├── local-fs.target.wants
│ │ └── ananicy.service -> /usr/lib/systemd/system/ananicy.service
│ ├── multi-user.target.wants
│ │ ├── coolercontrold.service -> /usr/lib/systemd/system/coolercontrold.service
│ │ ├── cups.path -> /usr/lib/systemd/system/cups.path
│ │ ├── cups.service -> /usr/lib/systemd/system/cups.service
│ │ ├── lactd.service -> /usr/lib/systemd/system/lactd.service
│ │ ├── libvirtd.service -> /usr/lib/systemd/system/libvirtd.service
│ │ ├── lm_sensors.service -> /usr/lib/systemd/system/lm_sensors.service
│ │ ├── NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
│ │ ├── nix-daemon.service -> /usr/lib/systemd/system/nix-daemon.service
│ │ ├── nohang-desktop.service -> /usr/lib/systemd/system/nohang-desktop.service
│ │ ├── proton.VPN.service -> /usr/lib/systemd/system/proton.VPN.service
│ │ ├── radeon-profile-daemon.service -> /usr/lib/systemd/system/radeon-profile-daemon.service
│ │ ├── remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
│ │ ├── smartd.service -> /usr/lib/systemd/system/smartd.service
│ │ ├── sshd.service -> /usr/lib/systemd/system/sshd.service
│ │ ├── teamviewerd.service -> /usr/lib/systemd/system/teamviewerd.service
│ │ ├── vmware-networks.service -> /usr/lib/systemd/system/vmware-networks.service
│ │ ├── vmware-usbarbitrator.service -> /usr/lib/systemd/system/vmware-usbarbitrator.service
│ │ └── windscribe-helper.service -> /usr/lib/systemd/system/windscribe-helper.service
│ ├── network-online.target.wants
│ │ └── NetworkManager-wait-online.service -> /usr/lib/systemd/system/NetworkManager-wait-online.service
│ ├── printer.target.wants
│ │ └── cups.service -> /usr/lib/systemd/system/cups.service
│ ├── sockets.target.wants
│ │ ├── cups.socket -> /usr/lib/systemd/system/cups.socket
│ │ ├── docker.socket -> /usr/lib/systemd/system/docker.socket
│ │ ├── libvirtd-admin.socket -> /usr/lib/systemd/system/libvirtd-admin.socket
│ │ ├── libvirtd-ro.socket -> /usr/lib/systemd/system/libvirtd-ro.socket
│ │ ├── libvirtd.socket -> /usr/lib/systemd/system/libvirtd.socket
│ │ ├── systemd-resolved-monitor.socket -> /usr/lib/systemd/system/systemd-resolved-monitor.socket
│ │ ├── systemd-resolved-varlink.socket -> /usr/lib/systemd/system/systemd-resolved-varlink.socket
│ │ ├── virtlockd-admin.socket -> /usr/lib/systemd/system/virtlockd-admin.socket
│ │ ├── virtlockd.socket -> /usr/lib/systemd/system/virtlockd.socket
│ │ ├── virtlogd-admin.socket -> /usr/lib/systemd/system/virtlogd-admin.socket
│ │ └── virtlogd.socket -> /usr/lib/systemd/system/virtlogd.socket
│ ├── sysinit.target.wants
│ │ ├── systemd-resolved.service -> /usr/lib/systemd/system/systemd-resolved.service
│ │ └── systemd-timesyncd.service -> /usr/lib/systemd/system/systemd-timesyncd.service
│ └── timers.target.wants
│ └── fstrim.timer -> /usr/lib/systemd/system/fstrim.timer
├── system.conf
├── timesyncd.conf
├── user
│ ├── graphical-session-pre.target.wants
│ │ └── xdg-user-dirs.service -> /usr/lib/systemd/user/xdg-user-dirs.service
│ ├── pipewire.service.wants
│ │ └── wireplumber.service -> /usr/lib/systemd/user/wireplumber.service
│ ├── pipewire-session-manager.service -> /usr/lib/systemd/user/wireplumber.service
│ └── sockets.target.wants
│ ├── gcr-ssh-agent.socket -> /usr/lib/systemd/user/gcr-ssh-agent.socket
│ ├── gnome-keyring-daemon.socket -> /usr/lib/systemd/user/gnome-keyring-daemon.socket
│ ├── p11-kit-server.socket -> /usr/lib/systemd/user/p11-kit-server.socket
│ ├── pipewire-pulse.socket -> /usr/lib/systemd/user/pipewire-pulse.socket
│ ├── pipewire.socket -> /usr/lib/systemd/user/pipewire.socket
│ └── speech-dispatcher.socket -> /usr/lib/systemd/user/speech-dispatcher.socket
└── user.confLast edited by zaxdan69 (Yesterday 06:04:32)
Offline
The point is not the subvolume specifically but that we're missing data on the concerned mounts because of the truncation.
If I comment out the lines of those partitions, they don't automount on reboot.
One thing that sticks out is that the fstab entry for gamedisk3 is wrong (the "00" at the end needs some space between them) but whether that causes the fstab generator to apply wild defaults, idk.
Offline
The point is not the subvolume specifically but that we're missing data on the concerned mounts because of the truncation.
If I comment out the lines of those partitions, they don't automount on reboot.
One thing that sticks out is that the fstab entry for gamedisk3 is wrong (the "00" at the end needs some space between them) but whether that causes the fstab generator to apply wild defaults, idk.
No, it's not 00, the editor here ate the space(I don't know why on that specific line, but I just re-checked it).
├─/media/gamedisk2 /dev/sdb3 fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
/media/gamedisk5 /dev/nvme1n1p1 btrfs rw,nosuid,nodev,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,autodefrag,subvolid=5,subvol=/
/media/datadisk3 /dev/sdd1 fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
/media/gamedisk /dev/sdc1 fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
/media/datadisk2 /dev/sde1 btrfs rw,nosuid,nodev,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/
/media/gamedisk1 /dev/sdc2 btrfs rw,nosuid,nodev,relatime,discard=async,space_cache=v2,subvolid=5,subvol=/
/media/datadisk /dev/sdf1 btrfs rw,nosuid,nodev,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,autodefrag,subvolid=5,subvol=/
/media/gamedisk3 /dev/nvme0n1p3 btrfs rw,nosuid,nodev,noexec,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,autodefrag,subvolid=5,subvol=/
/media/gamedisk4 /dev/sda4 btrfs rw,nosuid,nodev,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,autodefrag,subvolid=5,subvol=/* the noexec isn't there for some because I remounted them with "exec" after the reboot.
Last edited by zaxdan69 (Yesterday 07:11:39)
Offline
Ok, on a close look it must be the option order.
Put "exec" behind "user".
Offline
You found it!! Yes that was the problem. I initially didn't have exec for those partitions and I didn't know that order matters in options. But seems that it does. Thank you.
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Pages: 1