Jump to content

how to see and use sdhc storage from modem


dutchdog

Recommended Posts

Hi. Have an e392, working on pineapple. For some strange reason it lists as e398. But that doesn't bother me.

I inserted an 8gb sdhc card and want to use that for storage and infusions.

However the it doesn't show or is usable.

How do I get it to work? Thanks

Link to comment
Share on other sites

Attached USB devices:

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

Bus 001 Device 003: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard

Config global automount

option from_fstab 1

option anon_mount 1

config global autoswap

option from_fstab 1

option anon_swap 0

config mount

option target /usb

option device /dev/sda1

option fstype ext4

option options rw,sync

option enabled 1

option enabled_fsck 0

config swap

option device /dev/sda2

option enabled 0

Edited by dutchdog
Link to comment
Share on other sites

Go into the fstab file and look for this and add the sleep 15

start() {
. /lib/functions/mount.sh

sleep
15

config_load fstab
mkdir
-p /var/lock
lock /var/lock/fstab.lck
[ -e /tmp/fstab ] || {
echo '# WARNING: this is an auto generated file, please use uci to set defined filesystems' > /tmp/fstab
}
lock -u /var/lock/fstab.lck
config_foreach do_swapon swap
config_foreach do_mount mount
config_foreach do_swapon swap
# do swap a second time so that swap on filesystems is enabled
}

Edited by deathdealerxx
Link to comment
Share on other sites

As I all did it in windows, this is the howto guide and what software I used:

1. I formatted the SD card to EXT4, using 'MiniTool Partition' (free download supports EXT4)

http://download.cnet.com/MiniTool-Partition-Wizard-Home-Edition/3001-2094_4-10962200.html?spi=a171ba0823d4f77a27adda2debae2c98∂=dl-6285158

2. I edited the Fstab file on the pineapple to include the 'sleep 15' ( Location -> ETC/init.d/Fstab)

I used WinSCP. The modem needs to be disconnected from the pineapple. (else you could get a 'no space error')

http://download.cnet.com/WinSCP/3001-2160_4-10400769.html?spi=5160a98b332d0ba7c7c883ead353902b

to easily edit it. It should look like this:

start() {
. /lib/functions/mount.sh

sleep 15

config_load fstab
mkdir
-p /var/lock
lock /var/lock/fstab.lck
[ -e /tmp/fstab ] || {
echo '# WARNING: this is an auto generated file, please use uci to set defined filesystems' > /tmp/fstab
}
lock -u /var/lock/fstab.lck
config_foreach do_swapon swap
config_foreach do_mount mount
config_foreach do_swapon swap
# do swap a second time so that swap on filesystems is enabled
}

3. Succes!

Current Disk Usage:

Filesystem                Size      Used Available Use% Mounted onrootfs                  768.0K    708.0K     60.0K  92% //dev/root                 5.3M      5.3M         0 100% /romtmpfs                    14.3M    108.0K     14.2M   1% /tmptmpfs                   512.0K         0    512.0K   0% /dev/dev/mtdblock3          768.0K    708.0K     60.0K  92% /overlayoverlayfs:/overlay      768.0K    708.0K     60.0K  92% //dev/sda1                 6.9G     16.0E      6.6G 100% /usb

Hope this helps other people. Thanks deathdealerXX.

Edited by dutchdog
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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