February 23, 2023, 5:50pm
I’ve never really done that so i’m not sure how to.
It’s recognized in Dolphin as a disk, i formatted it to btrfs like the others, and mounted it to /home/user/Data - all in partition manager.
But if i drag a file to the disk directly, it says it can’t write to it, access denied, and the “Data” folder i created seems to just be on the nvme that has the OS on it…
February 23, 2023, 6:08pm
Start a terminal. In the terminal go to (using the cd command) folder starting as /run/media/ (press the Tab button a few times until it does not change the path).
Then become root with one of:
su # wants root password
sudo su # wants a sudo-user password
Now you can create a folder and set its permissions:
mkdir some-folder # change the name "some-folder" to something useful
chown username:username some-folder
The last command changes the ownership of the folder, and “username” should be your account name.
and can close the terminal if needed.
Now you should be able to write into the folder you just created.
February 23, 2023, 6:23pm
Hmm, did that, created a folder, chowned it, then with partition manager mounted the drive to that folder, still access denied…
February 23, 2023, 6:36pm
Can you show the output of
on the mount point?
Also, the output of
February 23, 2023, 6:38pm
drwxr-xr-x 1 root root 0 Feb 23 18:22 .
drwxr-x---+ 4 root root 80 Feb 23 19:21 ..
This was done inside the newly created Data directory, i assume this is what you mean.
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs tmpfs 16G 15M 16G 1% /dev/shm
tmpfs tmpfs 6.2G 1.6M 6.2G 1% /run
/dev/nvme1n1p2 btrfs 456G 94G 362G 21% /
/dev/nvme1n1p2 btrfs 456G 94G 362G 21% /home
/dev/nvme1n1p2 btrfs 456G 94G 362G 21% /var/cache
/dev/nvme1n1p2 btrfs 456G 94G 362G 21% /var/log
tmpfs tmpfs 16G 14M 16G 1% /tmp
/dev/nvme1n1p1 vfat 999M 75M 924M 8% /efi
tmpfs tmpfs 3.1G 64K 3.1G 1% /run/user/1000
/dev/sda1 btrfs 233G 111G 122G 48% /run/media/veprovina/Backup
/dev/nvme0n1p1 btrfs 466G 3.8M 464G 1% /run/media/veprovina/Data
February 23, 2023, 6:39pm
Yes, the owner is root, not an ordinary username. The owner and group needs changing.
See the manual pages:
February 23, 2023, 6:42pm
Ah, ok. I’ll look it up and see what i can do, thanks!
February 23, 2023, 6:44pm
Something like this as normal user:
sudo mkdir -p some-folder
sudo chown $USER:$USER some-folder
EDIT: fixed a typo!
February 23, 2023, 6:55pm
Cool, i’ll try it later.
If nothing else - it’s a completely new OS install, i can just reinstall and let the installation process do it for me…
EDIT: Yeah, i can make a folder in terminal, but can’t copy anything into it from Dolphin, just from terminal. It’s something about ownership it seems. Root owns it but my user doesn’t.
February 24, 2023, 12:57am
Figured it out!
The drive didn’t have a label. I should have
chown the drive’s ID or label, not the folder it’s mounted to.
For simplicity, i labeled the drive the same as the folder and now i can copy to it.
I also set “users can mount and unmount” in partition manager.
Anyway, works now, i can write to it.
February 26, 2023, 12:57am
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.