You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

fweng

Beginner

  • "fweng" started this thread

Posts: 19

Location: Taiwan

Occupation: Software engineer

  • Send private message

1

Wednesday, December 20th 2006, 1:14am

Failed to launch auto-mount usb thumb drive directory

Hi, forum.

Right now my KDE 3.5.5 can auto detect usb thumb drive plug in. However, everytime when it tried to open mounted directory (e.g. /mnt/removeable), it told me that "/mnt/removeable is a folder, but a file was expected.". I tried to get kde log, the following messages were shown:

kded: KURL()
media kioslave: MediaList::findByName(sda1)
kio (KDirListerCache): [virtual void KDirListerCache::FilesChanged(const KURL::List&)] only half implemented
kio (KDirListerCache): [void KDirListerCache::updateDirectory(const KURL&)] system:/media
kdeinit: Got EXEC_NEW 'kio_file' from launcher.
kio (KLauncher): kio_file (pid 24372) up and running.
kio_file: Starting 24372
kio (KIOJob): error 9 /mnt/removable
kio (KIOJob): error 9 /mnt/removable
kio (KIOJob): error 9 /mnt/removable
kio (Scheduler): Scheduler: killing slave 24360
kio (Slave): killing slave pid=24360 (file://)
kio (KIOJob): Job::kill this=0x80b3858 KIO::TransferJob m_progressId=0 quietly=true
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (kioslave): SlaveBase::waitForAnswer has read error.
kio_file: Error during 'put'. Aborting.
kdeinit: PID 24360 terminated.

It called kio_file from klauncher but could not process directory /mnt/removeable.

Could anyone please tell me where to configure this behavior?

Thanks a lot.

bjlockie

Beginner

Posts: 14

Location: Ontario, Canada

  • Send private message

2

Tuesday, January 2nd 2007, 7:31am

When the drive is NOT mounted, is there a /mnt/removable file?

fweng

Beginner

  • "fweng" started this thread

Posts: 19

Location: Taiwan

Occupation: Software engineer

  • Send private message

3

Tuesday, January 2nd 2007, 8:51am

Quoted

Originally posted by bjlockie
When the drive is NOT mounted, is there a /mnt/removable file?


No. /mnt/removeable directory was created automatically when USB drive plugged in.
This part was OK. I could access /mnt/removeable from console successfully.

bjlockie

Beginner

Posts: 14

Location: Ontario, Canada

  • Send private message

4

Tuesday, January 2nd 2007, 5:01pm

Quoted

Originally posted by fweng

Quoted

Originally posted by bjlockie
When the drive is NOT mounted, is there a /mnt/removable file?


No. /mnt/removeable directory was created automatically when USB drive plugged in.
This part was OK. I could access /mnt/removeable from console successfully.


What are the permissions of the directory /mnt/removeable?

fweng

Beginner

  • "fweng" started this thread

Posts: 19

Location: Taiwan

Occupation: Software engineer

  • Send private message

5

Wednesday, January 3rd 2007, 12:22am

Quoted

Originally posted by bjlockie
What are the permissions of the directory /mnt/removeable?


0755, owner was set to myself, and group set to root.

bjlockie

Beginner

Posts: 14

Location: Ontario, Canada

  • Send private message

6

Wednesday, January 3rd 2007, 1:03am

What version of KDE do you have?

fweng

Beginner

  • "fweng" started this thread

Posts: 19

Location: Taiwan

Occupation: Software engineer

  • Send private message

7

Wednesday, January 3rd 2007, 1:12am

Quoted

Originally posted by bjlockie
What version of KDE do you have?


3.5.5, as my first post mentioned. ;)

I built the whole 3.5.5 myself (checked out from svn/stable)

bjlockie

Beginner

Posts: 14

Location: Ontario, Canada

  • Send private message

8

Wednesday, January 3rd 2007, 1:40am

Quoted

Originally posted by fweng

Quoted

Originally posted by bjlockie
What version of KDE do you have?


3.5.5, as my first post mentioned. ;)

I built the whole 3.5.5 myself (checked out from svn/stable)


I have no idea then. :-(
I assume you have a newish compiler version.
Mine doesn't mount as /mnt/removable, everything goes in /mnt
I used the Gentoo package though.

fweng

Beginner

  • "fweng" started this thread

Posts: 19

Location: Taiwan

Occupation: Software engineer

  • Send private message

9

Wednesday, January 3rd 2007, 1:56am

Quoted

Originally posted by bjlockie

Quoted

Originally posted by fweng

Quoted

Originally posted by bjlockie
What version of KDE do you have?


3.5.5, as my first post mentioned. ;)

I built the whole 3.5.5 myself (checked out from svn/stable)


I have no idea then. :-(
I assume you have a newish compiler version.
Mine doesn't mount as /mnt/removable, everything goes in /mnt
I used the Gentoo package though.


Thank you anyway. :)

This is a minor problem. I was just wondering if there were settings to change this behavior.

This post has been edited 1 times, last edit by "fweng" (Jan 3rd 2007, 1:56am)


bjlockie

Beginner

Posts: 14

Location: Ontario, Canada

  • Send private message

10

Thursday, January 4th 2007, 4:10am

I'm sure there settings.
I need settings for the HAL daemon because I can't umount as a user.
Like you, it is a minor annoyance. :-)

bjlockie

Beginner

Posts: 14

Location: Ontario, Canada

  • Send private message

11

Thursday, January 4th 2007, 5:00am

Play with /etc/dbus-1/system.d/hal.conf
and
/etc/udev/rules.d/*.rules