[kde-linux] Mounting with exec flag

John Andersen jsa at pen.homeip.net
Thu Nov 23 20:19:07 UTC 2006


On Thursday 23 November 2006 09:34, Paulo J. Matos wrote:
> On 11/23/06, John Andersen <jsa at pen.homeip.net> wrote:
> > On Wednesday 22 November 2006 11:51, Paulo J. Matos wrote:
> > > Hi all,
> > >
> > > I have a WD external drive and when I mount it through KDE, it doesn't
> > > get the exec flag so I can't run bash script (and probably other
> > > stuff), how can I tell it to mount this drive with the exec, flag?
> > >
> > > Regards,
> >
> > Put it in fstab
>
> But by putting it in fstab I have to specify a dev node like
> /dev/sda1, how do I know this HD will always be connected to this
> node? Can't it happen that I connect a pen, going to /dev/sda1, and
> then the HD going to /dev/sda2, and then the pen will get the exec
> status and the HD won't?

Yes that could happen.  So maybe that's not the way to go.

Lately some distros seem more reliable
in determining the unique id of a device, and always assigning it
the same name OR always mounting it in the same place.

I use KDE under SUSE 10.1, and I have a Western Digital external
hard drive that is usb2.  I also have a handy Sansa mp3 player.

Regardless of which order I plug them in, KDE mounts them in 
/media/<name>    (where name is either My_book or Sansa. 

And I can copy a shell script to both devices and then execute
that script, but then they are both seen by the system as 
fat32, so I dont think thats a good test.

So I plugged in another external drive that is usb2, and which
has a reiserfs partition on it.  I copied my shell script there
and executed it just fine.  This drive enclosure has both firewire
and usb, and I tried with both and it works with both.

Each time I plug it in it is assigned the next available /dev/sdX1 
and is mounted in /media always under the same name regardless
of order of connection.

And all are mounted executable.

So it seems we are back to your original question, how to mount
them so you can exec from them, and why does it work
for me, but not for you.

I'll do some more digging....



Auto mounting seems to be in a state of flux, with some distros 
ripping it out alltogether, some relying on KDE, and some reverting
to autofs.

-- 
_____________________________________
John Andersen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20061123/7517204e/attachment.sig>


More information about the kde-linux mailing list