You are not logged in.

#1 2016-03-23 13:21:02

jeff
Member
Registered: 2016-02-23
Posts: 12

Print file from USB

Today I copied a slc file to my USB and tried to select the file from Plates/Add From USB, however I could not find it in the drop-down, is there any missing step?

Note I can list the USB files from pi terminal.

Thx

Offline

#2 2016-03-23 17:44:10

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

Make sure usbmount has been installed by typing below command on terminal.

sudo apt-get install usbmount

It list files on /media/usb folder. If the problem persist, please, attach result of command below.

ls la /media

Offline

#3 2016-03-24 14:00:21

jeff
Member
Registered: 2016-02-23
Posts: 12

Re: Print file from USB

I'm not able to get the files still, maybe it's due to NTFS format of my USB.


pi@raspberrypi:/ $ ls -la /media
total 40
drwxr-xr-x 10 root root 4096 Mar 24 21:28 .
drwxr-xr-x 21 root root 4096 Mar  4 23:17 ..
lrwxrwxrwx  1 root root    4 Mar 24 21:28 usb -> usb0
drwxr-xr-x  2 root root 4096 Mar 24 21:28 usb0
drwxr-xr-x  2 root root 4096 Mar 24 21:28 usb1
drwxr-xr-x  2 root root 4096 Mar 24 21:28 usb2
drwxr-xr-x  2 root root 4096 Mar 24 21:28 usb3
drwxr-xr-x  2 root root 4096 Mar 24 21:28 usb4
drwxr-xr-x  2 root root 4096 Mar 24 21:28 usb5
drwxr-xr-x  2 root root 4096 Mar 24 21:28 usb6
drwxr-xr-x  2 root root 4096 Mar 24 21:28 usb7

Offline

#4 2016-03-24 16:34:03

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

Could you post below command's output too?

ls -la /media/usb

Actually it looks like kind of bug to me, maybe we do skip some filenames or etc.

Offline

#5 2016-03-25 14:05:27

jeff
Member
Registered: 2016-02-23
Posts: 12

Re: Print file from USB

pi@raspberrypi:~ $ ls -la /media/usb
lrwxrwxrwx 1 root root 4 Mar 24 21:28 /media/usb -> usb0

Well, it seems a problem with usbmount. But the usb device does attached. Here is last portion from /var/log/messages

Mar 25 21:51:53 raspberrypi kernel: [   50.154905] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
Mar 25 21:51:53 raspberrypi kernel: [   50.256744] usb 1-1.2: New USB device found, idVendor=0930, idProduct=6545
Mar 25 21:51:53 raspberrypi kernel: [   50.256769] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 25 21:51:53 raspberrypi kernel: [   50.256785] usb 1-1.2: Product: TransMemory-Mx
Mar 25 21:51:53 raspberrypi kernel: [   50.256800] usb 1-1.2: Manufacturer: TOSHIBA
Mar 25 21:51:53 raspberrypi kernel: [   50.256815] usb 1-1.2: SerialNumber: FFFFFFFFFFFFED61E0001FD5
Mar 25 21:51:53 raspberrypi kernel: [   50.257943] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Mar 25 21:51:53 raspberrypi kernel: [   50.262710] scsi host0: usb-storage 1-1.2:1.0
Mar 25 21:51:54 raspberrypi kernel: [   51.255981] scsi 0:0:0:0: Direct-Access     TOSHIBA  TransMemory-Mx   PMAP PQ: 0 ANSI: 6
Mar 25 21:51:54 raspberrypi kernel: [   51.257606] sd 0:0:0:0: [sda] 30464640 512-byte logical blocks: (15.6 GB/14.5 GiB)
Mar 25 21:51:54 raspberrypi kernel: [   51.258139] sd 0:0:0:0: [sda] Write Protect is off
Mar 25 21:51:54 raspberrypi kernel: [   51.258672] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Mar 25 21:51:54 raspberrypi kernel: [   51.280520] sd 0:0:0:0: Attached scsi generic sg0 type 0
Mar 25 21:51:55 raspberrypi kernel: [   51.389386]  sda: sda1
Mar 25 21:51:55 raspberrypi kernel: [   51.391917] sd 0:0:0:0: [sda] Attached SCSI removable disk

Offline

#6 2016-03-25 18:59:32

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

jeff,

It is correct, it is a softlink.  Could you send output of this command too?

ls -la /media/usb0

And screenshot from "add from usb" page

Offline

#7 2016-03-26 15:02:00

jeff
Member
Registered: 2016-02-23
Posts: 12

Re: Print file from USB

Thanks for your quick response! The folder is empty.

pi@raspberrypi:~ $ ls -la /media/usb0
total 8
drwxr-xr-x  2 root root 4096 Mar 24 21:28 .
drwxr-xr-x 10 root root 4096 Mar 24 21:28 ..

addfromusb.png

usbmount configuration:

ENABLED=1
MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
             /media/usb4 /media/usb5 /media/usb6 /media/usb7"

FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus ntfs"
MOUNTOPTIONS="sync,noexec,nodev,noatime"
FS_MOUNTOPTIONS="-fstype=vfat,gid=floppy,dmask=0007,fmask=0117"
FS_MOUNTOPTIONS="-fstype=ntfs,gid=floppy,dmask=0007,fmask=0117"

Offline

#8 2016-03-26 15:45:07

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

Where is your flash mounted? /media/usbn?

Offline

#9 2016-03-27 15:24:58

jeff
Member
Registered: 2016-02-23
Posts: 12

Re: Print file from USB

I can't see any file in any /media/usbn folder, so to me it's not a bug of your software but somewhere broken between usbmount and the raspbian. I'll take a close look.

Last edited by jeff (2016-03-27 15:25:57)

Offline

#10 2016-08-09 11:42:52

RogerP
Member
Registered: 2016-04-22
Posts: 20

Re: Print file from USB

I am having the same problem, but I can list the content of the my pendrive using a terminal and the comand: "ls -la /media/usb0"
However when I use "Add from USB" on nanodlp the drop-down field is empty.
How can I fix it?

Offline

#11 2016-08-09 19:05:03

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

Roger,

Could you share output of the "ls -la /media/usb0" command?

Offline

#12 2016-08-09 21:17:11

RogerP
Member
Registered: 2016-04-22
Posts: 20

Re: Print file from USB

Thanks for the reply.

pi@raspberrypi:~ $ ls -la /media/usb0
total 24116
drwxr-xr-x  7 root root    16384 Dec 31  1969 .
drwxr-xr-x 11 root root     4096 Apr 26 10:21 ..
-rwxr-xr-x  1 root root  8284284 Aug  8 14:54 40_mc_transp.stl
drwxr-xr-x  3 root root    16384 May 19 13:55 New_DLP
-rwxr-xr-x  1 root root 16024600 Feb  5  2015 RunSanDiskSecureAccess_Win.exe
drwxr-xr-x  2 root root    16384 Feb 23  2015 SanDiskSecureAccess
drwxr-xr-x  2 root root    16384 Oct 28  2015 System Volume Information
drwxr-xr-x  2 root root    16384 Jul 14 08:02 VAT
drwxr-xr-x  2 root root    16384 Jan 11  2016 calibrar
-rwxr-xr-x  1 root root   257067 Aug  5 13:36 testebox.gcode

Offline

#13 2016-08-09 21:48:14

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

Bugfixed. Try beta version, thank you

Offline

#14 2016-08-09 21:59:36

RogerP
Member
Registered: 2016-04-22
Posts: 20

Re: Print file from USB

Installed Build 1209.

Same problem: files listed via terminal, no drop-down options.

Offline

#15 2016-08-09 22:14:03

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

It is very strange, add a svg or slc file to the usb stick and see if they being displayed or not.

Offline

#16 2016-08-09 22:28:21

RogerP
Member
Registered: 2016-04-22
Posts: 20

Re: Print file from USB

The same.

I changed the file name and include a svg and scl file. Nothing on drop-down, but in terminal:

pi@raspberrypi:~ $ ls -la /media/usb0
total 25332
drwxr-xr-x  7 root root    16384 Dec 31  1969 .
drwxr-xr-x 11 root root     4096 Apr 26 10:21 ..
drwxr-xr-x  3 root root    16384 May 19 13:55 New_DLP
-rwxr-xr-x  1 root root 16024600 Feb  5  2015 RunSanDiskSecureAccess_Win.exe
drwxr-xr-x  2 root root    16384 Feb 23  2015 SanDiskSecureAccess
drwxr-xr-x  2 root root    16384 Oct 28  2015 System Volume Information
drwxr-xr-x  2 root root    16384 Jul 14 08:02 VAT
drwxr-xr-x  2 root root    16384 Jan 11  2016 calibrar
-rwxr-xr-x  1 root root   257067 Aug  5 13:36 testebox.gcode
-rwxr-xr-x  1 root root   615518 Aug  9 16:19 transp.svg
-rwxr-xr-x  1 root root   615518 Aug  9 16:19 transp40.slc
-rwxr-xr-x  1 root root  8284284 Aug  8 14:54 transp40.stl

Offline

#17 2016-08-10 19:06:36

RogerP
Member
Registered: 2016-04-22
Posts: 20

Re: Print file from USB

Hi Shahin, could you find the problem?

Offline

#18 2016-08-11 03:39:11

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

Yes, the most probably you have skipped installation of usbmount during nanodlp setup.
Connect to rpi terminal through putty and run command below.

sudo apt-get install usbmount

Offline

#19 2016-08-11 12:48:11

RogerP
Member
Registered: 2016-04-22
Posts: 20

Re: Print file from USB

I had it already installed so I decided to upgrade and update my RPi3.

Now it is working.

Thanks for your help

Offline

#20 2017-09-07 05:40:05

bman
Member
Registered: 2017-09-07
Posts: 11

Re: Print file from USB

I am having the same problem.  Updated rpi to build 1589 and still no joy.  Files appear in terminal, but not in nanodlp "add from USB" menu.

Offline

#21 2017-09-07 05:52:02

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

The issue has been fixed on build 1593

Offline

#22 2017-09-08 02:22:21

bman
Member
Registered: 2017-09-07
Posts: 11

Re: Print file from USB

When will build 1593 be available?  I updated nanodlp like a week ago and build 1589 is  what I automatically got.

Offline

#23 2017-09-08 04:58:37

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Print file from USB

Upgrade to the beta version.

Offline

Board footer

Powered by FluxBB