insgesamt 28
drwxr-xr-x 4 root root 4096 Feb 9 10:43 .
drwxrwxr-x 8 dietpi dietpi 4096 Feb 9 13:12 ..
drwxr-xr-x 3 root root 4096 Feb 9 10:43 dietpi_userdata
drwx------ 2 root root 16384 Feb 8 15:11 lost+found
Use second hard disk in samba network for storage Topic is solved
Re: Use second hard disk in samba network for storage
ok the folder is owned by user
you could try changing whole content of your HDD to belong to user
root
. But access on SAMBA is done by user dietpi
. Therefore is fine to have permission issues 
Code: Select all
drwxr-xr-x 3 root root 4096 Feb 9 10:43 dietpi_userdata
dietpi
Code: Select all
chmod -R dietpi:dietpi /mnt/dietpi_userdata/HDD2
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Use second hard disk in samba network for storage
issue:
issue
chmod: Invalid mode: "dietpi:dietpi"
"chmod --help" provides more information.
root@yellowsnow:~# chmod -R dietpi:dietpi /mnt/dietpi_userdata/HDD2
chmod: Invalid mode: "dietpi:dietpi"
"chmod --help" provides further information.
issue
chmod: Invalid mode: "dietpi:dietpi"
"chmod --help" provides more information.
root@yellowsnow:~# chmod -R dietpi:dietpi /mnt/dietpi_userdata/HDD2
chmod: Invalid mode: "dietpi:dietpi"
"chmod --help" provides further information.
Re: Use second hard disk in samba network for storage
ah sorry my fault
Code: Select all
chown -R dietpi:dietpi /mnt/dietpi_userdata/HDD2
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Use second hard disk in samba network for storage
Wonderful works perfectly.
Hopefully I still know that next time or a possible reinstallation. I guess it can not be simpler?
Thank you very much for the help. I would never have managed alone.



Thank you very much for the help. I would never have managed alone.


Re: Use second hard disk in samba network for storage
well it's already quite simple

- add drive to correct place
- use correct permissions

Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Use second hard disk in samba network for storage


Thanks again!
Do I need to mark the post as done where?
And where should I send the box of wine / beer?

Re: Use second hard disk in samba network for storage
I marked it as solved already.
If you like to support the entire project, simple follow this link https://dietpi.com/#donate
If you like to support the entire project, simple follow this link https://dietpi.com/#donate
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Use second hard disk in samba network for storage
Sorry I have to ask again
I wanted to create a backup on the second hard drive.
This apparently does not work because of "mnt/userdata".
I wanted to create a backup on the second hard drive.
This apparently does not work because of "mnt/userdata".
Re: Use second hard disk in samba network for storage
pls can you be a little bit more specific what you have tried and what was the error you faced.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team