On Wed, May 15, 2024 at 4:38 PM Walter Dnes <waltd...@waltdnes.org> wrote: > > > Have you checked that the directory where you are attempting to do > > this is one that your account owns? I generally have to su - to root, > > create a directory at the top level, change it so that I own it and > > have rwx permissions, and then exit root. After that I can do what > > I want. > > So I did "su" and tried changing ownership... failed > > x8940 /home/waltdnes/tablet # chown waltdnes:users sdcard1 > chown: changing ownership of 'sdcard1': Function not implemented > > Let's try "chmod"... failed silently > > [x8940][root][/home/waltdnes/tablet] chmod 777 sdcard1 > [x8940][root][/home/waltdnes/tablet] ll > total 24 > drwxr-xr-x 4 root root 0 Dec 31 1969 . > drwxr-xr-x 144 waltdnes users 24576 May 15 18:17 .. > drwxr-xr-x 5 root root 0 Nov 16 4456932 sdcard > drwxr-xr-x 6 root root 0 Apr 22 4456932 sdcard1 > > root can't chmod sdcard1. > > [x8940][root][/home/waltdnes/tablet] mkdir sdcard1/data > mkdir: cannot create directory ‘sdcard1/data’: Input/output error > > and root can't create a directory!!! Let's try top level... > > [x8940][root][~] cd /home/waltdnes/tablet > [x8940][root][/home/waltdnes/tablet] mkdir data > mkdir: cannot create directory ‘data’: Read-only file system > <SNIP>
So it seems very strange to me that, per the initial message, you can create and delete files, which implies the file system is not read only, but the mkdir command thinks it is read only. And from what I've read there is no read-only switch on this SD card, correct? It's just something like a chip that plugs into a Raspberry Pi or a camera, correct? I am not exactly clear from rereading what the actual SD card is or how it's attached, and you are using file system types I know nothing about. However, if only for clarity, what I've had to do even with ext3/4 is essentially the following: 1) su - and enter root password. 2) As root navigate to /home/walter/tablet or whatever the location is where you believe you are really ON the SD card 3) Create a file using vi, save the file, make sure it's there and make sure it's owned root:root. 4) Exit the su and make sure the file is there. Unmount the SD card, remount the SD card and check that it's really there. Put the SD card in some other system where you can see the file, if possible. 5) Assuming all of that makes sense, remount the CD card, su there again, and chown the file to walter:walter or walter:user or whatever is appropriate. Make sure you can edit the file from some other terminal process. 6) As root in the su, then try to create a directory. If it's still read only then this is way above my pay grade. However if you can create the directory, which I've always been able to do as root, then chown -R the directory to your user ID. It is important to ensure that OS believes you have read/write access all the way up and down the chain so you might need to chown -R walter:walter AS ROOT from your home directory into the mount point, which if I understand, is /home/walter/tablet, so I'd be root and doing the command sitting in /home/walter. Sorry. Wish I could be more helpful but this has been a problem on my systems ever since I started using Linux 25-30 years ago and I struggle with it maybe once a year. Good luck, Mark