I'm using Ubuntu 22.04 on Dell Alienware R13 desktop (multiboot with Windows 10).
My problem is that permissions are denied on /media directory.
I don't know what caused this problem.
As I recall, I was trying to upgrade the Nvidia driver, and suddenly the system didn't boot up and fell to busybox (initramfs).
And I found that the SATA setting in BIOS was somehow set to "RAID on" so I changed it to "AHCI/NVMe".
Now it boots normally but I found the network setting is gone.
So I needed to install some drivers using external (USB) devices.
But when I connect any external device, it refuses to mount saying that it couldn't create a directory at /media/.
And when I tried to write anything on /media, the permission was denied.
When I try to mount it from 'Disks' utility, I got this error message:
(X) Error mounting filesystem
Error creating directory '/media/alien': Permission denied
(udisks-error-quark, 0)
The directory is shown as:
alien@R13:~$ ls -l / | grep media
alien@R13:~$ drwxr-xr-x 2 root root 0 Aug 3 13:10 media
I cannot create anything at /media/:
alien@R13:~$ touch /media/test
touch: cannot touch '/media/test': Permission denied
The problem is the same if I use "sudo" or "sudo su".
I chmod'ed /media to 777 but no use. And it turns back to 755 after a reboot.
I chown'ed /media to my user account (alien) from root, and the permission problem wasn't solve either.
I'm trying to find the solution since yesterday with no luck.
Thanks!