Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id D0FBC781A65 for ; Sun, 22 Dec 2019 16:04:24 +0000 (UTC) Received: by mail-io1-f48.google.com with SMTP id v18so14051170iol.2 for ; Sun, 22 Dec 2019 08:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklive-net.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=RmeETgN0D+DWZicmEzGMDsfgaUuTTejvvyqjqw1uEjc=; b=bsiHXUmiDq5jap2EIsmriwm2vxmqO1wPAXVwV1K7MbT47dUikEuErvIZuA0L+DcpQ2 Fh+2rXhho0vkWMFGGM3o2YFA1ZSsvPYPUZ3JEwEW0vdKDhIMRYpLdbg3uiqKh4jCqKJT crfdDIB+Dcm+9OGpuiRkl6l8FYNRMl5F5iv2IupgwpT6j5UjlGpSU4u78xknOgob5BGv 7ZcxAnlvZeGxl6aPMsDaVa3EwMkWd5NsOfVyZzC/Vqm8PkX4OupIcmvWVVdOoybApP1/ S6aq2v+VdowaOJv7PN8PuYWXAQ3WXcz1vXrqj+z8gKMczXW9Jw0Iy4l2Mf6OX55HalD+ Fqjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RmeETgN0D+DWZicmEzGMDsfgaUuTTejvvyqjqw1uEjc=; b=D93MZy+lwKinbMtCm1Tk3N53f/WvhD/+/bI95S3OFAT80VAWWg77yHGc4dbYmbD9/a IWal3IyGOzqYtyT2n6OXVongrpNHXeWGoQYJb3yYZkCt2H+oeUWxvWqo/aRY9cBWWahq FKVwSnmKkmCGq/RZNh7WijeK/yRiwucIGlHfYyJahyDVv/ZkNnwEeNEtzOrpWN/9AyHA lHsvKLI4mx5tMftk2WzfZH3FuFqvhD70a2y0M+nZtVhWL2NuueTrXVTJXjjKAXqchb2Z i2P73urx3C8XW6D2xwBxBztpx60W/IpShhjygt9TFCSfsbreX7GKZe6s/ykiqUWiM+sG pgTA== X-Gm-Message-State: APjAAAUnH456SGFxiwrG4n714ba2TRLFCHBTSPwMf3D3F8OYIslcRcq/ RO6DcZKASzAv8AlPbSgfGoa/9x0UWaf7f/U0/qPUlmgX4i7Zmg== X-Google-Smtp-Source: APXvYqxm0WR1Di+gSAjtzV7ZLDOdczOAu8lEfswP4T6RfSZNIHn+veqPp81pMLRi8kUDSmzTc5cnTncJ6r3J93EP+TI= X-Received: by 2002:a02:b00c:: with SMTP id p12mr20671018jah.112.1577030663100; Sun, 22 Dec 2019 08:04:23 -0800 (PST) MIME-Version: 1.0 From: Andrew Konstantinov Date: Sun, 22 Dec 2019 08:04:07 -0800 Message-ID: Subject: vfat mount uid/gid not working To: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="000000000000797341059a4d1027" --000000000000797341059a4d1027 Content-Type: text/plain; charset="UTF-8" All, Puzzled as to why this is not working (what am I missing)? Appreciate any help or pointers! Andrew $ uname -a Linux localhost 5.4.5-0-lts #1-Alpine SMP Thu, 19 Dec 2019 09:08:46 UTC x86_64 Linux $ cat /etc/alpine-release 3.11.0 $ sudo fdisk /dev/sda The number of cylinders for this disk is set to 30282. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sda: 233 GB, 250059350016 bytes, 488397168 sectors 30282 cylinders, 256 heads, 63 sectors/track Units: sectors of 1 * 512 = 512 bytes Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/sda1 0,1,2 1023,255,63 64 488397167 488397104 232G b Win95 FAT32 $ 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) $ ls -la /mnt/content total 100 drwxr-xr-x 4 root root 32768 Dec 31 1969 . drwxr-xr-x 3 root root 4096 Dec 21 19:04 .. $ --000000000000797341059a4d1027 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
All,

Puzzled as to why this is not work= ing (what am I missing)? Appreciate any help or pointers!

Andrew

$ uname -a=
Linux localhost 5.4.5-0-lts #1-Alpine SMP Thu, 19 Dec 2019 09:08:46 UTC= x86_64 Linux
$ cat /etc/alpine-release
3.11.0
$ sudo fdisk /dev/sda=C2=A0 =C2=A0
The number of cylinders for this disk is set to = 30282.
There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:
1) software that runs= at boot time (e.g., old versions of LILO)
2) booting and partitioning s= oftware from other OSs
=C2=A0 =C2=A0(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 233 GB, 250059350016 bytes, 4883= 97168 sectors
30282 cylinders, 256 heads, 63 sectors/track
Units: sec= tors of 1 * 512 =3D 512 bytes

Device =C2=A0Boot StartCHS =C2=A0 =C2= =A0EndCHS =C2=A0 =C2=A0 =C2=A0 =C2=A0StartLBA =C2=A0 =C2=A0 EndLBA =C2=A0 = =C2=A0Sectors =C2=A0Size Id Type
/dev/sda1 =C2=A0 =C2=A00,1,2 =C2=A0 =C2= =A0 =C2=A0 1023,255,63 =C2=A0 =C2=A0 =C2=A0 =C2=A0 64 =C2=A0488397167 =C2= =A0488397104 =C2=A0232G =C2=A0b Win95 FAT32

$ sudo mount -t /dev/sda= 1 /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)
$= ls -la /mnt/content
total 100
drwxr-xr-x =C2=A0 =C2=A04 root =C2=A0 = =C2=A0 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 32768 Dec 31 =C2=A01969 .
drwxr-= xr-x =C2=A0 =C2=A03 root =C2=A0 =C2=A0 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A04096 Dec 21 19:04 ..
$=C2=A0

--000000000000797341059a4d1027--