Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 989EE781A9B for ; Mon, 23 Dec 2019 03:28:56 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id b10so14865903iof.11 for ; Sun, 22 Dec 2019 19:28:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklive-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qR/POMUUWzIWBjK/eqJ3+FNQerFRISoRBzIXi1tZmu0=; b=GC423cErmz4MJbd8uiu0VvNZV2mIieUjcX2Tj9CMvU0lF7z4del6lAD+R0zX0uMfpo RzKAXsBmqFyeQh+ELUTjDqW25ADUGaPpRVGtFyS4hXDiPFHJbo0Y6BIoRDCdS2l3pljW GBTh53GZHLqKBMRsrrKqrTNm1xycPclZC+pQAnNIWfaEuKjgU04eQeYC/Uvp34Mxb4AE 2DFYQH/xS21SfgkHjv+xU9zLM7YB0C1g0OBlWXscKblXrD40GabxYNA6Q5YS9jg08rv2 +Bn887EBcUO2bOt4J1K1RU83LNJYiy+k8Qv3ZYPk1ahH+em9c7K4+5udk/Qi+cLs5euZ BVRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qR/POMUUWzIWBjK/eqJ3+FNQerFRISoRBzIXi1tZmu0=; b=JMdcKHqEc9JhfY0HjiYZuWZw95MaonmKFmBf0qB6g5bRznpb2b3KKC0Tg/KT6lUveM fnNMGRpNtiug4x4YRNQTkpLQyPMNIMEeZbMgoMZuxVUiffykyIztzO9Y6bQVm2Y2zljg mWd5DymnabeCr6MdtcNb9hmoPbUxiuYGb+2j+qvcC36j09N792XFlby8OBEtQ9XJTNPP Z9rZpGnFZc9/ZIElpJCHviPuqSMKKMlgyLckmWy/7U/gwEGNMjMCJXmDO1B8omR1nK+5 8xuoGGtWh7glggSMGGlD/zJuqa6TxFREUyYECfebhI8m0XnDhIjXNpiQiVjtOpq8CE4Y 9kwg== X-Gm-Message-State: APjAAAVOuoH/uXAOWzmliOLEos3NpAvv7fIRy73pXbledrKaTPpbUx/H LF8/TDgQNud+rhCRPtcpMQqAhXaG9PA/E7zOPCp6qSc9ipc= X-Google-Smtp-Source: APXvYqwFImQ6WxL39/CaJGkFliSe5sioOk96jiNhY3+VfBpX0NIQpj4fRjkmYeY0C9NAnJZPVCAvGybnlsg0zrk3bpA= X-Received: by 2002:a5d:8cd6:: with SMTP id k22mr17996261iot.283.1577071735190; Sun, 22 Dec 2019 19:28:55 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andrew Konstantinov Date: Sun, 22 Dec 2019 19:28:38 -0800 Message-ID: Subject: Re: vfat mount uid/gid not working To: Christian Kujau Cc: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000008fca39059a56a0f3" --0000000000008fca39059a56a0f3 Content-Type: text/plain; charset="UTF-8" Christian, Thanks for the reply. Actually, rebooting the box fixed the issue! Saw on some random forum that it helped someone and tried. Always thought reboots were windows specific! On Sun, Dec 22, 2019 at 7:23 PM Christian Kujau wrote: > On Sun, 22 Dec 2019, Andrew Konstantinov wrote: > > $ sudo mount -t /dev/sda1 /mnt/content -o rw,uid=1000,gid=1000 > > $ sudo mount -v G content > > /dev/sda1 on /mnt/content type vfat > > > (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro) > > Cannot reproduce on 5.4.5-0-virt (Alpine 3.12_alpha20191219), but > something is curious about your mount commands: why specify "-t" but not > fstype? What is "mount -v G..." supposed to do? Did you mean "... | grep > conent"? > Yeah, "-t" is a typo, worked because it was already in my /etc/fstab. "G" is the oh-my-zsh alias for "| grep". > ============================================================== > $ mkfs.vfat /dev/loop0 > $ mount -t vfat -o uid=1000,gid=1000 /dev/loop0 /mnt/ > $ mount | grep /mnt > /dev/loop0 on /mnt type vfat > (rw,relatime,uid=1000,gid=1000,fmask=0066,dmask=0066,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro) > $ ls -ld /mnt/ > > > drwx--x--x 2 dummy dummy 512 Dec 31 1969 /mnt/ > ============================================================== > > Anything interesting in dmesg? Also, out of curiosity: why do you want to > set uid/gid on a FAT filesystem? > dmesg did not have anything interesting. Want to set uid/gid so that these volumes mapped inside docker containers correspond to same users and not root (just for convenience). > C. > -- > BOFH excuse #67: > > descramble code needed from software company > --0000000000008fca39059a56a0f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Christian,

Thanks for = the reply. Actually, rebooting=C2=A0the box fixed the issue! Saw on some ra= ndom forum that it helped someone and tried. Always thought reboots were wi= ndows specific!

On Sun, Dec 22, 2019 at 7:23 PM Christian Kujau <lists@nerdbynature.de> wrote:=
On Sun, 22 Dec = 2019, Andrew Konstantinov wrote:
> $ sudo mount -t /dev/sda1 /mnt/content -o rw,uid=3D1000,gid=3D1000
> $ sudo mount -v G content
> /dev/sda1 on /mnt/content type vfat
> (rw,relatime,fmask=3D0022,dmask=3D0022,codepage=3D437,iocharset=3Dutf8= ,shortname=3Dmixed,errors=3Dremount-ro)

Cannot reproduce on 5.4.5-0-virt (Alpine 3.12_alpha20191219), but
something is curious about your mount commands: why specify "-t" = but not
fstype? What is "mount -v G..." supposed to do? Did you mean &quo= t;... | grep
conent"?

Yeah, "-t" is a= typo, worked because=C2=A0it was already in my /etc/fstab. "G" i= s the oh-my-zsh alias for "| grep".
=C2=A0
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
$ mkfs.vfat /dev/loop0
$ mount -t vfat -o uid=3D1000,gid=3D1000 /dev/loop0 /mnt/
$ mount | grep /mnt
/dev/loop0 on /mnt type vfat (rw,relatime,uid=3D1000,gid=3D1000,fmask=3D006= 6,dmask=3D0066,codepage=3D437,iocharset=3Dutf8,shortname=3Dmixed,errors=3Dr= emount-ro)
$ ls -ld /mnt/=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
drwx--x--x=C2=A0 =C2=A0 2 dummy=C2=A0 =C2=A0 dummy=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 512 Dec 31=C2=A0 1969 /mnt/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Anything interesting in dmesg? Also, out of curiosity: why do you want to <= br> set uid/gid on a FAT filesystem?

dmesg = did not have anything interesting. Want to set uid/gid so that these volume= s mapped inside docker containers correspond to same users and not root (ju= st for convenience).
=C2=A0
C.
--
BOFH excuse #67:

descramble code needed from software company
--0000000000008fca39059a56a0f3--