Prev: No standby from KDE
Next: .txz viewer?
From: Mike Jones on 11 Feb 2010 11:36 I'm dumping Xfce for IceWM, and have hit a snag with mounting USB items. While I can fish around and find a /dev/???? to manually mount something, HAL (or something related) occasionally "claims" that resource (residual data from a previous device, apparently?) leaving my scripts spinning their wheels every so often looking for a fixed resource that has been moved. What (I think) I need to do is find a way to kick HAL into action from the command line, as it seems to mount things it "finds" on the next available /dev/??? (or even generate one on demand?) based on records it keeps about the "devices" it has "experienced". While I've still got Thunar available, I can launch that and HAL-mount an MP3-player (for example) from there, but the new systems won't have Thunar as its part of the Xfce that won't be included. How would I go about jump-starting HAL from a bash-prompt\command-line? -- *=( http://www.thedailymash.co.uk/ *=( For all your UK news needs.
From: Dan C on 11 Feb 2010 15:04 On Thu, 11 Feb 2010 16:36:24 +0000, Mike Jones wrote: > I'm dumping Xfce for IceWM, and have hit a snag with mounting USB items. > > While I can fish around and find a /dev/???? to manually mount > something, HAL (or something related) occasionally "claims" that > resource (residual data from a previous device, apparently?) leaving my > scripts spinning their wheels every so often looking for a fixed > resource that has been moved. > > What (I think) I need to do is find a way to kick HAL into action from > the command line, as it seems to mount things it "finds" on the next > available /dev/??? (or even generate one on demand?) based on records it > keeps about the "devices" it has "experienced". > > While I've still got Thunar available, I can launch that and HAL-mount > an MP3-player (for example) from there, but the new systems won't have > Thunar as its part of the Xfce that won't be included. > > How would I go about jump-starting HAL from a bash-prompt\command-line? How about: "sudo /etc/rc.d/rc.hald restart" -- "Ubuntu" -- an African word, meaning "Slackware is too hard for me". "Bother!" said Pooh, as Christopher Robin pleaded to be spanked again. Usenet Improvement Project: http://twovoyagers.com/improve-usenet.org/ Thanks, Obama: http://brandybuck.site40.net/pics/obama_thanks.jpg
From: Steve Masta on 12 Feb 2010 08:22 Mike Jones wrote: > > I'm dumping Xfce for IceWM, and have hit a snag with mounting USB items. > > While I can fish around and find a /dev/???? to manually mount something, > HAL (or something related) occasionally "claims" that resource (residual > data from a previous device, apparently?) leaving my scripts spinning > their wheels every so often looking for a fixed resource that has been > moved. > > What (I think) I need to do is find a way to kick HAL into action from > the command line, as it seems to mount things it "finds" on the next > available /dev/??? (or even generate one on demand?) based on records it > keeps about the "devices" it has "experienced". > > While I've still got Thunar available, I can launch that and HAL-mount an > MP3-player (for example) from there, but the new systems won't have > Thunar as its part of the Xfce that won't be included. > > How would I go about jump-starting HAL from a bash-prompt\command-line? > You can list mountable partitions with: cat /proc/partitions Also there's /usr/bin/lshal and /sbin/udevadm Steve
From: Mike Jones on 12 Feb 2010 11:13 Responding to Steve Masta: > Mike Jones wrote: >> >> I'm dumping Xfce for IceWM, and have hit a snag with mounting USB >> items. >> >> While I can fish around and find a /dev/???? to manually mount >> something, HAL (or something related) occasionally "claims" that >> resource (residual data from a previous device, apparently?) leaving my >> scripts spinning their wheels every so often looking for a fixed >> resource that has been moved. >> >> What (I think) I need to do is find a way to kick HAL into action from >> the command line, as it seems to mount things it "finds" on the next >> available /dev/??? (or even generate one on demand?) based on records >> it keeps about the "devices" it has "experienced". >> >> While I've still got Thunar available, I can launch that and HAL-mount >> an MP3-player (for example) from there, but the new systems won't have >> Thunar as its part of the Xfce that won't be included. >> >> How would I go about jump-starting HAL from a bash-prompt\command-line? >> >> > You can list mountable partitions with: cat /proc/partitions > > Also there's /usr/bin/lshal and /sbin/udevadm > > Steve Aha! Those look useful! -- *=( http://www.thedailymash.co.uk/ *=( For all your UK news needs.
From: gabriel on 12 Feb 2010 13:08
On Thu, 11 Feb 2010 16:36:24 +0000, Mike Jones wrote: > I'm dumping Xfce for IceWM, and have hit a snag with mounting USB items. > > While I can fish around and find a /dev/???? to manually mount > something, HAL (or something related) occasionally "claims" that > resource (residual data from a previous device, apparently?) leaving my > scripts spinning their wheels every so often looking for a fixed > resource that has been moved. > > What (I think) I need to do is find a way to kick HAL into action from > the command line, as it seems to mount things it "finds" on the next > available /dev/??? (or even generate one on demand?) based on records it > keeps about the "devices" it has "experienced". > > While I've still got Thunar available, I can launch that and HAL-mount > an MP3-player (for example) from there, but the new systems won't have > Thunar as its part of the Xfce that won't be included. > > How would I go about jump-starting HAL from a bash-prompt\command-line? Do you know skvm? http://tools.suckless.org/skvm It's a deamon based on hal and dbus that detect new usb devices, add an entry to /etc/fstab and mount them. The only bad thing is that the device is mounted as root, so that you won't have write permission. But you can umount, remount it as a normal user. |