trip Posted April 13, 2020 Posted April 13, 2020 I installed Armbian Bionic Desktop 4.4 on the emmc module and I also have an SD card in. When I get to the desktop the card looks like it has been mounted by the current user (I'm new to Linux) - it was listed under /media/myuser with myuser as user and group -, so I changed /etc/fstab to have it mounted during system boot, by adding: /dev/mmcblk0p1 /mnt/sdcard This is what lsblk says: mmcblk1 179:0 0 14.7G 0 disk └─mmcblk1p1 179:1 0 14.5G 0 part / mmcblk1boot0 179:16 0 4M 1 disk mmcblk1boot1 179:32 0 4M 1 disk mmcblk1rpmb 179:48 0 4M 0 disk mmcblk0 179:64 0 29G 0 disk └─mmcblk0p1 179:65 0 29G 0 part /mnt/sdcard I noticed that the following gives an error: $ ls -l /mnt/sdcard/ drwxr-xr-x 5 root root 32768 Apr 12 20:22 kubernetes $ sudo mkdir /mnt/sdcard/test-dir drwxr-xr-x 5 root root 32768 Apr 12 20:22 kubernetes drwxr-xr-x 2 root root 32768 Apr 13 17:29 test-dir $ sudo chown myuser:myuser /mnt/sdcard/test-dir chown: changing ownership of '/mnt/sdcard/test-dir': Operation not permitted Is it expected? Or do I have to do anything else? I did this because I'm trying to deploy a PostgreSQL image in a Kubernetes cluster and I'm continuosly getting this same error, and after every configuration I found online didn't work, I wanted to try the command explicitly.
martinayotte Posted April 13, 2020 Posted April 13, 2020 Is that SDCard is formatted EXT4, because if it is a FAT partition, you can't have multiple owners ...
trip Posted April 13, 2020 Author Posted April 13, 2020 Oh s**t! I lost two days on this, thinking there was some configuration problem or incompatibility... I didn't think about the SD card file system. Thank you.
trip Posted April 13, 2020 Author Posted April 13, 2020 4 hours ago, Werner said: Is this dir immutable? Check lsattr It said lsattr: Inappropriate ioctl for device While reading flags but it was due to the FAT file system; now that I formatted it to Ext4, it gives: --------------e--- /mnt/sdcard/kube-postgres
Recommended Posts