sUbZeRo Posted September 12, 2013 Posted September 12, 2013 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? Quote
deathdealerxx Posted September 12, 2013 Posted September 12, 2013 Check out this link https://forums.hak5.org/index.php?/topic/30209-how-to-see-and-use-sdhc-storage-from-modem/?hl=%2Bsleep+%2B15#entry227979 Quote
sUbZeRo Posted September 12, 2013 Author Posted September 12, 2013 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 1config global autoswap option from_fstab 1 option anon_swap 0config mount option target /usb option device /dev/sda1 option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0config swap option device /dev/sda2 option enabled 1 Quote
sUbZeRo Posted September 12, 2013 Author Posted September 12, 2013 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 Quote
sUbZeRo Posted September 12, 2013 Author Posted September 12, 2013 I tired "sleep 25" and still got the same result :( I'm not sure what else to do other than to leave swap off. Quote
deathdealerxx Posted September 12, 2013 Posted September 12, 2013 Have you seen these posts? https://forums.hak5.org/index.php?/topic/28490-mark-iv-and-3g-huawei-1750-microsd-2gb-not-mounting-sd-partitions/?hl=%2Bsd+%2Bcard+%2B3g+%2Bmodem https://forums.hak5.org/index.php?/topic/29059-problem-mounting-sd-with-huawei-e303f/?hl=%2Bsd+%2Bcard+%2B3g+%2Bmodem Quote
sUbZeRo Posted September 12, 2013 Author Posted September 12, 2013 After reading those posts i got this working by disabling them both in fstab and making my /etc/rc.local look like this.. wifihostapd_cli -p /var/run/hostapd-phy0 karma_disable#Don't touch anything above this line#Add your commands above this/pineapple/3g/3g.shsleep 15mount /dev/sda1 /usbswapon /dev/sda2exit 0 Quote
deathdealerxx Posted September 12, 2013 Posted September 12, 2013 Glad you could get it working! Quote
sUbZeRo Posted September 13, 2013 Author Posted September 13, 2013 Thanks for your responses. Unfortunatly my pineapple still has terrible range. I dont know if i should order another or keep using my raspberry pi.. Only thing is the pi lacks the web interface. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.