LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-12-2005, 07:49 PM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 378

Rep: Reputation: 30
udev/hal/ivman, want appearing desktop icons w/rox-filer


Hi,

I've setup udev, hal, and ivman.

Whenever I put in a cdrom, for instance, I want an icon to pop up on my desktop with a link to the cdrom directory. Ivman is mounting my cdroms and unmounting them properly.

I've found this:
http://gobo.kundor.org/kb/index.php/HAL%20HowTo

It seems to be a script that makes icons appear in the ROX panel. From what I understand, the panel is the bar that by default goes across the bottom of your screen. Well, i tried to get this working as a step forward but could not, nothing ever ended up appearing on the panel. It's not where i want the icons to appear anyways.

Is it possible to get desktop items to appear?

I am using fvwm with the fvwm-crystal theme. ROX is installed and directory browsing seems to be working fine with it. I am also running Gentoo.


My next problem is a slight ivman problem, my cdroms mount perfectly, but my removable devices such as flash drives, don't always show up as the same device. Sometimes when i put in my flash drive it is /dev/sdc1, and sometimes it is /dev/sdd1. I thought the job of UDEV was to make sure that removable devices always get the same device. I read this in the udev wiki:

"Particularly with USB, devices get assigned to a device node (/dev/sda) in the order that they are hooked into the system starting at boot, and continuing through the life of the uptime. With the situation of USB gadgets being plugged into and out of the system dynamically, there is no guarantee that a USB gadget will be assigned to the same node everytime it is plugged in. This can negate the effectiveness of /etc/fstab and play havoc with the scripting/programming of the gadgets."

Therefore it sounds like my udev is not doing its job, or maybe I do just not have it setup correctly? Because IVMAN won't work properly if whenever i plug the device in it switches locations.

Any help and suggestions for either problem would be greatly appreciate. Thank you!
George
 
Old 11-12-2005, 11:17 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
Re: udev/hal/ivman, want appearing desktop icons w/rox-filer

Quote:
Originally posted by hedpe
Sometimes when i put in my flash drive it is /dev/sdc1, and sometimes it is /dev/sdd1. I thought the job of UDEV was to make sure that removable devices always get the same device.
You're misunderstanding the quoted passage. Yes udev can guarantee that a device is always accessible through the same name, but that's normally not configured by default for removable devices. How could it be? Udev has no way of knowing what or how many removable devices you have.

To get static device names, you need to set up custom udev rules in /etc/udev/rules.d/udev.rules. There are lots of different pieces of information you can use in the rules, but you want something that uniquely identifies a particular piece of hardware, like a serial number. As an example, here's a rule I used for a JumpDrive"
Code:
BUS="usb", SYSFS{serial}="L252280108120", NAME="%k", SYMLINK="jumpdrive", GROUP="disk", MODE="0660"
This creates a /dev/jumpdrive symlink that always points to whatever device node the JumpDrive is on.

Quote:

Because IVMAN won't work properly if whenever i plug the device in it switches locations.
This is not accurate. Ivman can get all the information it needs on a device by querying HAL. In fact, that's the entire point of having a HAL-aware volume manager. If your rules don't work when the device changes name, then your rules are badly written. If you post the problem rules, maybe somebody will be able to help you adjust them.
 
Old 11-13-2005, 09:35 AM   #3
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 378

Original Poster
Rep: Reputation: 30
very helpful response Ada, thank you

as a first step I am going to get udev working properly to always put a device in the same place, like my flash drive

after that then I will take a step towards fixing ivman and will post back

in the meantime, anyone get appearing desktop icons with rox-filer?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop icons in xfce4 with rox gaah Linux - Newbie 3 02-13-2011 03:38 AM
ivman/hal fail to mount my usb memory key Valhalla Linux - Hardware 0 11-01-2005 09:50 AM
A quick question about icons in ROX Filer f0rk Slackware 2 12-10-2004 04:54 AM
Starting rox filer Abe_the_Man Linux - Software 1 12-28-2003 09:23 PM
rox filer m4rqs Linux - Software 1 08-27-2002 08:08 AM


All times are GMT -5. The time now is 04:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration