Jump to content

Tetra Install to USB Storage option


Morgur

Recommended Posts

I’d like to install modules to a USB flash drive and am using the Tetra, v1.1.2, how do I get the Modules -> Manage Modules page to show up with an ‘Install to USB Storage’ button?   If that’s not supported in the GUI then how can I attached USB storage and use it for modules beyond just for the swap space?

I noticed a bug report asking for the removal of the install to internal storage button altogether but since there is a USB port which can be used with a flash drive or USB w/microSD card on the Tetra, the functionality should be supported just the same as it is on the Nano. 

bug ref: https://www.wifipineapple.com/bugs/438

 

In my case I’m plugging a USB flash drive directly into the USB port on the back. So far I’ve tried two different flash drives, a 32GB Samsung USB 3.0  MUF-32BB/AM and a 4GB USB 2.0 Generic. Configured an ext4 partition for the usb folder and a linux-swap partition. They show up fine, no problems or errors formatting or mounting.  However there’s still no option showing up in the GUI to install to USB storage. 

I’ve crawled through the forums and tried various suggestions with no luck so appreciate any guidance, what am I missing and is there a workaround?

 

——

 

ADVANCED / GUI menu

 

Firmware Upgrade (Current version: 1.1.2)

 

USB

Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp. Flash Drive

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

config 'global'

            option    anon_swap         ‘1’

            option    anon_mount       ‘1’

            option    auto_swap         '1'

            option    auto_mount        '1'

            option    delay_root          '5'

            option    check_fs           '0'

 

config 'mount'

            option    target                '/usb'

            option    device               '/dev/sda1'

            option    fstype               'ext4'

            option    options  'rw,sync'

            option    enabled '1'

 

config 'swap'

         option       device               '/dev/sda2'

         option       enabled             '1'

 

 

Resources 

Filesystem                Size      Used Available Use% Mounted on

rootfs                    1.8G     27.9M      1.8G   2% /

/dev/root                12.5M     12.5M         0 100% /rom

tmpfs                    61.5M    492.0K     61.0M   1% /tmp

/dev/ubi0_1               1.8G     27.9M      1.8G   2% /overlay

overlayfs:/overlay        1.8G     27.9M      1.8G   2% /

tmpfs                   512.0K         0    512.0K   0% /dev

/dev/sda1               979.4M      1.9M    910.2M   0% /usb

 

 

             total         used         free       shared      buffers

Mem:        125868        68864        57004          524         9708

-/+ buffers:              59156        66712

Swap:      1052252            0      1052252

 

-----------

 

CLI

 

root@Pineapple:/tmp# lsusb

Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp. Flash Drive

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

root@Pineapple:/tmp# fdisk -l /dev/sda

 

Disk /dev/sda: 4089 MB, 4089446400 bytes

255 heads, 63 sectors/track, 497 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks  Id System

/dev/sda1               1         131     1052226  83 Linux

/dev/sda2             132         262     1052257+ 82 Linux swap

 

root@Pineapple:/tmp# df -hT

Filesystem           Type            Size      Used Available Use% Mounted on

rootfs               rootfs          1.8G     27.9M      1.8G   2% /

/dev/root            squashfs       12.5M     12.5M         0 100% /rom

tmpfs                tmpfs          61.5M    492.0K     61.0M   1% /tmp

/dev/ubi0_1          ubifs           1.8G     27.9M      1.8G   2% /overlay

overlayfs:/overlay   overlay         1.8G     27.9M      1.8G   2% /

tmpfs                tmpfs         512.0K         0    512.0K   0% /dev

/dev/sda1            ext4          979.4M      1.7M    910.3M   0% /usb

 

 

root@Pineapple:/tmp# cat /etc/opkg.conf

 

dest root /

dest ram /tmp

 

lists_dir ext /var/opkg-lists

 

option overlay_root /overlay

 

dest usb /usb

 

 

root@Pineapple:/# dmesg | grep sda

[   20.490000] sd 0:0:0:0: [sda] 7987200 512-byte logical blocks: (4.08 GB/3.80 GiB)

[   20.490000] sd 0:0:0:0: [sda] Write Protect is off

[   20.500000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00

[   20.500000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA

[   20.520000]  sda: sda1 sda2

[   20.520000] sd 0:0:0:0: [sda] Attached SCSI removable disk

[   29.430000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: 

[   29.570000] Adding 1052252k swap on /dev/sda2.  Priority:-1 extents:1 across:1052252k 

root@Pineapple:/# 

 

 

 

 

Link to comment
Share on other sites

  • 1 year later...
  • 3 weeks later...

Hello friends, today I dug up my good old Pineapple. 
My idea was to use it as a home server and equip it with a 500GB hard drive from my old laptop.

I have read this form amount and thought I can help you with my approach so that you can easily install your 64 GB USB stick.


1. Choose SSH in your annanas and find your partitons of USB it's easy to use: "fdisk -l"
The result should look like this: /dev/sda1


2. Format the USB stick use: "mkfs.ext4 /dev/sda1"
Copy Filesystem UUID look like this: 381203b8-21fe-43e4-8d99-285a689eb3b2


3. I have created a new folder in the home environment for better orientation.
"cd .. && mkdir external_disk"


4. Now you just have to mount the USB stick like I did with my hard drive.
"mount /dev/sda1 /external_disk/"


Your USB stick is now ready for use but you have to mount it every time you start the pineapple 😞

5. Automount the USB stick
"cd /etc/config/"
"nano fstab"

Now I have extended the file with the following ...


config     'mount'
                 option target      '/external_disk'
                 option uuid         '381203b8-21fe-43e4-8d99-285a689eb3b2'  (what you have copied in step 2)
                 option enabled   '1'

I hope I could help you with my first post. Maybe you can see yourself in another post.
Do you still have some ideas what you could do with the USB interface of the pineapple?


I hope it's understandable with Google Translate and you know what I mean.

My English is not the best but I try to learn :-)


Greetings from Germany
 

Link to comment
Share on other sites

  • 3 months later...
On 2/5/2019 at 11:46 AM, Olaf Mufjay said:

Hello friends, today I dug up my good old Pineapple. 
My idea was to use it as a home server and equip it with a 500GB hard drive from my old laptop.

I have read this form amount and thought I can help you with my approach so that you can easily install your 64 GB USB stick.


1. Choose SSH in your annanas and find your partitons of USB it's easy to use: "fdisk -l"
The result should look like this: /dev/sda1


2. Format the USB stick use: "mkfs.ext4 /dev/sda1"
Copy Filesystem UUID look like this: 381203b8-21fe-43e4-8d99-285a689eb3b2


3. I have created a new folder in the home environment for better orientation.
"cd .. && mkdir external_disk"


4. Now you just have to mount the USB stick like I did with my hard drive.
"mount /dev/sda1 /external_disk/"


Your USB stick is now ready for use but you have to mount it every time you start the pineapple 😞

5. Automount the USB stick
"cd /etc/config/"
"nano fstab"

Now I have extended the file with the following ...


config     'mount'
                 option target      '/external_disk'
                 option uuid         '381203b8-21fe-43e4-8d99-285a689eb3b2'  (what you have copied in step 2)
                 option enabled   '1'

I hope I could help you with my first post. Maybe you can see yourself in another post.
Do you still have some ideas what you could do with the USB interface of the pineapple?


I hope it's understandable with Google Translate and you know what I mean.

My English is not the best but I try to learn 🙂


Greetings from Germany
 

So, I did this and it is recognized, however, I don't get prompted to select the space.  Is there some other place to configure where they are stored?

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...