You are not logged in.

#1 2023-05-26 07:28:55

d.ALT
Member
Registered: 2019-05-10
Posts: 914

news and infos about "owner" mount's option

This was my issue, hence the title.
Any changelog(s) where I should look for finding the reason why owner is now an Invalid Argument?
It seems linux-lts>=6.1.29 update "broke" (?) the owner argument.

I don't think it's a problem related to util-linux/mount, because:

man.archlinux.org wrote:
owner
Allow an ordinary user to mount the filesystem if that user is the owner of the device. This option implies the options nosuid and nodev (unless overridden by subsequent options, as in the option line owner,dev,suid).

(https://man.archlinux.org/man/mount.8)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#2 2023-05-26 09:41:32

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: news and infos about "owner" mount's option

Have you checked if this also happens when using owner for non-fuse based filesystems ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2023-05-26 11:47:40

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: news and infos about "owner" mount's option

Lone_Wolf wrote:

Have you checked if this also happens when using owner for non-fuse based filesystems ?

Good catch Lone_Wolf!!

$ LC_ALL=C sudo mount -v -t ext4 -o owner /dev/sdd1 /mnt/ownertest_ext4/
mount: /mnt/ownertest_ext4/: mount failed: Invalid argument.

\\\

$ sudo blkid /dev/sdd1
/dev/sdd1: UUID="cf6e5e40-e932-4c5d-8d8f-f15b6329029b" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="da164bc3-9c2a-44d4-9682-fd034570bb8b"

\\\

$ LC_ALL=C sudo mount -v -t ext4 -o ro /dev/sdd1 /mnt/ownertest_ext4/
mount: /dev/sdd1 mounted on /mnt/ownertest_ext4.
$ mount | grep owner
/dev/sdd1 on /mnt/ownertest_ext4 type ext4 (ro,relatime)

But now the question remains! tongue ... Why? O.o

Last edited by d.ALT (2023-05-26 11:48:48)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#4 2023-05-26 14:29:31

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: news and infos about "owner" mount's option

It seems linux-lts>=6.1.29 update "broke" (?) the owner argument.

Did you test that hypothesis or is this anecdotal (and you might have been using util-linux 2.38 at the time when it was still working)

Edit: https://bbs.archlinux.org/viewtopic.php?id=286053

Last edited by seth (2023-05-26 15:25:01)

Offline

#5 2023-05-26 16:12:42

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: news and infos about "owner" mount's option

d.ALT wrote:

But now the question remains! tongue ... Why? O.o

Maybe related to util-linux/issues/2238, see this comment.

Last edited by d.ALT (2023-05-26 16:12:56)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#6 2023-05-26 16:53:05

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: news and infos about "owner" mount's option

@d.ALT have you tried applying https://github.com/util-linux/util-linu … 7eb574effd ?  Would a built package help?

Offline

#7 2023-05-27 00:08:05

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: news and infos about "owner" mount's option

loqs wrote:

Mmm... Is this a patch? Sorry, but I really have no idea on how to handle patches nor how could I apply it! big_smile



loqs wrote:

Would a built package help?

Dear logs, sure! Would you kindly help me out? wink



Packages update just now, but still... no solution though:

local/util-linux 2.39-3
    Miscellaneous system utilities for Linux
local/util-linux-libs 2.39-3
    util-linux runtime libraries

\\\

$ LC_ALL=C sudo mount -v -t ext4 -o owner /dev/sdd1 /mnt/ownertest_ext4/
mount: /mnt/ownertest_ext4/: mount failed: Invalid argument.

<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#8 2023-05-27 05:36:13

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: news and infos about "owner" mount's option

That seems to only fix https://bugs.archlinux.org/task/78596

https://wiki.archlinux.org/title/Arch_b … ILD_source
Get the PKGBUILD, add the patch, add it to the list of patches in the PKGBUILD (don't forget the hash) and build the package and install it w/ "makepkg -i"
You can get the raw patch by adding ".diff" to the url, https://github.com/util-linux/util-linu … 4effd.diff

Offline

#9 2023-05-27 10:25:25

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: news and infos about "owner" mount's option

There has been another update to util-linux 2.39-4 to fix https://github.com/util-linux/util-linux/issues/2247

Changes to apply https://github.com/util-linux/util-linu … 7eb574effd
PKGBUILD.diff

diff --git a/PKGBUILD b/PKGBUILD
index 5979ae4..5d94b65 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=(util-linux util-linux-libs)
 _pkgmajor=2.39
 _realver=${_pkgmajor}
 pkgver=${_realver/-/}
-pkgrel=4
+pkgrel=4.1
 pkgdesc='Miscellaneous system utilities for Linux'
 url='https://github.com/karelzak/util-linux'
 arch=('x86_64')
@@ -18,6 +18,7 @@ validpgpkeys=('B0C64D14301CC6EFAEDF60E4E4B71D5EEC39C284')  # Karel Zak
 source=("https://www.kernel.org/pub/linux/utils/util-linux/v${_pkgmajor}/${pkgbase}-${_realver}.tar."{xz,sign}
         '0001-libmount-don-t-call-hooks-after-mount-type-helper.patch'
         '0002-libmount-check-for-availability-of-mount-setattr.patch'
+        https://github.com/util-linux/util-linux/commit/c0267687fd7b41b00d523d1985182d7eb574effd.patch
         pam-{login,common,runuser,su}
         'util-linux.sysusers'
         '60-rfkill.rules'
@@ -27,6 +28,7 @@ sha256sums=('32b30a336cda903182ed61feb3e9b908b762a5e66fe14e43efb88d37162075cb'
             'SKIP'
             'e7c6a0375ca1bd4606f7a42882f20b8e3ce7c7107c790694e55699376377c0e1'
             '6266b8733450af97bcf0f31fa9b21bad171b53b7b49a2954812c39ea70552cb5'
+            '1e8fcbb311d94bca80a8c31735aa2b16179e6261cca81df51493159c36870cf8'
             '99cd77f21ee44a0c5e57b0f3670f711a00496f198fc5704d7e44f5d817c81a0f'
             '57e057758944f4557762c6def939410c04ca5803cbdd2bfa2153ce47ffe7a4af'
             '48d6fba767631e3dd3620cf02a71a74c5d65a525d4c4ce4b5a0b7d9f41ebfea1'
@@ -41,6 +43,7 @@ prepare() {
 
   patch -Np1 < ../0001-libmount-don-t-call-hooks-after-mount-type-helper.patch
   patch -Np1 < ../0002-libmount-check-for-availability-of-mount-setattr.patch
+  patch -Np1 < ../c0267687fd7b41b00d523d1985182d7eb574effd.patch
 }
 
 build() {

PKGBUILD source tarball:
https://drive.google.com/file/d/10nLsTW … share_link util-linux-2.39-4.1.src.tar.gz
Prebuilt package:
https://drive.google.com/file/d/1HmCYNf … share_link util-linux-2.39-4.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/160HPDL … share_link util-linux-libs-2.39-4.1-x86_64.pkg.tar.zst

Last edited by loqs (2023-05-27 10:26:12)

Offline

#10 2023-05-29 11:00:59

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: news and infos about "owner" mount's option

loqs wrote:

Prebuilt package:
https://drive.google.com/file/d/1HmCYNf … share_link util-linux-2.39-4.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/160HPDL … share_link util-linux-libs-2.39-4.1-x86_64.pkg.tar.zst

$ LC_ALL=C sudo mount -v -t ext4 -o owner /dev/sdd1 /mnt/ownertest_ext4/
mount: /mnt/ownertest_ext4/: mount failed: Invalid argument.

<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#11 2023-06-01 12:35:03

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: news and infos about "owner" mount's option

Offline

#12 2023-06-15 17:46:45

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: news and infos about "owner" mount's option

$ LC_ALL=C sudo mount -v -t ext4 -o owner /dev/sdd1 /mnt/ownertest_ext4/
mount: /mnt/ownertest_ext4/: mount failed: Invalid argument.

$ LC_ALL=C sudo mount -v -t ext4 /dev/sdd1 /mnt/ownertest_ext4/
mount: /dev/sdd1 mounted on /mnt/ownertest_ext4.

$ mount | grep sdd1
/dev/sdd1 on /mnt/ownertest_ext4 type ext4 (rw,relatime)

$ pacman -Qs util-linux
local/lib32-util-linux 2.39-2
    Miscellaneous system utilities for Linux (32-bit)
local/util-linux 2.39-9
    Miscellaneous system utilities for Linux
local/util-linux-libs 2.39-9
    util-linux runtime libraries

<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

Board footer

Powered by FluxBB