New IT forum Follow us on Twitter
23 May 2012, 04:19:18 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: TonidoPlug2 - Now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: SD card permissions / mount question.  (Read 1424 times)
Mattsky
Newbie
*
Posts: 2


« on: 01 December 2010, 11:16:11 pm »

Hi all, I've just spent the day playing with my shiny new Guruplug and I'm really happy with it. I do have a small problem though, and knowing my luck it's something really stupid and simple..

I'm working on sticking some applications on the SD card to execute from there, but when I try to run the binaries (./server in this case) I get the following:

-bash: ./server: cannot execute binary file

Now I'm thinking this is down to how the card's been mounted, and the settings in /etc/usbmount/usbmount.conf. Or maybe I need to set it up in fstab.. the end goal of this is to make the SD card the /opt FS - can anyone shed any light on this? Thanks in advance.
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #1 on: 02 December 2010, 08:32:03 am »

Since you didn't say anything about the binary you are trying to run, or how you performed the mount, all I can do is refer you to google, which gives lots of hits for your error message.
Logged
Mattsky
Newbie
*
Posts: 2


« Reply #2 on: 02 December 2010, 10:27:44 am »

Sorry, I really should've given more info.. the binary in question is the Skulltag server (http://www.skulltag.com/). It executes with no issues when I run it under /tmp; it's only when I move it to the SD card and try running it there that I get errors. This happens with other files as well (make, .sh scripts) - I guess I need to change the mount options for boot-time to allow me to run things. I've tried removing the noexec from the mount options in /etc/usbmount/usbmount.conf, and I've also tried commenting out the mount points there too and putting an entry into fstab, but it doesn't seem to want to play..

EDIT: I've just realised what a colossal numpty I am. Odds are the binary's not compiled for ARM. Sorry about this, still learning things and feeling my way around..
« Last Edit: 02 December 2010, 10:55:39 am by Mattsky » Logged
sfzhi
Jr. Member
**
Posts: 54


« Reply #3 on: 02 December 2010, 12:07:05 pm »

It executes with no issues when I run it under /tmp; it's only when I move it to the SD card and try running it there that I get errors.
Odds are the binary's not compiled for ARM.
If it wasn't compiled for ARM, how could it possibly work in /tmp?

I've tried removing the noexec from the mount options in /etc/usbmount/usbmount.conf
Did you try to remount it manually with 'exec' option rather than spend time for messing with usbmount.conf or fstab?
Code:
mount -o remount,exec /mountpoint
That way you would at least find out if the problem has anything to do with the mount options.
But before trying that it is good to see the current mount options by running:
Code:
cat /proc/mounts
(Do not trust /etc/mtab or the output of 'mount', as they do not always show the actual mount options).
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!