hi, I think I've managed to sort out my second hard drive to show up in the system, but, when I try to save a photo there from my desktop, I get these error messages. What permissions where and what do i do about it?

hi, I think I've managed to sort out my second hard drive to show up in the system, but, when I try to save a photo there from my desktop, I get these error messages. What permissions where and what do i do about it?
Brave A.I. solution:
Changing Linux Drive Permissions
When you encounter a "Permission Denied" error while trying to save files on a drive in Linux, you can resolve this issue by changing the file or directory permissions using the chmod
command. Additionally, you might need to change the ownership of the files or directories to your user account using the chown
command.
To change the permissions of a directory or file, use the following command:
sudo chmod -R 755 /path/to/drive
This command sets the permissions to allow the owner to read, write, and execute, while allowing the group and others to read and execute. Adjust the permissions as needed for your specific situation.
To change the ownership of the drive to your user account, use:
sudo chown -R yourusername:yourgroupname /path/to/drive
Replace yourusername
and yourgroupname
with your actual username and group name. This will ensure that you have the necessary permissions to save files on the drive.
If you are unsure of your user and group names, you can find them using the id
command:
id
These steps should help you resolve the "Permission Denied" error and allow you to save files on the drive in Linux.
That looks very useful. I may be back
Sorry to be so thick, but what does /path/to/drive mean?
You remember the permission denied screenshot? That is the path.
Is there an easy way he can get it rather than typing that whole thing out? I know if he types a few characters and hits tab it will fill in the rest for him but wondering of other ways a Linux master might share with us. Also the path would be /media/tom/1c9c4870-8706-4713-acee-yf4d831e75bd and not the /PXL-20250202_103900341(3).jpg at the end?
Correct. If Tombar uses the full path from the screenshot as suggested, he'll run into an error that the file doesn't exist.
Before running any commands, I think it's important to understand why is this even happening. For example, this type of error is common with drives formatted using Window's filesystem, NTFS. If Tombar is not sharing files with other Windows computers, it would be easier to format it as EXT4 (knowing that this would delete the files in there, so a backup prior to this is required).
Hi, I'm only using this file as a test one to see if I can copy it to my second hard drive to use the second one as a backup for stuff, rather than have it go to waste. Would I have to do this for every file?
Good point. I'm still using my HDD (going to wipe it on Mon/Tues since I'm off) but I don't have any permissions errors when I am accessing my new NVMe drive to copy things there in prep for wiping my HDD. But it is in Ext4. But in FreeBSD I need to su to access any drive or even partitions (that are not related to the FreeBSD install) on the same drive it's running on - however I think it's because that system is a lot less permissive as a default and I would need to set up permission. Which I'm not going to do because no one has any business messing with my drives or other partitions anyway, and if it's me I can just su.
No I'm pretty sure if you only have to change permission of the drive itself and then you can do whatever file you want. Is the drive formatted in NTFS or EXT4?
Don't know if this helps. I'm trying to copy stuff from this drive (SSD, boot) to the second one (2 Tb HD)
What I'm trying to do and why. I have a 2 Tb hard drive sitting there not getting used, so thought I'd try to copy stuff to it as a sort of backup, rather than have it go to waste.
But am happy for other ideas how to use it.
I've no idea if how I've formatted and partitioned it is correct - it used to have Linux bits and Windows bits
My external drives are all NTFS as some have old Windows backups but never had an issue. 4 external drives, 1 Tb Medion, 2 Buffalo drives (2Tb each), and a 4 Tb WD Elements.
Drive images having used Acronis for Windows, and Rescuezilla for GNU/Linux. Apart from that just copied /home completely to external drives, mainly Zorin.
I thought the way around the long path is to rename the drive in FSTAB?
I also have several NTFS drives that work without issues. I don't know why it is but there have been plenty of threads created for this very reason.
We can see an oddity in this case as well, as Tombar's external hard drive is formatted as EXT4, same as Zorin OS. This makes me think the only problem is hwo the drive was mounted, while the files stored in it will preserve the permission bits correctly.
@Tombar can you run:
ls -l /media
Ah. I'm happy now - since I fiddled around with the formatting and partitioning, I can now run both Timeshift and Lucky Backup to backup up to this second drive, which I couldn't before.
But any other ideas what I can do with this big space would be appreciated. In Windows, i used to install the OS and any programmes that refused to go elsewhere as C on my SSD, then programmes and Data as D and E on my second drive
Edit Lucky Backup claims the destination doesn't exist!
Sorry - I didn't see the bottom bit
Tom@OldMesh:~$ ls -l /media
total 4
drwxr-x---+ 4 root root 4096 Feb 9 10:26 tom
tom@OldMesh:~$
And what about? (should've asked this right away, sorry):
ls -l /media/tom
You silly billy! - of course you should! (I'm teasing - I have no idea what is going on with the different commands )
tom@OldMesh:~$ ls -l /media/tom
total 8
drwxr-xr-x 4 root root 4096 Feb 9 10:44 1c9c4870-8706-4713-acee-7f4d831e75bd
drwx------ 2 root root 4096 Jan 29 10:46 'Ultra Touch'
tom@OldMesh:~$
So what command would I use for a drive? I'm a total Linux virgin
No worries!
This is causing the problem. For whatever reason, the folder that is created is owned by root instead of your own user account, as it would be expected.
Did you modify anything else inside of Disks to make the mount automatically, perhaps? If you select the drive and then click on the wheel icon there should be an option called "Mount options" or something similar. Can you show that?