4

When plugging in my SD card, I get a message saying "not authorized to perform operation." I can mount it using sudo, but I can't create files on it in nautilus unless I'm running it as root. sudo chown -R user:user sdcard gives me: chown: changing ownership of 'sdcard': Operation not permitted I tried reinstalling policykit, and it changed nothing.

Edit: I reinstalled ubuntu 18.04 the sd card worked for awhile, then I tried plugging in a usb 3.0 jumpdrive that I just bought, and I got notified of a software update, so I updated, and now I'm back in the same situation... my apt histoty:

Start-Date: 2019-12-21  21:14:00
Commandline: aptdaemon role='role-commit-packages' sender=':1.122'
Upgrade: python3-software-properties:amd64 (0.96.24.32.11, 0.96.24.32.12), python2.7-minimal:amd64 (2.7.15-4ubuntu4~18.04.2, 2.7.17-1~18.04), libpython2.7:amd64 (2.7.15-4ubuntu4~18.04.2, 2.7.17-1~18.04), google-chrome-stable:amd64 (79.0.3945.79-1, 79.0.3945.88-1), python2.7:amd64 (2.7.15-4ubuntu4~18.04.2, 2.7.17-1~18.04), software-properties-gtk:amd64 (0.96.24.32.11, 0.96.24.32.12), ubuntu-drivers-common:amd64 (1:0.5.2.4, 1:0.5.2.5), libpython2.7-minimal:amd64 (2.7.15-4ubuntu4~18.04.2, 2.7.17-1~18.04), linux-firmware:amd64 (1.173.13, 1.173.14), libpython2.7-stdlib:amd64 (2.7.15-4ubuntu4~18.04.2, 2.7.17-1~18.04), software-properties-common:amd64 (0.96.24.32.11, 0.96.24.32.12)
End-Date: 2019-12-21  21:14:46

dmesg | tail:

[ 4656.901658] scsi host6: usb-storage 3-2:1.0
[ 4657.920932] scsi 6:0:0:0: Direct-Access     Generic  Mass-Storage     1.11 PQ: 0 ANSI: 2
[ 4657.922055] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 4658.654229] sd 6:0:0:0: [sdb] 30930944 512-byte logical blocks: (15.8 GB/14.7 GiB)
[ 4658.654485] sd 6:0:0:0: [sdb] Write Protect is off
[ 4658.654490] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 4658.654749] sd 6:0:0:0: [sdb] No Caching mode page found
[ 4658.654755] sd 6:0:0:0: [sdb] Assuming drive cache: write through

buckithed
  • 143
  • 1
  • 6

2 Answers2

0

It sounds like a permissions issue if you are able to edit/create files as root but not as your user. If that is the case then you just need to change the file permissions of your sdcard so that your use can edit it. So, open up a terminal and navigate to wherever your sdcard is mounted, for example /mnt/sdcard:

cd /mnt
sudo chown -R $(whoami):$(whoami) sdcard

Also check the file permissions. You probably want them to be 750, at least.

cd /mtn
chmod 750 sdcard

Now you should be able to edit files as your user without switching to root. Regarding not being able to automatically mount the drive, there are a few reason that could be happening. We would need more information to help you with that. Please see this thread.

Chev_603
  • 1,728
0

Okay, remove any, really any devices like usb-sticks/harddrive from you computer. Control with mount | grep media Nothing is mountet in /media/$USER. $USER is a variable for your username. Take a look if some files under sudo ls -al /media/$USER If not sudo rm -rf /media/$USER

This folder will be recreatet if you plugin an USB stick or similiar medium.

nobody
  • 5,792