Quantcast
Viewing all articles
Browse latest Browse all 4871

General • Re: raspberry pi zero w connected to pico. can't mount CIRCUITPY due to permissions

Here's the distro
root@weathervot:~# uname -a
Linux weathervot 6.6.31+rpt-rpi-v6 #1 Raspbian 1:6.6.31-1+rpt1 (2024-05-29) armv6l GNU/Linux
root@weathervot:/etc# hostnamectl
Static hostname: weathervot
Icon name: computer
Machine ID: c68caea41ea14cea9bf16e1cb881a383
Boot ID: 49d7bd827c854adcb654a6a5f0701432
Operating System: Raspbian GNU/Linux 12 (bookworm)
Kernel: Linux 6.6.31+rpt-rpi-v6
Architecture: arm
root@weathervot:/etc

HERE'S MY SOLUTION TO THE PROBLEM:

root@weathervot:~# cat /etc/fstab
proc /proc proc defaults 0 0
PARTUUID=*********** /boot/firmware vfat defaults 0 2
PARTUUID=*********** / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that

# garberw
UUID=********** /media/CIRCUITPY vfat defaults,nosuid,nodev,nofail,sync,uid=1000,gid=1000,umask=027 0 0
root@weathervot:~# umount (existing CIRCUITPI)
root@weathervot:~# systemctl daemon-reload
root@weathervot:~# mount -a

I tested what would happen if I was not running as headless.
When I hooked up a monitor keyboard and mouse ...
pcmanfm was waiting at a prompt asking to automount the CIRCUITPY.
I installed as desktop because gui apps are useful !!!!
but I'm running as headless which caused this problem because I could not
reply to the prompt (no monitor or keyboard ... it's headless).
So this below turns off the default pcmanfm prompt to automount.
Then the above fstab modification mounts CIRCUITPY as desired.

garberw@weathervot:~ $ cat .config/pcmanfm/LXDE-pi/pcmanfm.conf
.....
[volume]
# garberw
# mount_on_startup=1
mount_on_startup=0
# garberw
# mount_removable=1
mount_removable=0
autorun=1
.....

Statistics: Posted by garberw — Fri Sep 13, 2024 9:07 pm



Viewing all articles
Browse latest Browse all 4871

Trending Articles