Trying to use dietpi as an offline NAS

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
alex165
Posts: 4
Joined: Mon Aug 16, 2021 8:13 pm

Trying to use dietpi as an offline NAS

Post by alex165 »

Hello all,

I am running a Raspberry Pi 4 4gb and am wanting to use dietpi to serve as a offline NAS. I am currently booting dietpi of a Samsung T5 SSD. I am trying to set up a mount point using drive manager, but i get prompted to set up a samba file server. I set the file server address as the ip address of the server and the samba share fails to create. I already have Plex and the wifi hotspot installed. I will post screen shots of the error when i get home. Sorry for the hopefully easy question/. If there is an easier way to accomplish this, i am all ears.

I am trying to follow these steps: https://www.reddit.com/r/PleX/comments/ ... _off_grid/

Thanks in advance
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Trying to use dietpi as an offline NAS

Post by Joulinar »

Probably wrong thinking. Drive manager will not setup any samba server. It will try to connect your system as client to another server.

To setup an own samba server, you would need to open dietpi-software, select Samba as file server and hit install.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
alex165
Posts: 4
Joined: Mon Aug 16, 2021 8:13 pm

Re: Trying to use dietpi as an offline NAS

Post by alex165 »

Ah, that makes sense, so then how would I go about creating a mount point. For example /mnt/media to have a tv shows folder and movies and the like?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Trying to use dietpi as an offline NAS

Post by Joulinar »

Samba install will create a default mount point on DietPi user data. This can be changed later on. Just have a look to our online docs on how to change destination directory. https://dietpi.com/docs/software/file_servers/#samba
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
alex165
Posts: 4
Joined: Mon Aug 16, 2021 8:13 pm

Re: Trying to use dietpi as an offline NAS

Post by alex165 »

So add samba from the add software list, then change the default location. Then tell Plex and whatever other apps I want to use where to find the media?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Trying to use dietpi as an offline NAS

Post by Joulinar »

theoretically yes, just select the file server inside dietpi-software
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
alex165
Posts: 4
Joined: Mon Aug 16, 2021 8:13 pm

Re: Trying to use dietpi as an offline NAS

Post by alex165 »

Is it possible to change the samba user data location to move it up a level, so it could be /mnt/media/movies vs. /mnt/dietpi-user data/movies? If not it’s not a big thing, just a curiosity at this point.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Trying to use dietpi as an offline NAS

Post by Joulinar »

just have a look to the online docs I linked. There it is described how to change the destination folder. It can be anything you like. Just ensure proper access for default dietpi user.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Reds
Posts: 34
Joined: Thu Feb 20, 2020 5:59 pm

Re: Trying to use dietpi as an offline NAS

Post by Reds »

If you're struggling configuring Samba users, Shares, permissions etc, I recommend installing WebMin and using its GUI. Makes it easier to setup Samba config and understand how it works before dipping back into the CLI and Samba's conf files.
Post Reply