Score:0

How to give a permenant permission for a disk?

mu flag

I have hdd that has been mounted to a new folder Backup that I created in /media

/dev/sda1 15T 28K 14T 1% /media/Backup

But I am not able to create any folder and the permission is as follows enter image description here

I tried to give full access by root terminal

root@workstation1:~# sudo chmod -R -v 777 /media/Backup/
mode of '/media/Backup/' retained as 0777 (rwxrwxrwx)
mode of '/media/Backup/lost+found' changed from 0700 (rwx------) to 0777 (rwxrwxrwx)

and

sudo chmod 777 /mnt/hdd

I can create the folder, but it seems I do not have full permission to this HDD, and after restarting the system, again I cannot create any folder.

I have two drives mounted to folder /mnt: /mnt/hdd, and /mnt/ssd;The /media/Backup is the mount for /mnt/hdd.

How can I resolve this issue by giving full access to this hdd drive?

waltinator avatar
it flag
First, don't use `/media`, you and the automounter will confuse each other. If it's for systemwide use, `sudo mkdir -p /mnt/mydisk`, if it's just for your use, `mkdir -p $HOME/mnt/mydisk`. Read `man fstab sudoedit`, you can mount the disk with the UID:GID you desire.
sudodus avatar
jp flag
What file system is there in the partition on the disk? If a Linux file system, you can use `chmod` to set the permissions and `chown` to set the ownership. If a Microsoft file system (NTFS, FAT32, exFAT), you set the permissions when mounting it (with mount options) according to [this link](https://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition/956072#956072).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.