gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gcmd-dev] Mounting media device not work


From: Michael
Subject: Re: [gcmd-dev] Mounting media device not work
Date: Sun, 23 Oct 2011 20:22:16 +0200
User-agent: claws-mail.org

 Радик,

You do not seem to run a desktop environment like gnome or KDE with 
automounting daemon ? So what kind of devices do you want to mount ?

You've several options. For example, install one of these:

* gnome-applets (includes drivmount) (there should be some KDE equivalent to 
this)
* pmount
* usbmount which mounts USB devices in generic mount points of /media, but can 
be freely configured.
* mountpy (which i do not know about)

and grok the manpage and the README (usually, /usr/share/doc/<applicationname> )

-----

If you use only very few and always the same devices, you may consider to setup 
entries in /etc/fstab. It would make any of the above daemons using your 
configured setup (folders, options) in the first place. You need to know the 
device label (the name) first. If you don't know then look up the necessary 
device information in /dev/disk/by-label after you plugged in.
Then add entries to fstab like this one (for USB memory stick)

/dev/disk/by-label/MYSTICK  /media/mystick  vfat  
noauto,users,uid=1000,gid=50,noatime,nodiratime,noexec  0   0

provided that you named the stick MYSTIXK (adapt to your liking)

Not that modern linux 'mount' can use device label alone, so you can make it as 
well short like 

LABEL=MYSTICK   /media/mystick  (.....etc bla)

( -> man fstab)


----

If you went that far, you may as well insert a mount command in gcmd menu :) to 
avoid any additional installation. (@piotr, does that integrate with gcmd 
'umount' click on device icon ?)

There is also a 'trick' to create device icons for removable, in gcmd device 
icon bar (below the toolbar), when they are not automounted. Then apply a 
string like this in the 'drive name' field:

 -L MYSTICK > /dev/null && cd 

which mounts the device (via -L Label), removes internal commandline garbage 
(>/dev/null) and changes into the configured directory (cd).

hth







reply via email to

[Prev in Thread] Current Thread [Next in Thread]