New user with lot of problems need help please

Having issues with your DietPi installation, or, found a bug? Post it here.
razvanrudy
Posts: 1
Joined: Sun Jan 13, 2019 4:47 pm

New user with lot of problems need help please

Post by razvanrudy » Sun Jan 13, 2019 10:13 pm

Hi all as per title I just start using Dietpi and have some problems.
My only previous experience is with OMV and this was for only 3-4 months.
I just build a XU4 and Cloudshell 2 box running the OS on 16GBeMMC , attached 2 x 3TB HDD and run it headless.
The installation was pretty easy and selected for now Emby server , Nextcloud , OpenVpn , Samba , Docker and Cloudshell.
Emby is working well but except that evrything else can't figure out how to sort out.
First and main problem Samba : I moved the user data on one of the HDD , I can acces it on my windows PC but no way that I can see what I allready have on my both HDD. How can I mount the 2 HDD so I can see the data I allready have on them and not only the user data ? Both HDD are mounted and the one without user data is my media HDD ( Emby can see it and play media from it)
Second problem is the Cloudshell not starting after reboot. On boot it shows the booting info and then stops on root login. To start the Cloudshell I have to SSH and manually start the Cloudshell script so I can get the CPU ,HDD,temp and all other info. I can see it on auto start menu ( dieypi-launcher) but no option to change autostart or manual start.
Third problem I don't know how to use docker on Dietpi - on OMV it's integrated on the webpage so is very easy to use but on Dietpi can't find something similar. Is there something else I need to install to get that web like interface?

Sorry for the long post but trying to get everything up and running. I was very happy to see that Dietpi fully supports the Cloudshell display and the XU4 , and this was the main reason I give up on OMV.

User avatar
WarHawk
Posts: 492
Joined: Thu Jul 20, 2017 7:55 am

Re: New user with lot of problems need help please

Post by WarHawk » Mon Jan 14, 2019 4:01 am

You might have to create a diretory in /mnt/dietpi_userdata, then use fstab to mount the 2nd HDD to that directory so this way dietpi can see/use that directory like it's native to /mnt/dietpi_userdata...unless maybe a link to it would work

The DEV's might be able to assist...at a loss really

are there any errors in /var/log for the stuff that isn't starting?

User avatar
MichaIng
Legend
Posts: 1025
Joined: Sat Nov 18, 2017 5:21 pm

Re: New user with lot of problems need help please

Post by MichaIng » Tue Jan 15, 2019 9:43 pm

Generally /mnt/dietpi_userdata should be moved via dietpi-drive_manager. But from what I understood the issue is accessing the data from Windows?

What file system did you format the drives with? ext4, the default on DietPi (and generally Linux systems) cannot be read by Windows. NTFS work on both, although it has limited permission features on Linux. If you format a drive with NTFS via dietpi-drive_manager, we add it to fstab with some permissions workaround so that you can store userdata there and it should work with our software.

To have the correct fstab entry it is even sufficient just start dietpi-drive_manager unmount and remount the related NTFS drive/partition. So no format is required.

About the login prompt, even that you selected an auto-login option from dietpi-autostart is recognized and we are investigation what causes this. Something with systemd seems to have changed: https://github.com/Fourdee/DietPi/issues/2404

By default on DietPi docker is installed headless, so without any UI besides CLI. I did a quick search and there seems to be a web UI that can be installed an runs as a separate docker container. Perhaps this (or something similar) is pre-installed on OMV.
Check: https://linoxide.com/linux-how-to/setup ... ce-docker/
When installed docker via dietpi-software, start from step 3 to install the UI.

Report back if this works well, so we could add it to dietpi-software as an optional/separate install.

redjr
Posts: 9
Joined: Mon Sep 03, 2018 5:06 am

Re: New user with lot of problems need help please

Post by redjr » Sun Jan 27, 2019 7:59 pm

I've finally dragged my Cloudshare2 Odroid X4U box off the shelf to see if I could get it going. It has 2 x 1TB drivers installed. I've installed DietPi and the Samba server software. I then used dietpi-drive manager to format the 2 drives as NTFS, I also mounted the 2 drives.

What I'm trying to do is simply use the Cloudshare device as a NAS box, but I cannot get Windows 10 to recognize or 'see' the drives. Is there something else I need to do in DietPi to complete the setup of the Samba Server? I can struggle my way around Linux, but I must say, Dietpi has saved me from a lot of grief. Is there something simple I'm missing? At the moment, I've got the little 2.5" LCD showing the Dietpi Cloudshell stats, but I don't really need that working - if I have to sacrifice the display for the Samba server operating in headless mode.

Rick

User avatar
MichaIng
Legend
Posts: 1025
Joined: Sat Nov 18, 2017 5:21 pm

Re: New user with lot of problems need help please

Post by MichaIng » Sun Jan 27, 2019 8:12 pm

Samba works independently from Cloudshell, so you can run both beside each other. This is actually something where DietPi takes special care, to not make the device a single-use machine, but allow to run multiple software in parallel without interfering.

Note that, when installing the Samba server via dietpi-software, by default it shares /mnt/dietpi_userdata, but no external drives.

This can be changed inside /etc/samba/smb.conf.
You can add each drive as separate share, but if you need access to multiple external drives, it is easiest to share the whole /mnt dir. For this replace beneath [dietpi] the line path = /mnt/dietpi_userdata with path = /mnt
Also read viewtopic.php?f=8&t=5&start=10#p56 about this.

Also note that NTFS is not required nor recommended, if you only share the drive via Samba to Windows, instead use default ext4 files system then. Only if you want to attach and access the drive(s) directly to/from a Windows machine by times, NTFS is required.

redjr
Posts: 9
Joined: Mon Sep 03, 2018 5:06 am

Re: New user with lot of problems need help please

Post by redjr » Sun Jan 27, 2019 8:53 pm

Silly question. I'm now trying to unmount the drives and the manager won't let me. Says the drive is busy. I want to reformat as EXT4 and they must be unmounted first. Correct?

User avatar
MichaIng
Legend
Posts: 1025
Joined: Sat Nov 18, 2017 5:21 pm

Re: New user with lot of problems need help please

Post by MichaIng » Sun Jan 27, 2019 8:55 pm

Jep they must be unmounted first. Hmm check htop if there is something active accessing the drive. You did not yet configure Samba to access them, right? Otherwise you need to stop the Samba server. Also if you moved the swap file to an external drive, this needs to be disabled first.

Did you try unmounting via dietpi-drive_manager? This will stop most services (inkl. Samba) automatically and give a hint in case of active swap file.

redjr
Posts: 9
Joined: Mon Sep 03, 2018 5:06 am

Re: New user with lot of problems need help please

Post by redjr » Sun Jan 27, 2019 9:10 pm

I haven't done anything since the previous post. Thought I would reformat first. Don't see Samba running. Do I have to do something to start Samba, or will dietpi start it automagically?

redjr
Posts: 9
Joined: Mon Sep 03, 2018 5:06 am

Re: New user with lot of problems need help please

Post by redjr » Sun Jan 27, 2019 9:11 pm

DId not move the swap drive.

redjr
Posts: 9
Joined: Mon Sep 03, 2018 5:06 am

Re: New user with lot of problems need help please

Post by redjr » Sun Jan 27, 2019 9:17 pm

I'm now trying to unmount the drives and the drive_manager won't let me. Says the drive is busy.

Post Reply