Unix Technical Forum

Why can't I execute a binary from a USB flash card?

This is a discussion on Why can't I execute a binary from a USB flash card? within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi When I try to execute a binary from a directory in a flash card (SD, CF etc makes ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 07:44 AM
boltar2003@yahoo.co.uk
 
Posts: n/a
Default Why can't I execute a binary from a USB flash card?

Hi

When I try to execute a binary from a directory in a flash card (SD, CF etc
makes no difference) that has been reformatted to ext2 I get the following error:

spirit$ ./scl
-ksh: ./scl: cannot execute [Permission denied]

even tho all the execute bits are set. I can't even run a binary when
logged in as root. As there a kernal limitation that prevents this
from happening (paging issues perhaps) or is it a USB/SCSI subsystem
setup issue?

Thanks for any help

B2003
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 07:44 AM
=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=
 
Posts: n/a
Default Re: Why can't I execute a binary from a USB flash card?

boltar2003@yahoo.co.uk writes:

> Hi
>
> When I try to execute a binary from a directory in a flash card (SD,
> CF etc makes no difference) that has been reformatted to ext2 I get
> the following error:
>
> spirit$ ./scl
> -ksh: ./scl: cannot execute [Permission denied]
>
> even tho all the execute bits are set. I can't even run a binary when
> logged in as root. As there a kernal limitation that prevents this
> from happening (paging issues perhaps) or is it a USB/SCSI subsystem
> setup issue?


Perhaps you've mounted it with the noexec option. It's not uncommon
to do that with removable media.

--
Måns Rullgård
mru@inprovide.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 07:44 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: Why can't I execute a binary from a USB flash card?


"Måns Rullgård" <mru@inprovide.com> wrote in message
news:yw1xfyvzqeqm.fsf@ford.inprovide.com...
> boltar2003@yahoo.co.uk writes:
>
>> Hi
>>
>> When I try to execute a binary from a directory in a flash card (SD,
>> CF etc makes no difference) that has been reformatted to ext2 I get
>> the following error:
>>
>> spirit$ ./scl
>> -ksh: ./scl: cannot execute [Permission denied]
>>
>> even tho all the execute bits are set. I can't even run a binary when
>> logged in as root. As there a kernal limitation that prevents this
>> from happening (paging issues perhaps) or is it a USB/SCSI subsystem
>> setup issue?

>
> Perhaps you've mounted it with the noexec option. It's not uncommon
> to do that with removable media.


What does "mount" say about the current configuration?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 07:45 AM
Boltar
 
Posts: n/a
Default Re: Why can't I execute a binary from a USB flash card?

>Perhaps you've mounted it with the noexec option. It's not uncommon
>to do that with removable media.


Yup , that was the problem. Doh! Thanks very much!

B2003

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com