Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

chown operation not permitted on sdcard folders

Featured Replies

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.

 

 

 

  • Author

Oh s**t!

 

I lost two days on this, thinking there was some configuration problem or incompatibility... :angry:

I didn't think about the SD card file system. Thank you.

  • Author
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:

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.