CubieBoard Forum

Cubieboard itself => Operating System => Cubieboard v2 OS (A20 Based) => Topic started by: facat on June 19, 2014, 10:32:31 am

Title: How to set exec bit while auto-mounting USB disk?
Post by: facat on June 19, 2014, 10:32:31 am
I'm using cubian. Cubian is very smart. When I insert a USB disk, it will be mounted automatically. However, USB is automatically mount with noexec bit set, which means I cannot run binary executable files on USB disk.
What should I do to configure cubian, so I can run executable files on a automatically mounted USB disk?
Title: Re: How to set exec bit while auto-mounting USB disk?
Post by: almochris on June 20, 2014, 04:31:47 am
I don't know how cubian does it, but I have a debian on my cubieboard and I use the usbmount package.

This is a very handy package for this type of thing. You can write scripts to run when a particular USB drive is mounted for example. (Put them in /etc/usbmount/mount.d/ )

If cubian is using usbmount, then have a look at /etc/usbmount/usbmount.conf and change the MOUNTOPTIONS variable removing the noexec flag.

There are several different methods in use for auto-mounting USB drives, like I say I'm not sure if cubian uses this one.
Title: Re: How to set exec bit while auto-mounting USB disk?
Post by: facat on June 20, 2014, 04:39:08 am
unfortunately, cubian doesn't include usbmount tool. There's no usbmount command