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 »

I have saved the folders and files on another hard drive. Independent of dietpi raspberry.
the size is 56 GB. So the disk cannot be full as indicated.
I don't think I'm bothering you any more. Somehow I don't get the results. I'll try a new installation
Attachments
logfile.png
error backup.png
error backup.png (15.68 KiB) Viewed 489 times
nanooker
Posts: 38
Joined: Sun Dec 06, 2020 7:41 pm

Re: Use second hard disk in samba network for storage

Post by nanooker »

How do I integrate the two hard disks correctly during a new installation so that they are recognized in the network?
One disk should contain the user data, boot and my files and folders, the second should only be used to store backups?
Is it better to plug in the disks before the installation or after?
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: Use second hard disk in samba network for storage

Post by Joulinar »

doesn't matter at which status you connect the 2 HDD. Simply connect it to /mnt/hdd2/ and do you backup to /mnt/hdd2/dietpi-backup/

Question: why do you need access your backup drive via SAMBA?
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 »

to the question: I must admit "no idea" everything I see is just there! :)
i am too stupid for this world :(
The second disk is not visible in the network when I connect it with
mnt/HDD2.
It is only visible on the network when I mount it with
mnt/dietpi_userdata/HDD2
But in both cases the created backup is not visible.
I have now tried from the created backup as suggested
mnt/HDD2/dietpi-backup the restore. And lo and behold, the backup worked. Then that's ok, even if I don't see the backup file:)

Only I do not come , why is the disk visible when mounted with mnt/dietpi-userdata/HDD2 ? The user data and root are on the first disk ... ?
and with mnt/HDD2... not visible and can not do anything with the second disk.
With Linux it does not matter what I plug in. The disk or stick is always visible. I just do not get it.
Attachments
restore completed.png
drivemanager.png
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: Use second hard disk in samba network for storage

Post by Joulinar »

at the moment this is working as expected

By default you are sharing the directory /mnt/dietpi_userdata
Means, files/folders located inside this folder are visible via SAMBA

Your backup drive is mounted to /mnt/HDD2
Means it is not shared via SAMBA and therefore not visible

You can check the backup created ls -la /mnt/usb/dietpi-backup

Still the quest why do you like to see data from that backup?

If it is really needed to access you backup HDD2, you could change samba share export to /mnt

Code: Select all

sed -i '/path = /c\path = /mnt' /etc/samba/smb.conf
systemctl restart nmbd smbd
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 »

okay thank you so much for the awesome support!!! I got it :)
Sorry for the stupid questions!!!
It's hard to find someone with that much patience.
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: Use second hard disk in samba network for storage

Post by Joulinar »

you are welcome
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 »

I hope the last question
I now see the backup on the network. :)
how can I delete this? In the network I have no permission. and at dietpi-launcher I find nothing.
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: Use second hard disk in samba network for storage

Post by Joulinar »

the backup is owned by user root and you are not able to delete it via the SAMBA share is you login to SAMBA with a different usere.

This can be done on OS level if you login as root user or use sudo.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply