This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

bash: /usr/sbinexportfs: cannot execute binary file

Hi everyone!

I step through to the last detail GSG: DM365 DVEVM software Setup for MontaVista Kernel

(http://processors.wiki.ti.com/index.php/GSG:_DM365_DVEVM_Software_Setup)

 

These first two (2) stages were straightforward and without a problem encountered:

Installing the Target Linux Software

Installing the DVSDK Software

 

Problem was in the third stage (Creating a Shared File System Between Host and Target).

Here are the details ($ is account user,   # is root user):

 

Exporting a Shared File System for Target Access

 

The following shell commands were still alright:

 

   [root @ -]$    cd /home/roy

   [root @ roy]$   mkdir  -p  workdir/filesys

   [root @ roy]$   cd  DVworkdir/filesys

   [root @ filesys]$   su  root

   [root @ filesys]#   cp  –a  /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/* .

   [root @ filesys]#   chown  –R  roy  opt

   [root @ filesys]#   gedit  /etc/exports

 

Then I copy/paste to  /etc/exports (which is an empty file) the following line:

/home/roy/workdir/filesys *(rw,no_root_squash,no_all_squash,sync)

 

Then the problem start with the next shell command:

 

   [root @ filesys]#   /usr/sbin/exportfs –av

   bash:  /usr/sbin/exportfs:  No such file or directory

 

I also tried:

 

   [root @ filesys]#   usr/sbin/exportfs –av

   bash:  /usr/sbin/exportfs:  cannot execute binary file

 

   [root @ filesys]#   ls  -lsa  usr/sbin/exportfs

   40  –rwxr-xr-x.   1 root  root  39272  Aug 30 2008  usr/sbin/exportfs

 

I tried doing a ‘man’ for other binaries in filesys, but the textual display

were all encumbered with shaded characters like ^?, ^B^D, ^L, ^E^D^C, ^G ...

 

As a root, why can’t I execute a binary?  And why can’t I read (‘man’)

any binary in sysfile ??

 

  •  

    Topographical clarifications:

    Subject should be:                               bash:  /usr/sbin/exportfs:  cannot execute binary

    Shell command line 1 should be:        [roy @ home]$  cd /home/roy

    Shell command line 2 should be:        [roy @ home]$  mkdir -p workdir/filesys

    Shell command line 3 should be:        [roy @ roy]$      cd  workdir/filesys

     

     

    I'm sorry for the clerical errors.

    Roy