What's new

Is it possible to run 'hubicfuse' on any ASUS routers?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

knubbze

Occasional Visitor
There is a 'cloud' backup service called 'hubiC' which offers up to 10TB of online storage for very reasonable rates. They offer clients for the popular OSs (i.e. Windows. Mac, Linux) but there are also various other methods to access the storage, which lots of people seem to be doing.

One of these methods is a 'FUSE' application for Linux called 'hubicfuse' which allows you to mount the remote hubiC storage as a local directory.

What I am wondering is: would it be possible to run this on any of the ASUS router platforms (perhaps using this if necessary)?

The reason I want to do this is because I have about 4TB of data that I want an offsite backup of, but my internet connection's maximum upload speed is ~19mbit/s, so it will take between 1-2 months of 24/7 uploading to hubiC. However, if possible, I'd prefer to use a router to handle this task, rather than have a dedicated machine running the whole time.
 
Somebody asked hubicfuse on #asuswrt so I've added it to Entware repo. Works quite fast on my RT-N66U:
Code:
/opt/bin/dd if=/dev/zero of=/mnt/hubic/default/nonsense.swp bs=1M count=20
20+0 records in
20+0 records out
20971520 bytes (21 MB) copied, 2.95041 s, 7.1 MB/s
with a reasonable CPU load:
Code:
top - 19:48:33 up 13 days, 23:24,  0 users,  load average: 0.00, 0.00, 0.00
Tasks:  69 total,   1 running,  68 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.0%us, 26.2%sy,  0.0%ni, 63.6%id,  0.0%wa,  0.0%hi,  8.3%si,  0.0%st
Mem:    239712k total,   120836k used,   118876k free,    23568k buffers
Swap:   501944k total,        0k used,   501944k free,    60200k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
17202 admin     15   0 12308 2960 1972 S 29.1  1.2   0:01.93 hubicfuse
17213 admin     15   0  1496  632  468 R  1.0  0.3   0:00.10 top
I can write short How-To if necessary.
 
I kindly ask for the How-To. Thank you!
That would be great - thanks!

If I wanted to do the same for ARM-based routers like the AC68P, would I need to request the maintainer of Optware to add hubicfuse to the report?

Sent from my Nokia 3310 using Tapatalk
 
Hubicfuse How-To

This is how to mount HubiC cloud storage on N16/N66U/N65U/56U or any other MIPS router with stock/Tomato/Padavan/DD-WRT/asuswrt-merlin firmware.

Requirements
1. Entware installation (see how on asuswrt-merlin).
2. fuse kernel module from current firmware (included in asuswrt-merlin or can be dowloaded separately for other firmwares).

Setup
1. Register new account on hubic.com (you'll get 30GB of space with this referral link or 25GB otherwise).
2. Go to Developers page to create a new application. "Redirection domain", "Client ID" and "Secret Client" fields will be required at next step.
3. Install hubicfuse utility and run hubic_token script (it's a part of package):
Code:
opkg install hubicfuse
hubic_token -k
This script will ask you a few questions and gives you some strings for configuration file at the end. You have to place this values to /opt/etc/.hubicfuse. Just for example:
Code:
# cat /opt/etc/.hubicfuse
client_id=api_hubic_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
client_secret=yyyyyyyyyyyyyyyyyyyyyyyyyyyyy
refresh_token=zzzzzzzzzzzzzzzzzzzzzzzzzzz
cache_timeout=60
verify_ssl=false
4. Mount cloud storage:
Code:
insmod fuse
mkdir /tmp/mnt/hubic
hubicfuse /tmp/mnt/hubic
If all went well, you'll see HubiC free space with:
Code:
# df -h
Filesystem      Size  Used Avail Use% Mounted on
...
hubicfuse        30G  388K   30G   1% /tmp/mnt/hubic

Thats it! Don't forget to unmount HubiC storage before reboot:
Code:
umount /tmp/mnt/hubic
 
Last edited:
If I wanted to do the same for ARM-based routers like the AC68P, would I need to request the maintainer of Optware to add hubicfuse to the report?
It's hopeless I'm afraid. I've tried to contact them many times with no success.

PS Optware uses too old libcurl, hubicfuse won't work with it.
 
Last edited:
It's hopeless I'm afraid. I've tried to contact them many times with no success.

PS Optware uses too old libcurl, hubicfuse won't work with it.

That's a shame :( So does this rule out hubicfuse altogether with newer ASUS routers? Perhaps using this instead of Entware?
 
A bug found!

A bug was discovered! If some error occurs while uploading, all files after error message will be truncated to 4KB:

Code:
# c.p -r /mnt/BACKUP/2.6.22.19/ /mnt/hubic/default/modules/
c.p: can't create symlink '/mnt/hubic/default/modules/2.6.22.19/source': Function not implemented
c.p: can't create symlink '/mnt/hubic/default/modules/2.6.22.19/build': Function not implemented
Command exited with non-zero status 1

# du -hs /mnt/BACKUP/2.6.22.19/
12.4M   /mnt/BACKUP/2.6.22.19/
# l.s -la /mnt/hubic/default/modules/2.6.22.19/
drwxr-xr-x    2 ad.min    ro.ot             0 Jan  9 06:12 .
drwxr-xr-x    2 ad.min    ro.ot             0 Jan  9 06:07 ..
drwxr-xr-x    2 ad.min    ro.ot             0 Jan  9 06:12 kernel
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:16 modules.alias
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:16 modules.alias.bin
-rw-rw-rw-    1 ad.min    ro.ot             0 Jan  9 06:16 modules.builtin.bin
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:12 modules.dep
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:16 modules.dep.bin
-rw-rw-rw-    1 ad.min    ro.ot            52 Jan  9 06:12 modules.devname
-rw-rw-rw-    1 ad.min    ro.ot           131 Jan  9 06:16 modules.softdep
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:12 modules.symbols
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:12 modules.symbols.bin
 
Last edited:
A bug was discovered! If some error occurs while uploading, all files after error message will be truncated to 4KB:

Code:
# c.p -r /mnt/BACKUP/2.6.22.19/ /mnt/hubic/default/modules/
c.p: can't create symlink '/mnt/hubic/default/modules/2.6.22.19/source': Function not implemented
c.p: can't create symlink '/mnt/hubic/default/modules/2.6.22.19/build': Function not implemented
Command exited with non-zero status 1

# du -hs /mnt/BACKUP/2.6.22.19/
12.4M   /mnt/BACKUP/2.6.22.19/
# l.s -la /mnt/hubic/default/modules/2.6.22.19/
drwxr-xr-x    2 ad.min    ro.ot             0 Jan  9 06:12 .
drwxr-xr-x    2 ad.min    ro.ot             0 Jan  9 06:07 ..
drwxr-xr-x    2 ad.min    ro.ot             0 Jan  9 06:12 kernel
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:16 modules.alias
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:16 modules.alias.bin
-rw-rw-rw-    1 ad.min    ro.ot             0 Jan  9 06:16 modules.builtin.bin
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:12 modules.dep
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:16 modules.dep.bin
-rw-rw-rw-    1 ad.min    ro.ot            52 Jan  9 06:12 modules.devname
-rw-rw-rw-    1 ad.min    ro.ot           131 Jan  9 06:16 modules.softdep
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:12 modules.symbols
-rw-rw-rw-    1 ad.min    ro.ot          4096 Jan  9 06:12 modules.symbols.bin

Is this a bug in hubicfuse, or Entware? Also, does this only occur after attempting to make symlinks?
 
Last edited:

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top