chown operation not permitted on sdcard folders


Recommended Posts

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.

 

 

 

Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

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

:rolleyes:

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...