Jump to content

MF591 SD Card Access


sUbZeRo

Recommended Posts

When I try to use the swap partition on the SD card in the MF591 the data partition gets mounted as /mnt/sdb1 but when sawp is set to 0 it mounts the data partition as /mnt/sda1. The same with the swap its either sda2(swap off) or sdb2(swap on). Has anyone been successful getting the SD card in the MF591 working with data and swap partitions?

Link to comment
Share on other sites

I guess I should have mentioned this before. I read that post and tried that with the same results. I'm using a 16GB class 2 sd card so maybe its slow and needs a longer sleep. I will try that now. Also here is my fstab:

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 1

Link to comment
Share on other sites

With sleep 15 it looks like below. and i see this in the log : 14:54:03 Pineapple kern.alert kernel: [ 176.440000] Write-error on swap-device (8:0:8)

Filesystem                Size      Used Available Use% Mounted onrootfs                    1.0M    232.0K    792.0K  23% //dev/root                 5.0M      5.0M         0 100% /romtmpfs                    14.3M    116.0K     14.2M   1% /tmptmpfs                   512.0K         0    512.0K   0% /dev/dev/mtdblock3            1.0M    232.0K    792.0K  23% /overlayoverlayfs:/overlay        1.0M    232.0K    792.0K  23% //dev/sdb1                12.8G    328.8M     11.9G   3% /mnt/sdb1
Link to comment
Share on other sites

After reading those posts i got this working by disabling them both in fstab and making my /etc/rc.local look like this..

wifi
hostapd_cli -p /var/run/hostapd-phy0 karma_disable
#Don't touch anything above this line


#Add your commands above this
/pineapple/3g/3g.sh
sleep 15
mount /dev/sda1 /usb
swapon /dev/sda2
exit 0

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...