View previous topic :: View next topic |
Author |
Message |
M Guru
Joined: 12 Dec 2006 Posts: 432
|
Posted: Fri Aug 27, 2010 9:52 pm Post subject: |
|
|
Quote: | Btw: The uam homepage seems to be down. Bad that such a good approach will not be developed anymore :< |
Nope, look here http://github.com/mgorny/uam/ . Also, uam developer will soon be a gentoo developer |
|
Back to top |
|
|
kingfame_147 Apprentice
Joined: 11 Oct 2008 Posts: 171
|
Posted: Fri Aug 27, 2010 11:00 pm Post subject: |
|
|
Ah, ok :) I downloaded it from his website in the past. And that site is down right now. Thanks for the hint! |
|
Back to top |
|
|
madness465 n00b
Joined: 23 Jun 2010 Posts: 12
|
Posted: Fri Oct 22, 2010 8:11 pm Post subject: |
|
|
Hi there,
i have more general question concerning udev and automount and hope this question doesnt go to much away from original topic.
i am bit confused with all the new stuff around udev. i dont have hal anymore. all strength to get my udev automounting working steams anywhere.
You mentioned programms like uam and udiskie and i tried a lot of things.
Which daemons have to run when i have just udev only system. which automount programs are recommended and how do i have to start them.
for example i have udev-postmount running and before my openbox starts i start udiskie like this: udiskie & and my /media folder is still empty
what do i wrong, sorry when that sounds all nooby but all that udev stuff and rules etc. i am little bit overstrained
thanks a lot |
|
Back to top |
|
|
kingfame_147 Apprentice
Joined: 11 Oct 2008 Posts: 171
|
Posted: Thu Nov 04, 2010 8:59 pm Post subject: |
|
|
Well I never used udiskie, so I can't help you there.
I am using uam. That are just some udev rules (and small scripts) which do the work for you :)
If you want to use uam you just have to install it, that's all. Ok, you should look at the config file and change some settings if you want too.
I found a small tutorial for udiskie: https://wiki.archlinux.org/index.php/Udiskie
Seems to be no big thing.
I'll stay at uam for now because it's a really simple and lightweight solution because it only needs udev. |
|
Back to top |
|
|
madness465 n00b
Joined: 23 Jun 2010 Posts: 12
|
Posted: Sat Nov 13, 2010 4:11 pm Post subject: |
|
|
Hi there!
Thank you for your response!
I now installed uam, but i am not finding for example my ipod or usbstick in any common directory mountet. I seeked for some information about uam but i didnt find anything. So do you know what i am missing. I looked in the directories /media and /mnt is there an other directory where it will be mounted. Or are there any special daemons which have to run. For my udev configuration i just used the offical gentoo udev howto.
Thank you again
Greetings |
|
Back to top |
|
|
netguy n00b
Joined: 01 Nov 2002 Posts: 29 Location: Taiwan
|
Posted: Mon Nov 15, 2010 3:20 am Post subject: |
|
|
madness465 wrote: | Hi there!
Thank you for your response!
I now installed uam, but i am not finding for example my ipod or usbstick in any common directory mountet. I seeked for some information about uam but i didnt find anything. So do you know what i am missing. I looked in the directories /media and /mnt is there an other directory where it will be mounted. Or are there any special daemons which have to run. For my udev configuration i just used the offical gentoo udev howto.
Thank you again
Greetings |
Do you emerge pmount ? |
|
Back to top |
|
|
madness465 n00b
Joined: 23 Jun 2010 Posts: 12
|
Posted: Tue Nov 16, 2010 3:56 pm Post subject: |
|
|
Hi there,
no i didnt had but now i did but it dont work, either. There shouldnt be a daemon running, should there? |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Sat Nov 20, 2010 10:47 am Post subject: |
|
|
Did you restart udev? |
|
Back to top |
|
|
madness465 n00b
Joined: 23 Jun 2010 Posts: 12
|
Posted: Fri Nov 26, 2010 12:30 pm Post subject: |
|
|
I had some reboots since then so udev should be restarted. |
|
Back to top |
|
|
dusik Tux's lil' helper
Joined: 04 Jan 2005 Posts: 129 Location: Durham, NC, USA
|
Posted: Fri Nov 26, 2010 2:55 pm Post subject: |
|
|
madness465 wrote: | I now installed uam, but i am not finding for example my ipod or usbstick in any common directory mountet. |
I had the same problem -- when I plugged in a USB stick nothing was mounted. Turns out I had to remove a conflicting line from my /etc/fstab file, which specified a mount point for /dev/sdd1. I have permanent storage drives at sda-sdc, so the first external volume always gets sdd.
In other words, check your /etc/fstab file and make sure you have no entries for volumes you want uam to auto-mount. |
|
Back to top |
|
|
hoaoaihuong n00b
Joined: 27 Nov 2010 Posts: 2 Location: Vietnam
|
Posted: Sat Nov 27, 2010 3:45 am Post subject: |
|
|
I'm a newcomer..all of these are useful information. |
|
Back to top |
|
|
madness465 n00b
Joined: 23 Jun 2010 Posts: 12
|
Posted: Mon Nov 29, 2010 4:26 pm Post subject: |
|
|
Hi dusik,
my /etc/fstab is clean i am just using some sda and cdrom mount points. |
|
Back to top |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Sun Dec 05, 2010 8:54 am Post subject: |
|
|
AARGH!!
I'm using uam. Note that udev as a service is not running, yet udevd is. What in my system config is starting it up?
Anyway - that was a side question. The real question I have is: How can I get uam not to automount a certain USB device? I just want to disable automounting that device. All udev rules I've written seem to have no impact!
Ideas? _________________ Beetle B.
Please update the table of equivalents.
A Firefox guide. |
|
Back to top |
|
|
M Guru
Joined: 12 Dec 2006 Posts: 432
|
Posted: Sun Dec 05, 2010 12:57 pm Post subject: |
|
|
Beetle B.
Did you change 80-uam.rules file? Maybe you can try to change line for usb and add something like this:
ATTRS{model}!="Your USB device"
Not sure if negative != works but I think it should... |
|
Back to top |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Sun Dec 05, 2010 6:01 pm Post subject: |
|
|
I tried that, and it didn't work.
Specifically, I changed it from
Code: |
SUBSYSTEM=="block", ACTION=="add", SUBSYSTEMS=="usb", ENV{ID_FS_USAGE}=="filesystem", RUN+="/lib64/udev/uam/uam-mount.sh"
|
to
Code: |
SUBSYSTEM=="block", ACTION=="add", SUBSYSTEMS=="usb", ATTRS{serial}!="0123456789012345", ENV{ID_FS_USAGE}=="filesystem", RUN+="/lib64/udev/uam/uam-mount.sh"
|
Yes, != should work, according to the udev man page. _________________ Beetle B.
Please update the table of equivalents.
A Firefox guide. |
|
Back to top |
|
|
kingfame_147 Apprentice
Joined: 11 Oct 2008 Posts: 171
|
Posted: Sun Dec 05, 2010 11:56 pm Post subject: |
|
|
madness465 wrote: | Hi dusik,
my /etc/fstab is clean i am just using some sda and cdrom mount points. |
Could you post your dmesg output after plugging in a device that isn't mounted.
Are you able to mount those devices by hand? |
|
Back to top |
|
|
madness465 n00b
Joined: 23 Jun 2010 Posts: 12
|
Posted: Tue Dec 07, 2010 3:22 pm Post subject: |
|
|
Hi kingfame,
yes i am able to mount all the devices manually.
Here is the dmesg output for a usb samsung storage:
Code: |
[ 5123.456056] usb 2-4: new high speed USB device using ehci_hcd and address 4
[ 5123.507274] ehci_hcd 0000:00:1d.7: port 4 high speed
[ 5123.507287] ehci_hcd 0000:00:1d.7: GetStatus port 4 status 001005 POWER sig=se0 PE CONNECT
[ 5123.572792] usb 2-4: default language 0x0409
[ 5123.575172] usb 2-4: udev 4, busnum 2, minor = 131
[ 5123.575178] usb 2-4: New USB device found, idVendor=040d, idProduct=6204
[ 5123.575185] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5123.575191] usb 2-4: Product: USB 2.0 IDE Bridge
[ 5123.575198] usb 2-4: Manufacturer: VIA Technologies Inc.
[ 5123.575204] usb 2-4: SerialNumber: 000000000001
[ 5123.575381] usb 2-4: usb_probe_device
[ 5123.575390] usb 2-4: configuration #1 chosen from 1 choice
[ 5123.575710] usb 2-4: adding 2-4:1.0 (config #1, interface 0)
[ 5123.575798] usb-storage 2-4:1.0: usb_probe_interface
[ 5123.575811] usb-storage 2-4:1.0: usb_probe_interface - got id
[ 5123.576058] scsi6 : usb-storage 2-4:1.0
[ 5123.576392] drivers/usb/core/inode.c: creating file '004'
[ 5129.927322] scsi 6:0:0:0: Direct-Access SAMSUNG SP2514N VF10 PQ: 0 ANSI: 2
[ 5129.927692] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 5129.929524] sd 6:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 5129.930041] sd 6:0:0:0: [sdb] Write Protect is off
[ 5129.930049] sd 6:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 5129.930054] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 5129.931397] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 5129.931404] sdb: sdb1
[ 5129.938119] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 5129.938122] sd 6:0:0:0: [sdb] Attached SCSI disk
|
Thank you. |
|
Back to top |
|
|
madness465 n00b
Joined: 23 Jun 2010 Posts: 12
|
Posted: Tue Dec 07, 2010 3:38 pm Post subject: |
|
|
Hi again,
i now looked again into the my media file directory, without changing anything on my system and after a lots of reboots and now suddenly i find my devices mounted. I really dont get that. I hope i find the course of this for posting.
Sorry for wasting your time. |
|
Back to top |
|
|
tuber Apprentice
Joined: 12 Nov 2004 Posts: 267
|
Posted: Sat Dec 11, 2010 5:37 am Post subject: |
|
|
Besides autofs, can any of other options automatically unmount the filesystems? That is, I want to be able to plug in a USB drive, copy some files over, then when the write light goes off, just pull the drive out without manually unmounting. |
|
Back to top |
|
|
M Guru
Joined: 12 Dec 2006 Posts: 432
|
Posted: Sat Dec 11, 2010 12:00 pm Post subject: |
|
|
tuber
don't know about other options, but I never manually umount usb, I just copy some files, enter sync in terminal and pull the drive, uam will notify about unmount and clean mount dir. Never had problems. |
|
Back to top |
|
|
the_mgt Apprentice
Joined: 05 Aug 2005 Posts: 259 Location: Germany, near Hannover
|
Posted: Mon Jan 10, 2011 8:34 pm Post subject: |
|
|
tuber wrote: | Besides autofs, can any of other options automatically unmount the filesystems? That is, I want to be able to plug in a USB drive, copy some files over, then when the write light goes off, just pull the drive out without manually unmounting. |
Iirc, autofs only mounts a dir as long as it is used and a few seconds more. So it should be autounmounted shortly after finishing copying. And even if pwd is still the mounted dir.
I used it long ago when I didnt have desktop icons, until I switched to hal because that was more convenient and e17 started to have icons on desktop. (And it still is more convenient, since I cant get udisks-daemon to autostart...) _________________ Citadel Groupware | Avahi Howto |
|
Back to top |
|
|
22decembre Guru
Joined: 08 May 2010 Posts: 308 Location: Paris, banlieue sud (Massy et alentours)
|
Posted: Fri Feb 25, 2011 7:59 am Post subject: |
|
|
anyone knows here where to find a good and simple tutorial in order to name my (our) removable devices ?
Right now, all the things I found about udev rules are really non-understandable !
Hal was maybe crap (don't know and don't care !), but it was easy to mount your device with a pretty name ! _________________ Portable Gentoo installé depuis ~fevrier 2010, kde4 ( doc : http://www.22decembre.eu/gentoo-portable/)
Serveur Maison Gentoo depuis ~avril 2010 (doc : http://www.22decembre.eu/gentoo-serveur/)
http://www.22decembre.eu |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Fri Feb 25, 2011 11:21 am Post subject: |
|
|
Why don't you just stick with HAL? It still works. If the apps you used have moved on from HAL to udisks, they should still provide mounting with pretty names. All you have to do is make sure udisks works. There's documentation for that somewhere. |
|
Back to top |
|
|
22decembre Guru
Joined: 08 May 2010 Posts: 308 Location: Paris, banlieue sud (Massy et alentours)
|
Posted: Fri Feb 25, 2011 11:37 am Post subject: |
|
|
I haven't removed hal... so, I can make what you said. But I don't know if my current kde release still rely on hal !
I care also of the day where it won't be possible to do that. And I think it can happen fast, as even software with slow dev cycle have began to switch off from hal (I speak here of synce) !
What is udisk in fact ? Is it a daemon, like hal ? Or it's more close to the kernel, like udev ? _________________ Portable Gentoo installé depuis ~fevrier 2010, kde4 ( doc : http://www.22decembre.eu/gentoo-portable/)
Serveur Maison Gentoo depuis ~avril 2010 (doc : http://www.22decembre.eu/gentoo-serveur/)
http://www.22decembre.eu |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Fri Feb 25, 2011 1:35 pm Post subject: |
|
|
udisks works on top of udev. Yeah, it's a daemon, which loads automatically when an app uses it. KDE 4.6 has support for it, earlier KDEs support only HAL. |
|
Back to top |
|
|
|