[ltp] A question about lt_hotswap driver on my T23 laptop.

hayate linux-thinkpad@linux-thinkpad.org
Tue, 1 Aug 2006 08:45:53 +0000 (UTC)


Hi all,
   I'm a linux newbie. Recently I had a try on lt_hotswap module on my Unbuntu
6.06 box and found a strange behave.
   I loaded the module explicitly after I log in to the Gnome with a ultrabay
HDD adapter in by typing the command in terminal:
      sudo modprobe lt_hotswap
 no error msg, no successful msg, I thought it succeeded, and then
 /dev/hdc  disappeared.
      ls /dev/hdc
No such file or directory

before I loaded the module, /dev/hdc did exist.
So I polled the bay out and pushed back, /deb/hdc would be back.

I don't know if it is normal behave.

Here is some logs about the acpi event (tail -f /var/log/acpid)
...
[Tue Aug  1 09:51:30 2006] received event "lths MSTR 00000003 00000000"
[Tue Aug  1 09:51:30 2006] notifying client 4401[108:108]
[Tue Aug  1 09:51:30 2006] executing action "/usr/local/sbin/lths.sh lths MSTR
00000003 00000000"
[Tue Aug  1 09:51:30 2006] BEGIN HANDLER MESSAGES
umount2: No such file or directory
umount: /dev/hdc1: not found       # strange: this happens after loading the
module and
umount2: No such file or directory  # /dev/hdc already disappears
umount: /dev/hdc: not found
[Tue Aug  1 09:51:30 2006] END HANDLER MESSAGES
[Tue Aug  1 09:51:30 2006] action exited with status 0
[Tue Aug  1 09:51:30 2006] completed event "lths MSTR 00000003 00000000"
[Tue Aug  1 09:51:38 2006] received event "lths MSTR 00000001 00000001"
[Tue Aug  1 09:51:38 2006] notifying client 4401[108:108]
[Tue Aug  1 09:51:38 2006] executing action "/usr/local/sbin/lths.sh lths MSTR
00000001 00000001"
[Tue Aug  1 09:51:38 2006] BEGIN HANDLER MESSAGES
/dev/hdc: No such file or directory
mount: special device /dev/hdc1 does not exist
[Tue Aug  1 09:51:38 2006] END HANDLER MESSAGES
[Tue Aug  1 09:51:38 2006] action exited with status 32
[Tue Aug  1 09:51:38 2006] completed event "lths MSTR 00000001 00000001"
[Tue Aug  1 09:51:38 2006] received event "lths MSTR 00000001 00000000"
[Tue Aug  1 09:51:38 2006] notifying client 4401[108:108]
[Tue Aug  1 09:51:38 2006] executing action "/usr/local/sbin/lths.sh lths MSTR
00000001 00000000"
[Tue Aug  1 09:51:38 2006] BEGIN HANDLER MESSAGES
[Tue Aug  1 09:51:38 2006] END HANDLER MESSAGES
[Tue Aug  1 09:51:38 2006] action exited with status 0
[Tue Aug  1 09:51:38 2006] completed event "lths MSTR 00000001 00000000"
...
the above might be helpful!
thanks very much!