Page 1 of 2

Extra storage

Posted: Mon Apr 27, 2015 12:47 pm
by vishwas
Hi,

I have been toying around with a few projects. Now no installations happening from opkg says 'insufficient space' . Any means to use sd card as storage like how it works on raspberry pi.
Thank You

Re: Extra storage

Posted: Tue Apr 28, 2015 7:25 pm
by charliex

Re: Extra storage

Posted: Tue May 26, 2015 6:15 pm
by Endat
I guess the short answer is no.. why does it even have a TF adaptor if it doesn't work?

Does anyone have any REAL instructions to make the microSD slot usable filesystem?

What filesystems can be supported?

Re: Extra storage

Posted: Tue May 26, 2015 6:27 pm
by Endat
Also.. why doesn't the USB on Vocore+Dock register flash drives?

Re: Extra storage

Posted: Thu May 28, 2015 11:57 pm
by Ruphobia
Endat

Please unplug the usb thumb drive and type: dmesg
then plug in the thumb drive and wait a few seconds then type dmesg again
and look at the end to see if it shows the thumb drive.

then repeat the process but instead to: ls /dev/sd*

if it shows up in /dev/ then you need to mount it.

Also; what formatting do you have on the thumb drive? - It's possible you don't have the correct modules installed for the format type of the thumb drive.

Re: Extra storage

Posted: Fri May 29, 2015 2:17 am
by charliex
you need to include the drivers for usb/filesystem etc to use USB sticks as a FS. it is pretty easy to do and there a few posts in the forum with the howto.

i think its also posted on noblepeppers wiki.

Vonger got the sdcard to work i believe, but not sure if did a full FS or not.

charlie

Re: Extra storage

Posted: Fri May 29, 2015 12:53 pm
by noblepepper
Actually the wiki page is pretty much just a stub saying to follow the openwrt instructions. This post works as far as I know but I plan on fleshing out the wiki soon.

After you follow the above post you just need to install block-mount, do a
Code: Select all
 block detect >/etc/config/fstab
with the thumb drive inserted and edit /etc/config/fstab so the partitions are enabled.
Code: Select all
config 'mount'
   option   target   '/mnt/sda1'
   option   uuid   '548c-9a37'
   option   enabled   '1'

config 'mount'
   option   target   '/mnt/sda2'
   option   uuid   'd62e612a-d5ab-4064-98ec-a6d43723729e'
   option   enabled   '1'

now it is all set up and you can do
Code: Select all
block mount
df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    4.4M      1.1M      3.3M  25% /
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    14.2M    844.0K     13.3M   6% /tmp
/dev/mtdblock6            4.4M      1.1M      3.3M  25% /overlay
overlayfs:/overlay        4.4M      1.1M      3.3M  25% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1               748.5M      4.0K    748.5M   0% /mnt/sda1
/dev/sda2               210.8M      2.0M    193.7M   1% /mnt/sda2
 

Re: Extra storage

Posted: Fri May 29, 2015 5:44 pm
by noblepepper
Since chaos calmer rc1 is out this got a lot easier. Here is how I just did it:

Upgrade to the rc1 image I put together for the VoCore, if you use the official openwrt image you may need to install a couple more packages.
Code: Select all
cd /tmp
wget http://noblepepper.com/wp/wp-content/VoCore-rc1/openwrt-ramips-rt305x-vocore-squashfs-sysupgrade.bin
sysupgrade openwrt-ramips-rt305x-vocore-squashfs-sysupgrade.bin


Wait until the VoCore reboots

Code: Select all
opkg update
opkg install kmod-fs-ext4 kmod-nls-cp437 kmod-nls-iso8859-1 block-mount
block detect >/etc/config/fstab
vim /etc/config/fstab

Use these commands in vim to enable the partitions and save the file (the \t is tab, I can't figure out how to do that in this forum)
Code: Select all
:%s/enabled\t'0'/enabled\t'1'/g
:x

Then mount the drive's partitions
Code: Select all
block mount

Re: Extra storage

Posted: Wed Dec 30, 2015 8:34 pm
by Magic
Hello,

I can't get my USB flash working. Installed everything from https://wiki.openwrt.org/doc/howto/extroot
This works fine on other routers I've flashed with OpenWRT.

root@OpenWrt:~# opkg list-installed |grep usb
kmod-usb-core - 3.18.20-1
kmod-usb-ohci - 3.18.20-1
kmod-usb-storage - 3.18.20-1
kmod-usb-storage-extras - 3.18.20-1
kmod-usb-uhci - 3.18.20-1
kmod-usb2 - 3.18.20-1
libusb-1.0 - 1.0.19-1
usbutils - 007-1
root@OpenWrt:~# opkg list-installed |grep kmod-fs
kmod-fs-ext4 - 3.18.20-1
root@OpenWrt:~# opkg list-installed |grep nls
kmod-nls-base - 3.18.20-1
kmod-nls-cp437 - 3.18.20-1
kmod-nls-iso8859-1 - 3.18.20-1
root@OpenWrt:~#

root@OpenWrt:~# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


but no any new records in dmesg after USB with ext4 file system connected
I have tried other USB flash drives... but same..

Is there any way to test USB port working?

Re: Extra storage

Posted: Fri Jan 01, 2016 1:30 am
by Vonger
As I remember, once you connect USB storage, there will be a node in dev, named 'sda0'. You can cat or hexdump that device and it will show the raw data in USB device. If there is any data output, it means usb device works well just need to check the drivers.