You are not logged in.

#1 2007-01-31 21:24:53

nsa141901
Member
Registered: 2006-06-26
Posts: 21

KDE mounting read/write permissions [FIXED] [SORT OF]

I'm not very familiar with KDE, but I am setting it up on my father's computer.

I'm having a strange problem with writing to the vfat windows partition and vfat USB pendrive.

2.6.19-beyond #1 SMP PREEMPT
KDE 3.5.6

/dev/sdb1     /mnt/usb           vfat       users,noauto,umask=0000     0      0
/dev/sda1     /mnt/windows    vfat       users,rw,umask=0000             0      0
$ groups
disk wheel video audio optical scanner camera users
daemons array:
syslog-ng acpid dbus hal network netfs dhcdbd networkmanager avahi-daemon alsa crond

Both the windows partition and the pendrive are able to be mounted without problem.
Using a terminal, I CAN write to these two disks as a user. I can touch new files or copy files to the drives.

However, when opening these drives using Konqueror, they seem to be read-only.
Trying to drag a file into a folder on the vfat partition gives the error:
"You cannot drop files into a directory in which you do not have write permission"

I get the same error when trying to drag a file over to the USB pendrive.

Again, this is for my dad so GUI functions are important.

Any ideas?

Last edited by nsa141901 (2007-02-05 03:30:03)

Offline

#2 2007-01-31 23:13:25

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

Yeah. run udev and hal as daemons (rc.conf) and make sure pmount is installed. (udev and hal should, of course, also be installed).
This way, kde mounts them for you, when you click any of them system:// (or system -> storage media)
You should be a member of the storage group. This is proably your problem.
the device you want to mount this way, _can't_ be in /etc/fstab. if it is, it wont work.

if you want to mount it from fstab, at boot, make sure he, or at least his group owns the dir (/mnt/windows).
use

/dev/sdaX /mnt/windows vfat defaults,utf8,umask=007,gid=100 0 0

to mount it this way. utf8 is optional. use whatever windows in your region uses, i guess.

The pendrive is best automounted by kde/hal/udev.

Last edited by pelle.k (2007-01-31 23:15:53)


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#3 2007-02-01 05:25:53

nsa141901
Member
Registered: 2006-06-26
Posts: 21

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

thanks for the quick reply, pelle.k

Can udev be run as a daemon?   I don't see it in the /etc/rc.d/ folder.  As far as I know, right now it is being called during boot by the mkinitcpio hook. 

I did add the user to the storage group as you suggested.  I also tried changing the fstab entry for the windows partition as you suggested.  Still no luck though.

Also, after commenting out the fstab entry for the USB pendrive, I now get this error when I try to mount it with Konqueror:

A security policy in place prevents the sender from sending this message to this recpient, see message bus configuration file (rejected message had interface "org.freedestop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")

Last edited by nsa141901 (2007-02-01 05:26:35)

Offline

#4 2007-02-01 06:20:12

nsa141901
Member
Registered: 2006-06-26
Posts: 21

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

In the course of trying to troubleshoot this problem, I installed KDE on my own laptop.  I get the same "security policy in place" error that I mentioned before when I try to mount my USB pendrive.  This does not occur when I use XFCE4.  This leads me to believe there may be something wrong with the /etc/dbus-1/  KDE config file.  I just have no idea what that might be.

EDIT:
Scratch that. I put XFCE on my dad's laptop and am getting the same DBUS errors in XFCE as I do in KDE.
The most bizarre thing to me, is even when I use HAL/KDE or HAL/Thunar to mount a volume I am able to  write to it as a user using the terminal.  I can't figure out why it would be possible to do that and not using write to it using Konqueror/Thunar.

Last edited by nsa141901 (2007-02-01 08:17:58)

Offline

#5 2007-02-01 16:13:19

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

Oh, sorry! I meant dbus, instead of udev tongue
I see you are running acpid, and thus you don't need dbus / hal in deamons array, since acpid starts them automatically. That might be your problem. remove hal/dbbus from there.
Did you start kde from kdm? since kde needs to be run with dbus-launch, and kdm does that for you. kdm should be installed, just add it to the end of deamons. (the same goes for xfce/gnome and gdm)
You are a member of the storage group right? (double check)


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#6 2007-02-02 02:33:35

nsa141901
Member
Registered: 2006-06-26
Posts: 21

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

Thanks for the thoughts -- still no luck though...

- user is a member of the storage group (i double checked)
- I had been using KDM
- I removed hal/dbus from the daemons array.  acpid seems to automatically start dbus, but not hal, so I added hal back to the array.

any other ideas?

Offline

#7 2007-02-02 16:41:39

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

there is something wrong with your setup, and i'll try to put my finger on it.

reboot your computer, log into kde/gnome
do (as your user, the one who can't automount devices), and paste output in this thread;

groups
cat /var/run/hald.pid
cat /var/run/dbus.pid
ifconfig lo
cat /etc/fstab

and as root;

tail /var/log/errors.log

"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#8 2007-02-02 21:41:49

nsa141901
Member
Registered: 2006-06-26
Posts: 21

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

Thanks, I will post the output when i get home from work

Offline

#9 2007-02-03 01:20:47

nsa141901
Member
Registered: 2006-06-26
Posts: 21

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

Thanks again for your time.

After rebooting:

$ groups
disk wheel video audio optical storage scanner camera users
$ cat /var/run/hald.pid 
3247
$ cat /var/run/dbus.pid 
3205
$ ifconfig lo
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:600 (600.0 b)  TX bytes:600 (600.0 b)
$ cat /etc/fstab 
#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/sr0               /mnt/cd    auto     ro,users,noauto,unhide,umask=0 0 0
#/dev/dvd               /mnt/dvd  udf       ro,users,noauto,unhide   0      0
#/dev/fd0               /mnt/fl   auto      users,noauto,umask=0     0      0
#/dev/sdb1           /mnt/usb   vfat      users,noauto,umask=0000     0      0

/dev/sda5     swap            swap       defaults                 0 0
/dev/sda6     /               reiserfs   defaults                 0 0
/dev/sda1     /mnt/windows    vfat       defaults,users,umask=007,gid=100  0 0
# tail /var/log/errors.log 
Feb  1 22:53:07 gator dhclient: receive_packet failed on eth0: Network is down
Feb  1 22:54:37 gator cs46xx: failure waiting for FIFO command to complete
Feb  1 22:56:44 gator sdb: assuming drive cache: write through
Feb  1 22:56:45 gator sdb: assuming drive cache: write through
Feb  2 05:02:39 gator ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
Feb  2 05:02:39 gator ata1.00: (BMDMA stat 0x4)
Feb  2 05:02:39 gator ata1.00: tag 0 cmd 0xca Emask 0x4 stat 0x40 err 0x0 (timeout)
Feb  2 05:03:29 gator ata1: port failed to respond (30 secs, Status 0x80)
Feb  2 05:03:51 gator ata1.00: revalidation failed (errno=-5)
Feb  2 20:00:40 gator cs46xx: failure waiting for FIFO command to complete
# dmesg | tail
PCI: Enabling device 0000:06:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:06:00.0[A] -> Link [LNKB] -> GSI 9 (level, low) -> IRQ 9
PCI: Setting latency timer of device 0000:06:00.0 to 64
lp0: using parport0 (interrupt-driven).
ppdev: user-space parallel port driver
Adding 497972k swap on /dev/sda5.  Priority:-1 extents:1 across:497972k
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP)

Offline

#10 2007-02-04 16:58:38

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

I'm not sure what problems are still left?
You assume can mount the usb stick from kde now (and there's bo entry about it in fstab)?
I also assume your poblem is the windows partition?

You don't need the "user" option in fstab.
I wan't you to

stat /mnt/windows

while it's not mounted (unmount it first "umount /mnt/windows")

Then i wan't you to "stat" your home directory (it'll show us your gid,uid)

How are you accesing this drive in konqueror (media://sda1 or /mnt/windows)?

To trouble shoot, you could open konqueror from a terminal, and it'll dump debug info while you are using it.


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#11 2007-02-05 03:29:27

nsa141901
Member
Registered: 2006-06-26
Posts: 21

Re: KDE mounting read/write permissions [FIXED] [SORT OF]

Well. It's fixed. I guess.

I updated to the dbus and hal packages released yesterday. And for whatever reason, both the pendrive and the hard drive work now.  I did comment out the fstab listing for the hard drive and just mount it with at /media. I don't know why.  But I'm glad it works.

Thanks for your help along the way, pelle.k

Offline

Board footer

Powered by FluxBB