Use second hard disk in samba network for storage Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
nanooker
Posts: 38
Joined: Sun Dec 06, 2020 7:41 pm

Re: Use second hard disk in samba network for storage

Post by nanooker »

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
User avatar
Joulinar
Posts: 4804
Joined: Sat Nov 16, 2019 12:49 am

Re: Use second hard disk in samba network for storage

Post by Joulinar »

ok the folder is owned by 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
you could try changing whole content of your HDD to belong to user 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
nanooker
Posts: 38
Joined: Sun Dec 06, 2020 7:41 pm

Re: Use second hard disk in samba network for storage

Post by nanooker »

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.
User avatar
Joulinar
Posts: 4804
Joined: Sat Nov 16, 2019 12:49 am

Re: Use second hard disk in samba network for storage

Post by Joulinar »

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
nanooker
Posts: 38
Joined: Sun Dec 06, 2020 7:41 pm

Re: Use second hard disk in samba network for storage

Post by nanooker »

Wonderful works perfectly. :D :D 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. :? :x
User avatar
Joulinar
Posts: 4804
Joined: Sat Nov 16, 2019 12:49 am

Re: Use second hard disk in samba network for storage

Post by Joulinar »

well it's already quite simple
  1. add drive to correct place
  2. 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
nanooker
Posts: 38
Joined: Sun Dec 06, 2020 7:41 pm

Re: Use second hard disk in samba network for storage

Post by nanooker »

:D :D
Thanks again!
Do I need to mark the post as done where?
And where should I send the box of wine / beer? :)
User avatar
Joulinar
Posts: 4804
Joined: Sat Nov 16, 2019 12:49 am

Re: Use second hard disk in samba network for storage

Post by Joulinar »

I marked it as solved already.

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
nanooker
Posts: 38
Joined: Sun Dec 06, 2020 7:41 pm

Re: Use second hard disk in samba network for storage

Post by nanooker »

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".
User avatar
Joulinar
Posts: 4804
Joined: Sat Nov 16, 2019 12:49 am

Re: Use second hard disk in samba network for storage

Post by Joulinar »

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
Post Reply