#Mount MicroSD card through USB adapter
65 messages · Page 1 of 1 (latest)
I just got an error, it says permission denied, SD card is write locked?
git clone https://aur.archlinux.org/snapd.git
i'm confused by this
oh
sorry pasted wrong thing
[drewr@Drew-Desktop files]$ sudo hdparm -r0 /dev/sdc1
/dev/sdc1:
setting readonly to 0 (off)
readonly = 0 (off)
so it doesn't show up in dolphin, does it show up anywhere else? also do you know if it's formatted and with what?
yeah no
I was able to mount /dev/sdc1 to /sdcard
but prussia slicer isnt able to write the file into it
does the program give an error? do you have /sdcard owned by your user?
you specified your user in the chmod command right?
no
chown: changing ownership of '/sdcard': Operation not permitted
[drewr@Drew-Desktop files]$
[drewr@Drew-Desktop files]$ sudo chown drewr /sdcard
but I did sudo
im so confused
wait who is the owner of it
idk how do I tell
root owns it
[drewr@Drew-Desktop files]$ ls -l /sdcard
total 1536
-rwxr-xr-x 1 root root 585 Jan 1 2000 BIN
-rwxr-xr-x 1 root root 438655 Aug 8 14:32 cibtest.gcode
-rwxr-xr-x 1 root root 1024165 Aug 8 13:59 RetractionTest2.gcode
drwxr-xr-x 2 root root 32768 Aug 3 08:59 'System Volume Information'
[drewr@Drew-Desktop files]$
prolly cuz I did sudo mount into the root dir
and you're running the program as your user correct?
ye
/sdcard needs to be owned by your user then
just moved it into my home dir
[drewr@Drew-Desktop files]$ ls -l /sdcard
total 1536
-rwxr-xr-x 1 root root 585 Jan 1 2000 BIN
-rwxr-xr-x 1 root root 438655 Aug 8 14:32 cibtest.gcode
-rwxr-xr-x 1 root root 1024165 Aug 8 13:59 RetractionTest2.gcode
drwxr-xr-x 2 root root 32768 Aug 3 08:59 'System Volume Information'
[drewr@Drew-Desktop files]$
its still owned by root how do I fix this
even sudo chown doesnt work
I tried to sudo su and chown but I still get permission denied
sudo chown drewr /sdcard
can you try mounting somewhere else?
well I diid
/home/drewr/sdcard
still owned by root
-rwxr-xr-x 1 root root 585 Jan 1 2000 BIN
-rwxr-xr-x 1 root root 438655 Aug 8 14:32 cibtest.gcode
-rwxr-xr-x 1 root root 1024165 Aug 8 13:59 RetractionTest2.gcode
drwxr-xr-x 2 root root 32768 Aug 3 08:59 'System Volume Information'
what about the directory itself not its contents
try chowning recursively with -R
even sudo su
it doesnt let me
permission denied
drwxr-xr-x 3 root root 32768 Jan 1 1970 sdcard
im literally root
but it wont let me chown
wait how are you mounting it
sudo mount
hmm
[drewr@Drew-Desktop ~]$ sudo mv test_7h35m_0.08mm_210C_PLA_CR10.gcode /home/drewr/sdcard/
mv: failed to preserve ownership for '/home/drewr/sdcard/test_7h35m_0.08mm_210C_PLA_CR10.gcode': Operation not permitted
it wont let me move files onto it either
try mount -o remount,rw on it
I’ve had better luck just using Thunar’s automounting, which mounts as the user. Dolphin probably has something similar, quite possibly using the same backend.