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.

1

Monday, January 9th 2006, 9:46pm

Mounting USB & CDs

First of all, hello and excuse my poor English.

I'm having a small problem in my new KDE 3.5 (I was using xfce before). I want KDE to mount my external devices in media:/ (it's more useful) but in fstab I have another routes (/mnt/usb). If I remove this in fstab the system stops mounting the devices, but with it they are mounted in (mnt/usb as I said) making that KDE lose the control over the devices (umount and also eject the CDs)

2

Wednesday, January 11th 2006, 11:20am

Hi, and welcome to the forum.

If you want removable devices to be mounted automatically, you must have hotplug installed and configured on your system. Make sure it is started at boot time.

For specific instructions you might refer to your distribution's manual, usually you will find some info about hotplug/coldplug there.

This post has been edited 1 times, last edit by "coco-loco" (Jan 11th 2006, 11:21am)


3

Wednesday, January 11th 2006, 10:34pm

I think I expressed bad. My English is really poor.

I've got Hotplug installed. In fact, externar devices are automatically mounted, but not the way I'd like.
KDE tries to mount them on media://, but fstab is faster and mounts them in the directories specified (/mnt/usb and /mnt/dvd). I can mount and umount devices from the desktop's icon, but when when I double-click on it, Konqueror opens media:/ and gives a error. The device is mounted in other route.

I hope I explained.

Thanks.

4

Thursday, January 12th 2006, 10:20am

I would suggest you to adapt your fstab. So, if you have a line kind of
/dev/dvd /mnt/dvd [...]
change it to
/dev/dvd /media/dvd [...]
or whatever the device/mountpoint is called.

But probably I miss something, since usually you don't need mount points in fstab for hotplugged devices.
Usually udev and hotplug do manage the thing, but since I never had to configure it manually I don't have much experience with it.

Perhaps someone else here can help you further?

5

Thursday, January 12th 2006, 10:51am

Googling around a bit, I discovered following:
- make sure you have udev installed, not devfs (deprecated)
- make sure that your system uses hal

Older 2.4.x kernels seem to have some problems with it, so upgrade your kernel if you have a more recent one you could install for your distribution.

6

Thursday, January 12th 2006, 4:23pm

I'm not at home in this moment, but I'll try your sugerences as soon as I can. My kernel is a 2.6.14-ck8 compiled by myself, so that isn't the problem.

I think remember I had udev installed, but I'll look later at home.

Thanks again.

This post has been edited 1 times, last edit by "Fraenze" (Jan 12th 2006, 4:23pm)


7

Thursday, January 12th 2006, 8:29pm

Yes, I have HAL, Udev and a 2.6 kernel, as I said before...

8

Friday, January 13th 2006, 1:43pm

If you've compiled your kernel yourself, I suppose that you've copied System.map to the correct place and named it the same as the kernel version.

I suggest following test:
Plug in your usb stick and wait until it is recognized.

Open a console and type

Source code

1
dmesg

you shall have some messages from your kernel about what he has done with the stick, usually beginning with the message Initializing USB Mass Storage driver... or such. Post the messages in order to analyze it.

With the command

Source code

1
tail /var/log/messages

you might have some additional messages from the system, post them as well.

Hopefully this will give us some useful info about what's happening on your system.