Possible to FTP to DietPi and get to /mnt?

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

the problem could be read/write access to the files located on your SD card. Because you like to move, means you need to delete the file. And this is possible with write permission only. Can you share the permission of the file you like to move
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 40
Joined: Fri Jan 08, 2021 2:23 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

In the folder there's a mix of folders, some that Radarr moved and some I did.

All the folders have one of these two permissions

Code: Select all

drwxrwxr-x 2 dietpi dietpi  
drwxrwx--- 2 dietpi dietpi 
The files inside the folders are all

Code: Select all

-rw-rw---- 1 dietpi dietpi
I've tried moving one of each folder type but get the same outcome.
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

just for my understanding. It's as well not working using FileZilla from a computer?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 40
Joined: Fri Jan 08, 2021 2:23 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

Yeah in my app I get a permission denied in filezilla on my PC nothing happens but in the log it will say something like:

Code: Select all

Command:	CWD /dietpi_userdata/Plex/Movies
Response: 	250 CWD command successful
Command:	RNFR Human Traffic (1999)
Response: 	350 File or directory exists, ready for destination name
Command:	RNTO /External/Movies/Human Traffic (1999)
Response: 	550 Rename /External/Movies/Human Traffic (1999): Is a directory
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

ok for me there is no issue on moving files from SD card to an external USB stick using FTP

tool used: WinSCP
file name: demo.file
source directory: /mnt/dietpi_userdata/downloads
target directory: /mnt/usb/
FTP root directory: /mnt

I did a full debug logging in SCP, below the short part for moving the file

Code: Select all

. 2021-03-16 22:07:40.426 Moving file "demo.file" to "/usb/demo.file".
> 2021-03-16 22:07:40.426 RNFR /dietpi_userdata/downloads/demo.file
< 2021-03-16 22:07:40.428 350 File or directory exists, ready for destination name
> 2021-03-16 22:07:40.428 RNTO /usb/demo.file
< 2021-03-16 22:07:40.431 250 Rename successful
. 2021-03-16 22:07:40.431 Got reply 1 to the command 128
. 2021-03-16 22:07:40.434 Retrieving directory listing...
> 2021-03-16 22:07:40.434 TYPE A
< 2021-03-16 22:07:40.435 200 Type set to A
> 2021-03-16 22:07:40.435 PASV
< 2021-03-16 22:07:40.437 227 Entering Passive Mode (192,168,0,12,142,37).
Before, I ensured all files and folders belong to user dietpi.

Question, are you able to create a demo file on SD card and try to delete it using FTP?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 40
Joined: Fri Jan 08, 2021 2:23 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

Thanks I just tried that, I can create a folder in /dietpi_userdata/Plex/Movies/ through filezilla and then upload a file from my PC to that folder and delete the file and folder through Filezilla.

I can do the same from my PC to my external drive in /mnt/External.

I just can't use Filezilla or my app (FE File Explorer) to move stuff from /dietpi_userdata/Plex/Movies/ to /mnt/External/Movies
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

pls try following via FTP

create following folder

Code: Select all

/dietpi_userdata/Plex/Movies/demo/
/mnt/External/Movies/demo/
create following file

Code: Select all

/dietpi_userdata/Plex/Movies/demo/demo.file
try to move demo.file into /mnt/External/Movies/demo/

What do you have in the filezilla log? Are there options to increase logging inside filezilla ?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 40
Joined: Fri Jan 08, 2021 2:23 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

That worked, I can move the demo.file between the demo directories using FTP. I can't see any options for anymore logging in filezilla

The only thing that's logged when I move the demo file is

Code: Select all

Status:      	Renaming '/dietpi_userdata/Plex/Movies/demo/demo.file' to '/External/Movies/demo/demo.file'
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

can you move the demo file between /mnt/dietpi_userdata/Plex/Movies and /mnt/External/Movies/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 40
Joined: Fri Jan 08, 2021 2:23 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

Yes, anything I create in FTP I seem to be able to move between the drivers fine it's just folders pre-existing folders and files I can't seem to move
Post Reply