Strange mounting issue with ext3

Ozan Çağlayan ozan at pardus.org.tr
Mon Apr 6 07:31:35 PDT 2009


Hi,

Kernel: 2.6.25.20
Desktop: KDE 4.2
OS: Pardus
hal: 20090304
hal-info: 20090330

I was just bumping hal and hal-info to their latest snapshots and I've detected a strange issue.


I'm creating a new ext3 partition on my USB stick:

# mkfs.ext3 -L "somelabel" /dev/sdb1

And then when I insert it HAL mounts it correctly into /media/somelabel but with wrong permissions:

# ls -l /media
drwxr-xr-x  3 root  root  4096  Apr  6  16:20  somelabel

So a normal user which clicks on Dolphin's notification on its desktop, isn't able at all to write
onto the usb stick. But HAL insists that it mounts it on behalf of uid 1001:

..
Apr  6 16:21:54 laptop hald: mounted /dev/sdb1 on behalf of uid 1001
Apr  6 16:21:54 laptop hald[12956]: 16:21:54.440 [I] osspec.c:298: /proc/mounts tells, that the mount has tree changed
Apr  6 16:21:54 laptop hald[12956]: 16:21:54.440 [I] device.c:1894: Removing locks from ':1.859'
Apr  6 16:21:54 laptop hald[12956]: 16:21:54.440 [I] hald_dbus.c:4086: No more methods in queue
Apr  6 16:21:54 laptop hald[12956]: 16:21:54.440 [D] hotplug.c:453: events queued = 0, events in progress = 0
Apr  6 16:21:54 laptop hald[12956]: 16:21:54.440 [D] hotplug.c:458: Hotplug-queue empty now ... no hotplug events in progress
Apr  6 16:25:36 laptop hald[12956]: 16:25:36.222 [I] device.c:1894: Removing locks from ':1.862'
..

If I create a VFAT on the usb stick, everything works correctly, the disk is really mounted on behalf
of 1001 and 1001 is able to write it peacefully.

What's going on here, am I missing something?

Thanks,


-- 

Ozan Çağlayan
<ozan_at_pardus.org.tr>


More information about the hal mailing list