Omega2 Pro don't mounting USB storage



  • Hello, my Omega2 Pro isn´t enable to mounting USB storage.
    Can´t find /tmp/mounts/ or USB-A1
    When I used Transmission I get an error message:
    "No space left on device"

    Please, any help!



  • @Lino-Amorim On OpenWrt 18.06 based Onion firmwares - for example an Omega2 Pro FW
    the auto-mount point of a USB pen drive (/dev/sda or /dev/sda1) is
    /mnt/sda or /mnt/sda1 respectively.

    See also "/tmp/mounts/" file does not exist or removed when upgrade firmware



  • Thank you!
    Do I have to replace "USB-A1" for "sda1" in the set ups of Transmission?...
    Or just mounting the USB storage with "/mnt/sda1" ?



  • @Lino-Amorim If the output of your mount | grep /dev/sda command is:
    /dev/sda1 on /mnt/sda1 ...

    then change /tmp/mounts/USB-A1/ to /mnt/sda1/ in transmission's configuration uci commands - for example:
    uci set transmission.@transmission[0].download_dir='/mnt/sda1/downloads'



  • Thank you, very much!
    All done!
    Last question:
    What is the command line to see the informations about the USB storage?



  • opkg install usbutils
    lsusb -v



  • @Lino-Amorim I think these are useful commands:

    ls -l /dev/sd*
    mount without parameters or mount | grep /dev/sda1
    df -hT or df -hT | grep /dev/sda1
    ls -lA /mnt, ls -lA /mnt/sda1, ...

    Some "technical" info:
    fdisk -l
    lsusb -v

    If you want to use the lsusb command: enable the second (2nd) line in the '/etc/opkg//distfeeds.conf' file and
    opkg update
    opkg install usbutils


    For example:
    Omega2+ FW v0.3.2 b232 with 8GB MicroSD card and 8GB FAT32 formatted USB pen drive with Expansion Dock
    This is a "fake" Omega2 Pro - using FW omega2pro-v0.3.2-b232.bin

    root@Omega-99A5:/# ls -l /dev/sd*
    brw-------    1 root     root        8,   0 Jan  1  1970 /dev/sda
    brw-------    1 root     root        8,   1 Jan  1  1970 /dev/sda1
    
    root@Omega-99A5:/# mount | grep /dev/sda1
    /dev/sda1 on /mnt/sda1 type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
    
    root@Omega-99A5:/# df -hT | grep /dev/sda1
    /dev/sda1            vfat            3.7G    388.9M      3.3G  10% /mnt/sda1
    
    root@Omega-99A5:/# ls -lA /mnt
    drwxr-xr-x    5 root     root             0 Jan  1  1970 mtdblock6
    drwxrwxrwx    4 root     root          4096 Nov 17 09:06 sda1
    root@Omega-99A5:/# ls -lA /mnt/sda1
    drwxrwxrwx    2 root     root          4096 Oct 20 16:30 System Volume Information
    drwxrwxrwx    3 root     root          4096 Nov 17 09:06 downloads
    -rwxrwxrwx    1 root     root     402653184 Oct 20 15:19 swap.page
    root@Omega-99A5:/# ls -lA /mnt/sda1/downloads
    drwxrwxrwx    3 root     root          4096 Nov 17 17:50 incomplete
    
    ###
    
    root@Omega-99A5:/# fdisk -l
    Disk /dev/mtdblock0: 192 KiB, 196608 bytes, 384 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mtdblock1: 64 KiB, 65536 bytes, 128 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mtdblock2: 64 KiB, 65536 bytes, 128 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mtdblock3: 15.7 MiB, 16449536 bytes, 32128 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mtdblock4: 1.5 MiB, 1572352 bytes, 3071 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mtdblock5: 14.2 MiB, 14876672 bytes, 29056 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mtdblock6: 6.6 MiB, 6881280 bytes, 13440 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mmcblk0: 7.3 GiB, 7861174272 bytes, 15353856 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x15d70756
    
    Device         Boot Start      End  Sectors  Size Id Type
    /dev/mmcblk0p1       8192 15353855 15345664  7.3G  b W95 FAT32
    
    
    Disk /dev/sda: 3.8 GiB, 4007657472 bytes, 7827456 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x04030201
    
    Device     Boot Start     End Sectors  Size Id Type
    /dev/sda1        1080 7827455 7826376  3.7G  c W95 FAT32 (LBA)
    
    ###
    
    root@Omega-99A5:/# lsusb
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 0951:1625 Kingston Technology DataTraveler 101 II
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
    
    root@Omega-99A5:/# lsusb -v
    
     ...
    Bus 001 Device 002: ID 0951:1625 Kingston Technology DataTraveler 101 II
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.00
      bDeviceClass            0 (Defined at Interface level)
      bDeviceSubClass         0 
      bDeviceProtocol         0 
      bMaxPacketSize0        64
      idVendor           0x0951 Kingston Technology
      idProduct          0x1625 DataTraveler 101 II
      bcdDevice           13.c6
      iManufacturer           1 Kingston
      iProduct                2 DT 101 II
      iSerial                 3 001CC0EC350DAA3047D83E05
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           32
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0x80
          (Bus Powered)
        MaxPower              200mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           2
          bInterfaceClass         8 Mass Storage
          bInterfaceSubClass      6 SCSI
          bInterfaceProtocol     80 Bulk-Only
          iInterface              0 
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x02  EP 2 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
    Device Qualifier (for other device speed):
      bLength                10
      bDescriptorType         6
      bcdUSB               2.00
      bDeviceClass            0 (Defined at Interface level)
      bDeviceSubClass         0 
      bDeviceProtocol         0 
      bMaxPacketSize0        64
      bNumConfigurations      1
    Device Status:     0x0000
      (Bus Powered)
     ...
    

Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.