Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4907

Beginners • Re: Hard Drive Permissions

$
0
0
Thank you for all your replies to my problem.
I don't know what exactly are you doing, but when I have permission troubles in linux I use chown and chmod

For example:

I mount new HDD (as a root) to /media/newHDD

Open in terminal /media folder (as root)

Use ls -la to see current permisions and ownership of files and folders in current directory

If I want to change the ownership of the folder newHDD I run chown --recursive user:user newHDD (I use --recursive option to change the ownership of all files and folders inside the newHDD folder)


chmod uses r (read) w (write) x (execute) for owner, group and others
You can see this with ls -la command

Here is the table:

| r | w | x |
| 1 | 1 | 1 | - 7
| 1 | 1 | 0 | - 6
| 1 | 0 | 1 | - 5
| 1 | 0 | 0 | - 4
| 0 | 1 | 1 | - 3
| 0 | 1 | 0 | - 2
| 0 | 0 | 1 | - 1
| 0 | 0 | 0 | - 0

So, if I want to give permissions to read write and execute to all (owner, group and others), I need to use:
chmod --recursive 777 newHDD


Using this method I managed to get Transmisison to download to the SSD, and was able to move files around the SSD. However when I ran Sudo update and upgrade I lost the abilty to move files around folders. This isn't a big problem now, as Samba via my tablet will let me achieve this.
What I have found is that when my Pi reboots with my inital HDD is attatched, it doesn't boot to the desktop, instead it boots into emergency mode. When I unplug and reboot it loads up fine. Does the order the disks in Fstab play a role?

Statistics: Posted by jsr22788 — Sat Apr 20, 2024 12:23 pm



Viewing all articles
Browse latest Browse all 4907

Trending Articles