[SOLVED] SFTP "could not display

Hi,
I run Opensuse on my boxes. I use sftp between them to transfer files. To do so, I use Nautilus/Caja file manager, I enter the address in the location area ie: sftp://user@192.168.1.100/home/
This is working fine I can transfer files.

I want to the same with the USB HDD connected to the router ver. 18.06.2
I installed openssh-sftp-server
Now I can do : sftp://root@192.168.1.1/ and I can go in folders but
I can't open the mount point sftp://root@192.168.1.1/dev/sda1 it output an error message
"Could not display sftp://root/192.168... There is no application installed for block devices files. Do you want to search for an application to open this file?"
When I enter yes or no nothing happen.
How to fix this issue?
Thank you

https://openwrt.org/docs/guide-user/storage/usb-drives#automount_the_partition

2 Likes

This is the location of the block file that represents physical sectors on the disk, it is not the mount point for the filesystem stored on that disk. Use the df command to see a summary of mounted filesystems, you may not have mounted it yet!

4 Likes

block info
command is useful also

Thank you both,
I don't understand,

df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 3072      3072         0 100% /rom
tmpfs                   255980      1184    254796   0% /tmp
/dev/ubi0_1             100232      1528     93868   2% /overlay
overlayfs:/overlay      100232      1528     93868   2% /
tmpfs                      512         0       512   0% /dev

block info
/dev/mtdblock6: UUID="1431149825" VERSION="1" TYPE="ubi"
/dev/mtdblock8: UUID="469652220" VERSION="1" TYPE="ubi"
/dev/ubiblock0_0: UUID="f63bfda8-24a5f795-1181c070-5fc5daba" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"
/dev/ubi0_1: UUID="e51d1679-2acd-41f5-8e89-2f6e14b1acef" VERSION="w4r0" MOUNT="/overlay" TYPE="ubifs"
/dev/sda1: UUID="e32de9ff-2897-420a-9a8b-e3339dcaeec0" LABEL="HD5" VERSION="1.0" TYPE="ext4"

uci show fstab
fstab.@global[0]=global
fstab.@global[0].anon_swap='0'
fstab.@global[0].anon_mount='0'
fstab.@global[0].auto_mount='1'
fstab.@global[0].delay_root='5'
fstab.@global[0].check_fs='0'
fstab.@global[0].auto_swap='0'
fstab.@mount[0]=mount
fstab.@mount[0].enabled='1'
fstab.@mount[0].uuid='e32de9ff-2897-420a-9a8b-e3339dcaeec0'
fstab.@mount[0].target='/dev/sda'

In LUCI I added the mount point UUID: e32de9ff-2897-420a-9a8b-e3339dcaeec0 (/dev/sda1, 3815446 MB) /dev/sda ext4 defaults no no
I was thinking /dev/sda is the mount point!

What is my mistake?

uci set fstab.@mount[0].target="/mnt/sda1"
uci commit fstab
service fstab boot

FYI

uci set fstab.@mount[0].target="/mnt/sda1"
root@OpenWrt:~# uci commit fstab
root@OpenWrt:~# service fstab boot
block: /dev/ubiblock0_0 is already mounted on /rom
block: /dev/ubi0_1 is already mounted on /overlay
block: /dev/sda1 is already mounted on /mnt/sda1

Working fine now
Thank you a lot vgaetera
solved

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.