Chris-

Thanks for your help.  What syslog were you talking about tailing when you
plug and unplug the usb or other devices into the computer?



On Wed, Mar 26, 2008 at 5:24 AM, Chris Roberts <[EMAIL PROTECTED]>
wrote:

> On Monday 24 Mar 2008, William Cody wrote:
> > Issue I am having is that when I unplug a
> > device or remove a CD, it doesn't always unmount the device, so next
> time I
> > go to use the device it sometimes doesn't function properly, or it will
> > show the device as being mounted, but the device will show no contents
> on
> > the drive or disk, even though I know there is data on it.
>
> The two important files that govern local devices are:
>
> /opt/ltsp/i386/etc/udev/rules.d/15-ltsp-block.rules
>
> and
>
> /opt/ltsp/i386/etc/udev/scripts/ltsp-device.sh
>
> Fortunately they are both relatively straightforward to understand.
>
> As you will see, the device name is all important in the way that the
> detection and removal is handled, so I found it really useful to modify
> ltsp-device.sh so that the line that writes into syslog would give more
> information:
>
> logger "udev ${DEVNAME} detected ${ACTION} of ${LTSP_DEVTYPE}"
>
> Then insert and remove the USB key and watch syslog for changes.  For
> example
> I just inserted a USB key...
>
> Mar 26 08:57:53 ws162 root: udev /dev/scsi/host0/bus0/target0/lun0/disc
> detected add of disk
> Mar 26 08:57:53 ws162 root: udev /dev/scsi/host0/bus0/target0/lun0/part1
> detected add of disk
>
> ... and then removed it...
>
> Mar 26 09:00:14 ws162 root: udev /dev/scsi/host0/bus0/target0/lun0/part1
> detected remove of disk
> Mar 26 09:00:14 ws162 root: udev /dev/scsi/host0/bus0/target0/lun0/disc
> detected remove of disk
>
> Obviously you can also watch from the client shell, but that isn't always
> as
> convenient, particularly after the event!
>
> Good luck.
>
> Kind regards
>
> Chris Roberts
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to