Re: [kde-linux] Mounting with exec flag



What you should do in this case is to config UDEV. then you can check
the serial number before mouting...

Alain

John Andersen escreveu:
On Thursday 23 November 2006 09:34, Paulo J. Matos wrote:
On 11/23/06, John Andersen <jsa@xxxxxxxxxxxxxx> 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.



------------------------------------------------------------------------

___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.



Relevant Pages

  • Re: [kde-linux] Mounting with exec flag
    ... I have a WD external drive and when I mount it through KDE, ... stuff), how can I tell it to mount this drive with the exec, flag? ... And I can copy a shell script to both devices and then execute ...
    (KDE)
  • RFC: executable archive
    ... A problem with perl, that Larry Wall should have though of right? ... The problem is compounded that all decent scripting languages allow ... hard on the developers of the scripting engine to make single exec. ... use the loopback mount device to mount the ar under ...
    (Linux-Kernel)
  • Re: [kde] media:/ browsing and settings
    ... > do with the need to do mount operations as root. ... This message is from the kde mailing list. ... you have to configure pmount and HAL so that it ... dbus message is sent to KDE, it asks you what to do, and depending on your ...
    (KDE)
  • Re: [kde-linux] =?iso-8859-1?q?Desktop_widget_like_Windows_Vista_side?= =?iso-8859&#
    ... mount as root, from the command line. ... On KDE 3, you can create links to these devices on the desktop that let you ... the folderview, you can't do it in the notifier, IIRC you can't do it in ... Being "stable" is not very usefull if it misses so many features that we ...
    (KDE)
  • Re: [IBM-MAIN] Checking if all UNIX Filesystems were mounted successfully at IPL
    ... (This is to avoid having to use change control to update it whenever a new ... so I wrote a rexx exec that runs from a proc at ... IPL time and mounts all BOOKMANAGER HFSs. ... featuring rebuild, list, mount and unmount functions. ...
    (bit.listserv.ibm-main)