You are not logged in.
Is it possible to get KDE to mount my iPod (for example) to /media/ipod rather than /media/sd?2
I added a udev rule to link /dev/ipod to /dev/sd?2 hoping KDE might also add an ipod directory, but to no avail.
Same goes for USB sticks etc.
Anybody know?
Edit solution:
Ok, it was so simple I'm embarassed!!
Just make sure the NAME="??" in the udev rule is named after the device you want, and not "%k" and make sure there is no symlink.
Utterly logical once you step away for a bit ![]()
Offline
Is it possible to get KDE to mount my iPod (for example) to /media/ipod rather than /media/sd?2
I added a udev rule to link /dev/ipod to /dev/sd?2 hoping KDE might also add an ipod directory, but to no avail.
Same goes for USB sticks etc.
Anybody know?
Thanks
/dev/sd*2 is the block device for your ipod, which is reported to KDE through HAL. It's been a few months since I used kde, but with kde 3.5.0 (iirc) I made two entrys in /etc/fstab: one for /dev/sda1 and one for /dev/sda, both with mountpoint /mnt/usb and the USB stick was mounted to /mnt/usb. (I made two since I always make partition over the whole stick, while some of my friends have a partition with the filesystem on the stick).
Offline
/dev/sd*2 is the block device for your ipod, which is reported to KDE through HAL. It's been a few months since I used kde, but with kde 3.5.0 (iirc) I made two entrys in /etc/fstab: one for /dev/sda1 and one for /dev/sda, both with mountpoint /mnt/usb and the USB stick was mounted to /mnt/usb. (I made two since I always make partition over the whole stick, while some of my friends have a partition with the filesystem on the stick).
That's why I initially thought udev/hal might also report the /dev/ipod link and HAL would generate an entry for that. The prob I see with adding it statically to fstab, is if I use a USB stick first (sda) and then plug the ipod in (sdb) it wouldn't know what to do with it. (ICBWT)
I tried adding a static entry for sda2 anyway, bit KDE then seemed to get a bit confused and did nothing. I guess I could switch off HAL and do everything through udev? (Though my knowledge on such things is severely limited :? )
Offline
jaboua wrote:/dev/sd*2 is the block device for your ipod, which is reported to KDE through HAL. It's been a few months since I used kde, but with kde 3.5.0 (iirc) I made two entrys in /etc/fstab: one for /dev/sda1 and one for /dev/sda, both with mountpoint /mnt/usb and the USB stick was mounted to /mnt/usb. (I made two since I always make partition over the whole stick, while some of my friends have a partition with the filesystem on the stick).
That's why I initially thought udev/hal might also report the /dev/ipod link and HAL would generate an entry for that. The prob I see with adding it statically to fstab, is if I use a USB stick first (sda) and then plug the ipod in (sdb) it wouldn't know what to do with it. (ICBWT)
I tried adding a static entry for sda2 anyway, bit KDE then seemed to get a bit confused and did nothing. I guess I could switch off HAL and do everything through udev? (Though my knowledge on such things is severely limited :? )
I did one of the sdb/sda things too - I created the mountpoint /mnt/usb and /mnt/usb2 (/dev/sdb would usually only appear if I had two firewire/usb devices connected, so therefore the first usb device I connected mounted to /mnt/usb while the second mounted to /mnt/usb2) something like this:
/dev/sda /mnt/usb vfat,ext2 user,noauto 0 0
/dev/sda1 /mnt/usb vfat,ext2 user,noauto 0 0
/dev/sdb /mnt/usb2 vfat,ext2 user,noauto 0 0
/dev/sdb1 /mnt/usb2 vfat,ext2 user,noauto 0 0With the udev link, I think HAL might be reporting that the device sda for example is plugged in, but not reporting links to the newly discovered device... In your scenario though you might try something like this if you got one memory stick and one ipod:
/dev/sda /media/flash vfat user,noauto 0 0
/dev/sdb /media/flash vfat user,noauto 0 0
/dev/sda1 /media/flash vfat user,noauto 0 0
/dev/sdb1 /media/flash vfat user,noauto 0 0
/dev/sda2 /media/ipod vfat user,noauto 0 0
/dev/sdb2 /media/ipod vfat user,noauto 0 0Offline
I guess it will end up coming to this 'enlarged' fstab!
I was hoping there may be a configuration you could change which dealt directly with HAL or KDE's 'manager'. Found nothing obvious though.
Offline
I was hoping there may be a configuration you could change which dealt directly with HAL or KDE's 'manager'. Found nothing obvious though.
I don't know of any either, but mention it if you find one!
Offline
I found a link with main instructions:
http://gentoo-wiki.com/HOWTO_D-BUS,_HAL,_KDE_media:/ (sorry, it's gentoo :twisted: )
differences to mine was the group for ipod in the udev rules is 'hal' and not 'users' (as I had)
Also, I had to pre-create a 'ipod' directory under /media else KDE still tried to mount /sda2 and failed. It's also not quite right because opening it in konqueror still shows media:/sda2.
But it's closer than it was.
Another link suggests using 'ivman' and disabling KDE's HAL backend, I'll probably check that a bit later
Offline
Edited solution into first post.
Offline