View previous topic :: View next topic |
Author |
Message |
iivq n00b
Joined: 07 Mar 2006 Posts: 26
|
Posted: Wed Mar 08, 2006 12:08 am Post subject: [Mostly Resolved] can't mount USB-sticks automatically |
|
|
I used hal/dbus/udev (I don't exactly what's what or how they work together) to automatically mount my various USB devices, I just clicked on them in KDE's media:/-tab and it mounted...
lately I have updated my kernel and emerge -vauD world'd, but didn't change anything related to that - yet the automounting doesn't work anymore.
The devices show up in the media:/-tab but when I click on it it comes up with: mount: can't find /dev/<device> in /etc/fstab or /ect/mtab (where <device> is sda1 or something similar.
Since that I rebuilt hal and dbus (which are still the same version), followed the "manual" on http://wiki.kde.org/tiki-index.php?page=DBUS (guessing the /usr/local/etc/hal/device.d/60-pmount.hal location to be /etc/hal/device.d/60-pmount.hal), yet alas, no solution. As root I can manually mount the devices using pmount (or using mount if I specify a mount point) but not as a user, while my user is a member of the plugdev group.
Q: Am I missing something obvious? Does anyone have a (hint at a) solution?
[--EDIT--] I checked, suddenly it worked when I started kde in root mode, yet not in user mode, so it's a permission problem. But still no Idea how to fix it...
P.S. adding the devices to /etc/fstab is not an option: I work with a lot of different usb devices. Besides, it worked without before...
Tijmen
Last edited by iivq on Tue Mar 14, 2006 9:22 pm; edited 1 time in total |
|
Back to top |
|
|
Goddchen n00b
Joined: 21 Feb 2006 Posts: 19
|
Posted: Wed Mar 08, 2006 12:52 am Post subject: |
|
|
what did you change in your kernel? |
|
Back to top |
|
|
cconroy Tux's lil' helper
Joined: 26 Apr 2005 Posts: 81
|
Posted: Wed Mar 08, 2006 2:20 am Post subject: |
|
|
make sure your user is in the plugdev group |
|
Back to top |
|
|
aldimond n00b
Joined: 05 Mar 2006 Posts: 12
|
Posted: Wed Mar 08, 2006 2:28 am Post subject: |
|
|
When you updated your kernel and system did it include a switch from devfs to udev? If so, there might be some permissions that need tweaking in the /dev directory. If I recall (have not done this in a while) USB mass-storage devices show up as SCSI disks, which are /dev/sd*. Which is just as silly as the IDE CD drives that used to show up as SCSI drives that started the big fight between Linus and the cdrecord guy... anyhow, typically the device nodes should belong to a group that you can include your user in and give it the proper access.
I had a similar issue with DRI/DRM not working, and I found that it was because there was some device that was no longer being created dynamically, so the "mode 0666" in my xorg.conf wasn't making that device accessible; checked permissions on it, saw group ownership was "video", added my user to the "video" group and all was good. I hope that's the solution to your problem too.
[EDIT]: Ah, Conroy beat me to it. Should not have wasted my time yakking about cdrecord |
|
Back to top |
|
|
iivq n00b
Joined: 07 Mar 2006 Posts: 26
|
Posted: Wed Mar 08, 2006 10:47 pm Post subject: |
|
|
Thanks for all your answers, alas to no avail...
Goddchen: I didn't change anything in the kernel, just updated to a newer version (2.6.9 to 2.6.15). Also, Support for hot-pluggable devices (CONFIG_HOTPLUG), and Kernel Userspace Events (CONFIG_KOBJECT_UEVENT) are both on.
aldimond:
Nope, I was allready using udev. Everything worked. BTW, I'm not sure whether the change in behaviour was caued by the kernel upgrade, or by a *long* (2.5 months or so) emerge -vauD world...
cconroy:
Code: | [tijmen@marie /media]$ groups
tty disk wheel audio games users stats plugdev |
I added disk because I found in the udev.rules that devices are created with this group.
It gets stranger here. When I look in /media, sda1 and sdg7 are tijmen:users (tijmen = me). Yet, when I mount them, I can't change anything on it or copy to it: it looks readonly.
Code: | [root@marie /media]# ls -la /media
total 64
drwxr-xr-x 6 root root 4096 Mar 8 23:05 .
drwxr-xr-x 19 root root 4096 Nov 1 21:30 ..
-rw-r--r-- 1 root root 0 Mar 7 23:50 .keep
drwxr-xr-x 2 root root 4096 Feb 5 12:28 cdrecorder
drwxr-xr-x 2 root root 4096 Feb 5 12:28 cdrom
drwx------ 6 tijmen users 16384 Jan 1 1970 sda1
drwx------ 15 tijmen users 32768 Jan 1 1970 sdg7
[root@marie /media]# mount
/dev/hda5 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
/dev/hda1 on /boot type ext2 (rw)
/dev/hda7 on /home type ext2 (rw)
none_shm on /dev/shm type tmpfs (rw)
none_usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /media/sda1 type vfat (rw,noexec,nosuid,nodev,quiet,shortname=winnt,uid=1000,gid=100,umask=077)
/dev/sdg7 on /media/sdg7 type vfat (rw,noexec,nosuid,nodev,quiet,shortname=winnt,uid=1000,gid=100,umask=077)
|
As you can see, both my stick (sda1) and my usb HD (sdg7) are owned by me, and mounted rw. Yet I can't write to them...
Any suggestions? Did I do something stupid? Is it best to just remove hal, dbus, udev and start over again?...
Tijmen[/code] |
|
Back to top |
|
|
cconroy Tux's lil' helper
Joined: 26 Apr 2005 Posts: 81
|
Posted: Thu Mar 09, 2006 12:50 am Post subject: |
|
|
when you upgraded did you upgrade gcc from 3.3.x to 3.4.x? (perhaps accidentally as 3.4.x is now stable)
if so, then you have to clean up your system because things compiled between different versions aren't binary compatible
Check out the GCC Upgrade guide http://www.gentoo.org/doc/en/gcc-upgrading.xml |
|
Back to top |
|
|
iivq n00b
Joined: 07 Mar 2006 Posts: 26
|
Posted: Thu Mar 09, 2006 9:19 pm Post subject: |
|
|
Yes, I have upgraded and not ran the upgrade stuff...
I'm busy with that now, but it takes some time (so I'm first cleaning out my world, I noticed a lot of kde 3.3 and 3.2-stuff lying around while I use 3.4...)
I'll let the outcome know.
Tijmen |
|
Back to top |
|
|
iivq n00b
Joined: 07 Mar 2006 Posts: 26
|
Posted: Tue Mar 14, 2006 9:21 pm Post subject: |
|
|
This worked, except that when copying a directory to a USB stick, then entering that directory, the dir appears to contain only one file. Yet on a unmount / remount all files are present.
Also, testing was difficultized by a borked stick, which doesn't let me delete or copy any information from and to it (nor in windows): it acts readonly, yet it has no such switch...
Tijmen |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|