DrDinosaur Posted April 19, 2014 Share Posted April 19, 2014 When I connected to my Pineapple after some time of outside deployment, I found the web interface only showed the default system infusions- and not the ones I install myself. This issue happens often, but is usually solved with a reboot. After a couple of those, it still had the issue. I formatted the SD card in the web interface. Can't install new infusions to the SD card, even after another reboot. I finally factory resetted my pineapple, but it still would not allow me to install new infusions to the SD card. The SD card doesn't even seem to appear under the resources module. Not sure what happened here. Any ideas? Thanks. Quote Link to comment Share on other sites More sharing options...
zero_field Posted April 19, 2014 Share Posted April 19, 2014 ssh in and check /etc/config/fstab, mine had an incorrect path for the sd card device and same thing was happening.(it is not being mounted properly, changed my path to /dev/sdaX for the sd and swap) Quote Link to comment Share on other sites More sharing options...
DrDinosaur Posted April 19, 2014 Author Share Posted April 19, 2014 ssh in and check /etc/config/fstab, mine had an incorrect path for the sd card device and same thing was happening. (it is not being mounted properly, changed my path to /dev/sdaX for the sd and swap) Here is what I have: root@Pineapple:/etc/config# cat 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 /sd option device /dev/sdcard/sd1 option fstype auto option options rw,sync option enabled 1 option enabled_fsck 0 config swap option device /dev/sdcard/sd2 option enabled 1 Quote Link to comment Share on other sites More sharing options...
zero_field Posted April 19, 2014 Share Posted April 19, 2014 (edited) config mount option target /sd option device /dev/sda1 option fstype auto option options rw,sync option enabled 1 option enabled_fsck 0 config swap option device /dev/sda2 option enabled 1 Change your config mount and config swap, this is mine, yours should probably be the same, but it could be reversed (swap may be sda1 and the /sd mount point may be sda2) Edited April 19, 2014 by zero_field Quote Link to comment Share on other sites More sharing options...
dustbyter Posted April 19, 2014 Share Posted April 19, 2014 Also check /dev/sd* to see what it has been mounted as. In some cases, my USB on MK4 was mounted as sdb or sdc and i had to adjust it in fstab. Quote Link to comment Share on other sites More sharing options...
DrDinosaur Posted April 21, 2014 Author Share Posted April 21, 2014 Damn, this is really annoying. I can't get it to work. I have no idea what happened. Here is what is up after a factory reset (let me know if more information is needed, thanks): root@Pineapple:~# ls -l /dev/* crw-r--r-- 1 root root 5, 1 Jan 1 1970 /dev/console crw-rw-rw- 1 root root 1, 7 Jan 1 1970 /dev/full crw-r--r-- 1 root root 1, 11 Jan 1 1970 /dev/kmsg srw-rw-rw- 1 root root 0 Jan 1 1970 /dev/log crw-r--r-- 1 root root 1, 1 Jan 1 1970 /dev/mem crw-r--r-- 1 root root 90, 0 Jan 1 1970 /dev/mtd0 crw-r--r-- 1 root root 90, 1 Jan 1 1970 /dev/mtd0ro crw-r--r-- 1 root root 90, 2 Jan 1 1970 /dev/mtd1 crw-r--r-- 1 root root 90, 3 Jan 1 1970 /dev/mtd1ro crw-r--r-- 1 root root 90, 4 Jan 1 1970 /dev/mtd2 crw-r--r-- 1 root root 90, 5 Jan 1 1970 /dev/mtd2ro crw-r--r-- 1 root root 90, 6 Jan 1 1970 /dev/mtd3 crw-r--r-- 1 root root 90, 7 Jan 1 1970 /dev/mtd3ro crw-r--r-- 1 root root 90, 8 Jan 1 1970 /dev/mtd4 crw-r--r-- 1 root root 90, 9 Jan 1 1970 /dev/mtd4ro crw-r--r-- 1 root root 90, 10 Jan 1 1970 /dev/mtd5 crw-r--r-- 1 root root 90, 11 Jan 1 1970 /dev/mtd5ro brw-r--r-- 1 root root 31, 0 Jan 1 1970 /dev/mtdblock0 brw-r--r-- 1 root root 31, 1 Jan 1 1970 /dev/mtdblock1 brw-r--r-- 1 root root 31, 2 Jan 1 1970 /dev/mtdblock2 brw-r--r-- 1 root root 31, 3 Jan 1 1970 /dev/mtdblock3 brw-r--r-- 1 root root 31, 4 Jan 1 1970 /dev/mtdblock4 brw-r--r-- 1 root root 31, 5 Jan 1 1970 /dev/mtdblock5 crw-rw-rw- 1 root root 1, 3 Jan 1 1970 /dev/null crw-r--r-- 1 root root 1, 4 Jan 1 1970 /dev/port crw------- 1 root root 108, 0 Jan 1 1970 /dev/ppp crw-rw-rw- 1 root root 5, 2 Jan 1 00:02 /dev/ptmx crw-r--r-- 1 root root 1, 8 Jan 1 1970 /dev/random brw-r--r-- 1 root root 8, 0 Jan 1 1970 /dev/sda crw-r--r-- 1 root root 21, 0 Jan 1 1970 /dev/sg0 crw-rw-rw- 1 root root 5, 0 Jan 1 1970 /dev/tty crw-rw-rw- 1 root root 254, 0 Jan 1 1970 /dev/ttyATH0 crw-rw-rw- 1 root root 4, 64 Jan 1 1970 /dev/ttyS0 crw-r--r-- 1 root root 1, 9 Jan 1 1970 /dev/urandom crw-r--r-- 1 root root 10, 130 Jan 1 1970 /dev/watchdog crw-rw-rw- 1 root root 1, 5 Jan 1 1970 /dev/zero /dev/bus: drwxr-xr-x 3 root root 60 Jan 1 1970 usb /dev/net: crw-r--r-- 1 root root 10, 200 Jan 1 1970 tun /dev/pts: crw--w--w- 1 root root 136, 0 Jan 1 00:02 0 /dev/sdcard: lrwxrwxrwx 1 root root 8 Jan 1 00:00 sd -> /dev/sda /dev/shm: root@Pineapple:~# cat /etc/config/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 /sd option device /dev/sdcard/sd1 option fstype auto option options rw,sync option enabled 1 option enabled_fsck 0 config swap option device /dev/sdcard/sd2 option enabled 1 root@Pineapple:~# Quote Link to comment Share on other sites More sharing options...
thesugarat Posted April 21, 2014 Share Posted April 21, 2014 The posts above tell you what to try. In what you just posted your SD is mounted as /sda but down in your fstab section it's using sd1 and sd2 instead of maybe sda1 and sda2. Edit it and see what happens. Quote Link to comment Share on other sites More sharing options...
DrDinosaur Posted April 21, 2014 Author Share Posted April 21, 2014 I just tried a bunch more different configurations and none seem to work. Super annoying. Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted April 21, 2014 Share Posted April 21, 2014 Hey DrDinosaur, Sorry for not chiming in earlier, but I had a busy weekend. First, let me explain the /dev/sdcard/sd1 mystery. Everyone's fstab by default is set to /dev/sdcard/sd1 and that is how it should be. The reason for that is because it is a symlink to whatever /dev/sdX* the sd card is mapped against. We do this to increase the stability and reliability of the sd card randomly disconnecting / not mounting properly / conflicting with plugged in USB sticks. Now, the reason /dev/sdcard/sd points to /dev/sda is because that is the last known good configuration. But now, your SD card is not being recognized and therefore no /dev/sdcard/sd1 is created and linked to a real /dev/sdX1. So what does this mean? I think your SD card is dead. This happens - especially with the ones we ship with the Pineapple, they have sadly had issues in the past. You can find more information regarding the sd card issues here. Best Regards, Sebkinne Quote Link to comment Share on other sites More sharing options...
thesugarat Posted April 21, 2014 Share Posted April 21, 2014 Well that explains a few things... Quote Link to comment Share on other sites More sharing options...
DrDinosaur Posted April 21, 2014 Author Share Posted April 21, 2014 Hey DrDinosaur, Sorry for not chiming in earlier, but I had a busy weekend. First, let me explain the /dev/sdcard/sd1 mystery. Everyone's fstab by default is set to /dev/sdcard/sd1 and that is how it should be. The reason for that is because it is a symlink to whatever /dev/sdX* the sd card is mapped against. We do this to increase the stability and reliability of the sd card randomly disconnecting / not mounting properly / conflicting with plugged in USB sticks. Now, the reason /dev/sdcard/sd points to /dev/sda is because that is the last known good configuration. But now, your SD card is not being recognized and therefore no /dev/sdcard/sd1 is created and linked to a real /dev/sdX1. So what does this mean? I think your SD card is dead. This happens - especially with the ones we ship with the Pineapple, they have sadly had issues in the past. You can find more information regarding the sd card issues here. Best Regards, Sebkinne Thanks Seb. I just purchased a 8GB Class 10 Sandisk Micro SD Card. Hopefully that will resolve the issue. Quote Link to comment Share on other sites More sharing options...
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.