Trouble moving userdata

Complete noob at this so be gentle. Just got my Pi 3 and really fascinated by it so far.

I will try to explain what is happening as best as I can…

I have been trying to get DietPi and Plex setup this weekend (with attached USB HDD).

1.DietPi tells me that my userdata is here: User Data Location [Custom | /mnt/Plex/dietpi_user

2.When i try to transfer userdata i get : ERROR: source directory /mnt/Plex/dietpi_userdata does not exist.

  1. When i try to install Plex for DietPi i get : Error: DietPi-Userdata validation
    DietPi was unable to verify the existence of the userdata directory (/mnt/Plex/dietpi_userdata).

I think this got started because I had everything installed once and ran into some problems, then tried to back everything out and then do it again, so I know that I have screwed up something somewhere.

If someone could help me out, I would appreciate it.

Like I said, completely new at this so if there is a solution, dumb it down for me as much as possible,LOL. It may be obvious to you but it will not be for me probably.

Thanks!

I am assuming the following:

  1. You used dietpi-drive_manager to mount your usb drive and you told it to mount the drive on /mnt/Plex
  2. In dietpi-drive_manager you clicked the selection to put the dietpi user directory in /mnt/Plex.

what is the output of

  1. ls -lah /mnt/
  2. cat /etc/fstab


    Also could you have a capitalisation issue? remember in linux /mnt/Plex is different than /mnt/plex

Hi,

Thanks for the help. I sent a reply to your questions last night, but don’t see it in the thread for some reason. I’ll try again.

  1. Correct
  2. Correct

what is the output of

  1. ls -lah /mnt/:
    total 32K
    drwxr-xr-x 8 root root 4.0K Nov 11 17:09 .
    drwxr-xr-x 21 root root 4.0K Sep 22 09:37 …
    drwxr-xr-x 2 root root 4.0K Nov 9 11:24 CCF6EAFBF6EAE4A4
    drwxrwxrwx 1 root root 4.0K Nov 11 15:07 DietPi
    lrwxrwxrwx 1 dietpi dietpi 25 Nov 10 06:58 dietpi_userdata → /mnt/Plex/dietpi_userdata
    drwxr-xr-x 2 root root 4.0K Mar 20 2018 ftp_client
    drwxr-xr-x 2 root root 4.0K Mar 20 2018 nfs_client
    drwxr-xr-x 2 root root 4.0K Nov 12 14:32 Plex
    drwxr-xr-x 2 root root 4.0K Mar 20 2018 samba

    \
  2. cat /etc/fstab
    total 32K
    drwxr-xr-x 8 root root 4.0K Nov 11 17:09 .
    drwxr-xr-x 21 root root 4.0K Sep 22 09:37 …
    drwxr-xr-x 2 root root 4.0K Nov 9 11:24 CCF6EAFBF6EAE4A4
    drwxrwxrwx 1 root root 4.0K Nov 11 15:07 DietPi
    lrwxrwxrwx 1 dietpi dietpi 25 Nov 10 06:58 dietpi_userdata → /mnt/Plex/dietpi_userdata
    drwxr-xr-x 2 root root 4.0K Mar 20 2018 ftp_client
    drwxr-xr-x 2 root root 4.0K Mar 20 2018 nfs_client
    drwxr-xr-x 2 root root 4.0K Nov 12 14:32 Plex
    drwxr-xr-x 2 root root 4.0K Mar 20 2018 samba
    root@DietPi:~# ^C
    root@DietPi:~# cat /etc/fstab
    #-----------------------------------------------------------
    #NETWORK
    #-----------------------------------------------------------
    #Please use DietPi-Drive_Manager to setup network mounts




    #-----------------------------------------------------------
    #TMPFS
    #-----------------------------------------------------------
    tmpfs /tmp tmpfs defaults,size=488M,noatime,nodev,nosuid,mode=1777 0 0
    tmpfs /DietPi tmpfs defaults,size=10m,noatime,nodev,nosuid,mode=1777 0 0
    tmpfs /var/log tmpfs defaults,size=50m,noatime,nodev,nosuid,mode=1777 0 0

#-----------------------------------------------------------
#MISC (bind)
#-----------------------------------------------------------


#-----------------------------------------------------------
#SWAPFILE
#-----------------------------------------------------------


#-----------------------------------------------------------
#PHYSICAL DRIVES
#-----------------------------------------------------------
PARTUUID=27504eef-02 / auto defaults,noatime,rw 0 1
PARTUUID=27504eef-01 /boot auto defaults,noatime,rw,nofail,x-systemd.automount 0 0
UUID=DA18EBFA09C1B27D /mnt/DietPi auto defaults,noatime,rw,nofail,x-systemd.automount,permissions 0 0

Thanks again for the help.

So it looks like your dietpi installation believes that the user data is stored in /mnt/Plex/dietpi_userdata

dietpi_userdata → /mnt/Plex/dietpi_userdata>>

However it looks like your external disk is mounted as /mnt/Dietpi
UUID=DA18EBFA09C1B27D /mnt/DietPi auto defaults,noatime,rw,nofail,x-systemd.automount,permissions 0 0

I would go into dietpi drive manager and select the / disk.
then move the userdata back to your / partition
then using drive-manager correct the mountpoint for your external disk.

the command df should show you were your disks are mounted.

You can also edit /etc/fstab and change
UUID=DA18EBFA09C1B27D /mnt/DietPi auto defaults,noatime,rw,nofail,x-systemd.automount,permissions 0 0
to
UUID=DA18EBFA09C1B27D /mnt/Plex/ auto defaults,noatime,rw,nofail,x-systemd.automount,permissions 0 0

Then

umount /mnt/Dietpi
mount /mnt/Plex

Then you can go back to drive manager and move your user data to /mnt/Plex/